Skip to main content
PATCH
Advance a simulated card transaction

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Path Parameters

card_transaction_id
string
required

Card transaction to advance. KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json

An action that advances a simulated card transaction.

action
enum<string>
required

How to advance the transaction. update_amount and return require an amount; clear and void take one only for a partial amount; expire and return_reversal take none, and an amount supplied alongside either is refused.

Available options:
clear,
void,
expire,
update_amount,
return,
return_reversal
Example:

"clear"

amount
string

Amount in decimal USD, at most two decimal places. Capped by the sandbox per-transaction limit.

Example:

"2.00"

merchant
object

The merchant presenting a simulated card transaction.

Response

Card simulation accepted

An accepted card simulation.

simulation_id
string
required

Simulation identifier. Resolve it with GET /sandbox/simulations/{simulation_id}.

Example:

"sim_card_01J8ZQ4T7K2M9X"

status
enum<string>
required

Where a card simulation stands. completed means the card transaction exists and this response names it. pending means the simulation was accepted but the transaction has not been materialized yet; poll GET /sandbox/simulations/{simulation_id} for the identifier. failed means the simulation was not accepted: a refusal the endpoint could classify comes back as a problem response instead, so failed is what an unclassified one looks like. It can still name a card transaction, because the response reports whichever transaction the call resolved. A declined card authorization is not a failed simulation: the simulation succeeded and the decline arrives on the card transaction.

Available options:
pending,
completed,
failed
card_transaction_id
string

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"