latestOpenAPI 3.0.12026-08-104068226.2 KB
a772504dcc9e
Card transactions simulation
(Beta, sandbox only) Simulate an authorization
Creates a simulated card authorization for the purpose of testing approval & denial flows.<br> Calling this endpoint will trigger a webhook notification on CARD_AUTHORIZATION or CARD_AUTHORIZATION_DECLINE_V2 (depending on whether the test transaction should be approved or declined).<br> The API returns a transaction_key corresponding with the created transaction. You can query info about the transaction using GET Index account bookings or GET Index reservations.<br> Please note the following: <ul> <li>This is a beta endpoint.</li> <li>The account associated with the card specified in card_id must have an available balance.</li> </ul>
post/v1/cards/{card_id}/simulator/transactions/authorization
Path parameters
card_idstring required
ID of the card to use for the test transaction.
Request body
Example request
{
"authorization": {
"amount": "000000004023",
"transaction_amount": "000000004023"
},
"transaction_currency": "USD",
"merchant_category_code": "5411",
"acquirer_id": "123456",
"approval_code": "053630",
"terminal_id": "12345678",
"merchant_id": "123456789101112",
"merchant_name": "Solarisbank AG",
"merchant_city": "Berlin",
"merchant_country": "DE"
}Response
The operation was successful.
Example response
{
"transaction_key": "100000000142424"
}