Astrada TypeScript SDK
    Preparing search index...

    Interface SimulateTransactionRequest

    Starts a new simulated transaction on an enrolled sandbox card by publishing a single transaction message. Every field other than cardId and type is optional and falls back to a default.

    SimulateTransactionRequest

    interface SimulateTransactionRequest {
        amount?: number;
        cardId: string;
        currency?: string;
        dateTime?: Date;
        merchant?: SimulateTransactionRequestMerchant;
        network?: sandbox.SimulateTransactionRequestNetworkEnum;
        type: sandbox.SimulateTransactionRequestTypeEnum;
    }
    Index
    amount?: number

    Transaction amount in minor units of currency (for example 4500 for 45.00 USD). Defaults to 4500.

    SimulateTransactionRequest

    cardId: string

    The identifier of the enrolled card to transact against. The card must belong to the account of the access token; the subaccount and, unless network is given, the network are read from the card.

    SimulateTransactionRequest

    currency?: string

    ISO 4217 three-letter currency code of the transaction, case insensitive. Must be a currency transactions can be made in; fund codes and precious metals are rejected with 400. Defaults to USD.

    SimulateTransactionRequest

    dateTime?: Date

    Timestamp of the message, ISO 8601 with a timezone offset. Must not be in the future. Defaults to the time of the request.

    SimulateTransactionRequest

    SimulateTransactionRequest

    Card network the message is published on. Defaults to the card's own network; the request is rejected with 400 when this field is omitted and the card has no network or one outside this list.

    SimulateTransactionRequest

    The first message of the new transaction.

    • authorization: publishes an authorization request, creating a PENDING transaction with amount on hold.
    • settlement: publishes a clearing with no prior authorization, creating a SETTLED transaction with amount settled and nothing on hold. A later authorization step on the transaction joins it.

    SimulateTransactionRequest