Simulate a merchant purchase on a card
POST
/simulate/cards/purchaseHeaders
Idempotency-KeystringOptionalSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
amountintegerRequiredcard_idstringRequiredExample card_2tVh8nqLxq4GbDe0K1F6S9zRcWm
channelstringRequiredPos, ecommerce, atm, contactless
countrystringRequiredcurrency_codestringRequiredmccstringRequiredmerchant_idstringOptionalmerchant_namestringRequirednetwork_refstringOptionalReturns
200 OK
approved_amountintegerOptionalA partial approval (response 10) or an increment
authorization_idstringRequiredExample auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm
decisionstringRequiredreasonstringRequiredreplayedbooleanRequiredresponse_codestringRequiredErrors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503