latestOpenAPI 3.0.12026-08-104068226.2 KB
a772504dcc9e
Card transactions simulation
(Beta, sandbox only) Simulate an unauthorized settlement
Creates a simulated unauthorized settlement. The API returns a transaction_key that corresponds 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>The account associated with the card specified in card_id must have an available balance.</li> </ul>
post/v1/cards/{card_id}/simulator/transactions/settle
Path parameters
card_idstring required
ID of the card to use for the test transaction.
Request body
Example request
{
"settlement": {
"amount": "9",
"transaction_amount": "8",
"transaction_currency": "EUR"
},
"merchant_category_code": "5411",
"acquirer_id": "123456",
"approval_code": "053630",
"terminal_id": "1234567890",
"merchant_id": "123456789101112",
"merchant_name": "Solarisbank AG",
"merchant_city": "Berlin",
"merchant_country": "DE"
}Response
The operation was successful.
Example response
{
"transaction_key": "100000000142424"
}