Simulates a card transaction authorisation request in the sandbox environment. It can simulate ATM withdrawals, POS purchases, e-commerce transactions, and refunds. This is an authorisation hold, where funds are held, but not yet captured by the acquirer.
The cardNumber represents the 16-digit Primary Account Number (PAN) of the card, and must be a valid PAN retrieved from sensitive card details. Please follow the detailed guide on retrieving sensitive card details.
A refund is a 2-step process: first authorise with transactionType set to REFUND, then clear using the clearing endpoint with the same transaction type.
Refund simulation doesn't work with Mastercard.
Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.
The point-of-sale used for the transaction.
- For POS transactions:
CHIP_AND_PIN - For e-commerce transactions:
E_COMMERCE_NO_3DS - For ATM transactions:
CHIP_AND_PIN - For refund transactions:
CHIP_AND_PINorE_COMMERCE_NO_3DS
The type of the transaction.
- For POS and e-commerce transactions:
GOODS_AND_SERVICES - For ATM transactions:
CASH_WITHDRAWAL - For refund transactions:
REFUND
- Production Environmenthttps://api.wise.com/v2/simulation/spend/profiles/{profileId}/cards/{cardToken}/transactions/authorisation
- Sandbox Environmenthttps://api.wise-sandbox.com/v2/simulation/spend/profiles/{profileId}/cards/{cardToken}/transactions/authorisation
- POS purchase
- E-commerce purchase
- ATM withdrawal
- Refund
curl -i -X POST \
'https://api.wise.com/v2/simulation/spend/profiles/{profileId}/cards/{cardToken}/transactions/authorisation' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-External-Correlation-Id: f47ac10b-58cc-4372-a567-0e02b2c3d479' \
-d '{
"pos": "CHIP_AND_PIN",
"transactionType": "GOODS_AND_SERVICES",
"amount": {
"value": 10,
"currency": "SGD"
},
"mcc": 5499,
"cardNumber": "4242424242424242"
}'Simulated card authorisation.
Echoed back when X-External-Correlation-Id was included in the request. Learn more.
{ "reference": { "transaction": { "acquirer": { … }, "card": { … }, "pos": { … }, "transactionStartTime": 1667541087.0476434, "stan": "363054", "schemeTransactionId": "932290252416153", "retrievalReferenceNum": "230805363054" }, "requestMti": "0200", "authorizationIdResponse": "123646" }, "error": null }