Skip to main content
POST
JavaScript

Path Parameters

name
enum<string>
required

Name of a simulation scenario available to run. Amounts are in the run currency unless the scenario names one.

Available options:
purchase_auth_equal_clearing,
purchase_overcapture,
purchase_undercapture,
purchase_reversal,
purchase_bigger_replacement,
purchase_lower_replacement,
purchase_auth_only,
purchase_partial_cancellation_part_1,
purchase_partial_cancellation_part_2,
purchase_full_cancellation_part_1,
purchase_full_cancellation_part_2,
national_withdrawal_auth_clearing,
international_purchase_auth_clearing,
international_withdrawal_auth_clearing,
credit_voucher_auth_confirmation,
international_credit_voucher_auth_confirmation,
brl_cross_currency_auth_clearing,
brl_cross_currency_reversal

Body

application/json
card_id
string<uuid>
required

Card to run the scenario against

authorization_code
string

Authorization code from a previous run. Required when the scenario requires it; seeds the first step when that step is not an authorization.

currency
string
default:USD

ISO 4217 alphabetic currency code of the scenario steps; any code the card processor accepts. Steps pinned to a currency, such as the BRL cross-currency scenarios, keep their own.

Pattern: ^[A-Z]{3}$

Response

The request has succeeded.

scenario_name
string
required

Name of the scenario that ran

status
enum<string>
required

"passed" when every step ran and matched its expectation, "failed" otherwise

Available options:
passed,
failed
steps
object[]
required

Result of each executed step. A failed step stops the run, so later steps are absent.

steps_requests
object[]
required

Payload sent to /transactions/simulate for each executed step, in order. Each entry can be replayed as-is against /transactions/simulate.