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
simulation
object
required

The inputs to trigger the simulation. The required fields are dependent on the simulation type

type
string
required

Type of simulation to run

Response

200 - application/json
The simulation created
simulation
object

The inputs to trigger the simulation. The required fields are dependent on the simulation type

type
string

Type of simulation to run