POST
/
simulation
curl --request POST \
  --url https://api.treasuryprime.com/simulation \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "simulation": {
    "amount": "25.10",
    "card_id": "card_104",
    "merchant": {
      "address": {
        "city": "LAS VEGAS",
        "country": "USA",
        "postal_code": "88901",
        "state": "NV"
      },
      "mcc": "5411",
      "mid": "4445025949032",
      "name": "KROGER #10626"
    }
  },
  "type": "card_event.auth_request"
}'
null

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The simulation to create

The body is of type object.

Response

200 - application/json
The simulation created

The response is of type object.