Simulate a transaction message (sandbox only)

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

Publishes one more transaction message (authorization, adjustment, reversal, settlement or refund) on an existing sandbox transaction. The transaction can have been created by POST /simulate/transactions or by the scenario endpoint; take its id from the transaction.created webhook or from GET /transactions?transactionMessageId=.

Besides simulation:write, the access token needs transactions:read and transaction-messages:read: the transaction and its messages are read from the public API to carry over the network reference and the current hold and settled amounts.

adjustment and reversal are checked against the hold Astrada has processed so far and rejected with 409 when there is nothing to adjust or reverse. The check is best effort: a step published immediately after another may see the earlier state.

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

Publishes one more transaction message on an existing sandbox transaction. The message reuses the transaction's card, network, currency, merchant and network reference, so the new message joins the same transaction.

string
enum
required

The message to publish. amount is in minor units of the transaction's currency; whether it is required depends on the type:

  • authorization: an additional authorization that increases the hold. amount is required.
  • adjustment: replaces the current hold with amount (the new total). amount is required. Rejected with 409 when nothing is on hold.
  • reversal: releases amount from the hold. Defaults to the full remaining hold. Rejected with 409 when nothing is on hold or when amount exceeds the hold.
  • settlement: clears amount, moving it from the hold to the settled amount. Defaults to the remaining hold; required when nothing is on hold.
  • refund: negative settlement linked to this transaction. Nets into it while it is still PENDING or on accounts that correlate refunds; otherwise (the default for API-created accounts) a SETTLED transaction gets a separate refund transaction with its own transaction.created. Defaults to the settled amount; required when nothing has been settled.
Allowed:
integer
≥ 1

Amount in minor units of the transaction's currency. See type for which types require it and what it defaults to otherwise.

date-time

Timestamp of the message, ISO 8601 with a timezone offset. Must not be in the future. Defaults to one second after the transaction's latest message, or to the time of the request if that is later; when the latest message is already ahead of the clock (an end-of-day message, see below), the time of the request. Set an earlier value to backdate a message (for example an authorization that joins a settlement-first transaction).

As in production, Visa settlements and reversals and Amex settlements are published with an end-of-day dateTime: the UTC date of this value at 23:59:59Z.

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