Simulate a transaction scenario (sandbox only)

Works in the sandbox only (https://api.sandbox.astrada.co). Production has no such call.

Runs a predefined transaction scenario, such as a purchase followed by a refund, on an enrolled card. The call publishes every transaction message of the scenario as if a card network had sent them and returns 202 Accepted with their ids. The transactions arrive asynchronously through the transaction.created and transaction.updated webhooks.

The call does not look the card up first: well-formed ids return 202 even when they do not name an enrolled card of your account. If no transaction appears, check that cardId is enrolled in subaccountId.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

The predefined scenario to simulate.

uuid
required

The identifier of the enrolled card to transact against.

uuid
required

The subaccount identifier the card belongs to.

integer
≥ 1

Optional transaction amount in minor units (cents). When omitted, the scenario's default amount is used.

string
length between 3 and 3

Optional ISO 4217 three-letter currency code, case insensitive. A code that is not a currency transactions can be made in is rejected with 400. When omitted, the scenario's default currency is used.

string
enum

Optional card network override, so one scenario can be run against any network. When omitted, the scenario's own default network is used.

Allowed:
string
enum

Optional ingestion-source tag applied to every message the scenario emits, so simulated activity can be attributed to a given network feed. When omitted, defaults to the scenario's own source if it sets one (the amex_auth_* scenarios default to amexrta), else tns, or amexgl when the resolved network is AMEX.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json