Astrada TypeScript SDK
    Preparing search index...

    Interface TransactionMessage

    TransactionMessage

    interface TransactionMessage {
        _links: TransactionMessageLinks;
        acceptor: TransactionMessageAcceptor;
        approvalCode?: string;
        bankData?: TransactionMessageBankData;
        cardholderBillingAmount: number;
        cardholderBillingCurrency: string;
        cardId: string;
        cardType?: string;
        createdDateTime: Date;
        dateTime: TransactionDateTime;
        discountAmount?: number;
        id: string;
        messageType: TransactionMessageMessageTypeEnum;
        network: TransactionMessageNetworkEnum;
        result: TransactionMessageResultEnum;
        subaccountId: string;
        traceId?: string;
        transactionAmount: number;
        transactionCurrency: string;
        transactionReference: string;
        transactionType: TransactionMessageTransactionTypeEnum;
        transmissionDateTime: Date;
    }
    Index

    TransactionMessage

    TransactionMessage

    approvalCode?: string

    Unique code that authorizes a transaction message, sent by the card issuer/issuer-processor when approving a transaction. Always absent on bank-only messages; no card authorization occurred (its absence, together with the bank_-prefixed transactionReference, is the marker of a bank-only message).

    TransactionMessage

    TransactionMessage

    cardholderBillingAmount: number

    The amount in the currency of the country of issuance. The transactionAmount and cardholderBillingAmount values may differ in case of international transactions.

    TransactionMessage

    cardholderBillingCurrency: string

    The currency of the country of issuance following ISO 4217 alpha-3 format.

    TransactionMessage

    cardId: string

    The unique identifier of the card related to this entity. Null only for bank-sourced messages from a bank account with no linked cards (the card-less unified feed).

    TransactionMessage

    cardType?: string

    The type of card used in the transaction. The only available value is 'virtual' and the field is nullable.

    TransactionMessage

    createdDateTime: Date

    Date and time when this resource was created, in UTC, following ISO 8601 format.

    TransactionMessage

    The timestamp of the transaction message (e.g. authorization, movement of funds, etc) following ISO 8601 format. The timezone depends on the card network:

    • Visa/Amex: UTC (suffixed with Z)
    • Mastercard: Local time zone of the merchant/acquirer (no Z suffix, timezone offset not included)

    The presence or absence of the Z suffix indicates whether the value is UTC or local time.

    Some messages carry an end-of-day value rather than the moment they happened:

    • Visa clearings (FINL_ADVC, FINL_REQU): the settlement date at 23:59:59Z.
    • Visa reversals (AUTH_ADVC with a negative transactionAmount): 23:59:59Z on the UTC day Astrada received the reversal.
    • Amex clearings: the business date at 23:59:59Z.

    For the date of the purchase itself, use the transaction's transactionOccurrenceDate.

    TransactionMessage

    discountAmount?: number

    The issuer-reported discount that the merchant netted from the settled amount. Today this is populated for Corpay fleet fuel coupons on Mastercard SmartData clearings. It is a positive amount in the message's cardholderBillingCurrency. The parent transaction's cardholderBillingSettledAmount is grossed up to the pre-discount statement figure, so discountAmount is informational. Use it to reconcile the settled amount against the receipt or fuel-card statement, which shows the discounted figure. Null on every other message, including authorizations and clearings with no coupon. Treat null as normal, not as an error.

    TransactionMessage

    id: string

    The unique identifier of this transaction message entity.

    TransactionMessage

    The type of operation this transaction message represents. Learn More

    TransactionMessage

    The rail that processed this payment. OPEN_BANKING marks a bank-sourced message with no card-network involvement (the concrete provider is in bankData.provider).

    TransactionMessage

    The issuer's decision on whether the transaction message is authorized.

    TransactionMessage

    subaccountId: string

    The unique identifier of the subaccount related to this entity.

    TransactionMessage

    traceId?: string

    The American Express trace identifier for this transaction message. Populated only when network is AMEX, where it is the reconciliation handle used to match against Amex settlement data. Amex real-time authorizations are not observed to carry an approvalCode, so traceId is the identifier to reconcile on. The value is a numeric string and leading zeros are significant, so treat it as an opaque string and never parse it as a number; its width can vary by Amex feed, so do not assume a fixed length. Null on every other network; Visa and Mastercard authorizations correlate on transactionReference / approvalCode instead. Treat null as normal, not as an error.

    TransactionMessage

    transactionAmount: number

    The amount of the transaction message in the currency it was charged in. In the case of international transactions, the transactionAmount and cardholderBillingAmount may differ due to being in different currencies.

    TransactionMessage

    transactionCurrency: string

    The currency in which the transaction took place following ISO 4217 alpha-3 format.

    TransactionMessage

    transactionReference: string

    Identification of the Transaction that has to be unique for a time period.

    TransactionMessage

    Types provide additional information about the transaction message, describing the effect that it had on the customer account and the type of accounts affected. Learn More

    TransactionMessage

    transmissionDateTime: Date

    The timestamp of when the transaction message was received by the data source (i.e. Mastercard or Visa), in UTC, following ISO 8601 format.

    TransactionMessage