Simulate card transactions
POST /simulations/cardTransactions asks the card’s issuer to run a test transaction. The issuer reports it as it reports real card activity, so your integration receives the same transactions and events it will in production. POST /simulations/disputes/{disputeId}/submit submits a dispute with the outcome the issuer is to decide.
- Sandbox only. A production key cannot hold
simulations:write, and a production request returns403 PERMISSION_DENIED. - The key needs
simulations:write, andtransactions:readto read the results. A platform key sendsAccount-Holderwith the account holder ID; a company key does not. - The card must be an issued card of the account holder.
Simulation types
amount.value is a positive integer in minor units, such as 2500 for $25.00. amount.currency must match the source transaction’s.
Run a purchase and a refund
Authorize
A 200 means the issuer accepted the simulation, not that the transaction is recorded yet. The response’s id identifies the simulation request, not a transaction.
Find the transaction
Wait for the transaction.created event, or list the card’s authorizations:
The authorization is PENDING with an amount of -2500. Use its id in the next step.
Wait for each result before you send a follow-up that depends on it. An INCREMENTAL_AUTHORIZATION shows as a transaction.updated event once the hold has grown.
Limits
The card’s issuer decides which follow-ups it allows and how much they may move. A request it does not allow returns 422 PROVIDER_REJECTED.
- To capture more than was authorized, simulate an
INCREMENTAL_AUTHORIZATIONfirst. Some card programs refuse a capture above the authorization. - A captured authorization is a purchase: refund it rather than reverse it.
- On some card programs, an authorization that was partly reversed cannot be captured, and one that was partly captured cannot be reversed. Use a separate authorization for each path.
Simulate a decline
There is no decline override. Freeze the card with POST /cards/{cardId}/freeze, then simulate AUTHORIZATION. The issuer declines it and the transaction is DECLINED. Unfreeze the card with POST /cards/{cardId}/unfreeze when you are done.
Simulate a dispute outcome
POST /simulations/disputes/{disputeId}/submit submits a DRAFT or INFORMATION_REQUIRED dispute exactly as POST /disputes/{disputeId}/submit does, and the issuer then decides it as WON or LOST. The key needs disputes:write and simulations:write.
File a draft
Create the dispute on a CARD_SPEND transaction with POST /disputes, as for a real dispute.
If the issuer files the dispute but refuses the outcome, the request returns 422 PROVIDER_REJECTED and the dispute stays UNDER_REVIEW.
Retries
Every simulation requires an Idempotency-Key. Retry with the same key; a replay never runs the simulation twice.
502 OPERATION_OUTCOME_UNKNOWN: the issuer’s answer is not known yet. Retry later with the same key, never a new one.
No webhook is sent for the simulation itself. The transaction and dispute events are the result.