Transaction Message

Transaction messages are the single network messages behind a card purchase: what each message type and transaction type means, and their webhook events.

Introduction

Transaction Messages show, one at a time, the steps behind a card purchase, and match the card network messages they come from. When a user pays for goods or services on a linked card, Astrada captures the transaction message and sends this to you in real time. This allows you to build customized experiences that engage users at the time of the transaction. Messages built from a connected bank's postings arrive when the bank reports them; when the card network isn't known, they have network: OPEN_BANKING. For how messages combine into one purchase, see Transaction.

Transaction Message Resource

API reference: Transaction Message Resource.

Message Types

Transaction Messages are direct representations of the network messages Astrada receives.

All AUTH messages are informational, while FINL indicates money movement. REQU signifies that there is a request and response, while ADVC does not require a response.

Astrada Message Types are based on the ISO 20022 MessageClass1Code and Function16Code; the MTI lines give the matching ISO 8583 message codes, for readers who know them.

Message TypeDescription
AUTH_REQU

An authorization request is like asking, "Is this card able to make this transaction?".

This message also contains the issuer's answer to this question, based on a check of available funds and applicable restrictions (see result: APPROVED or DECLINED).

ISO 8583:2003 MTI: x100/x110 (dual message)

AUTH_ADVC

The authorization advice updates the authorized amount before the funds are cleared.

If the authorization amount is positive, it replaces the previously authorized balance. One example of this are gas station transactions, where the initial authorization request is sent before the final amount is known and then adjusted.

If the AUTH_ADVC amount is negative, this means that the original authorization request is being reversed or voided. This happens when a merchant cancels a purchase before the funds are cleared.

ISO 8583:2003 MTI: x120, x400/x410, x420 (dual message)

FINL_REQU

A financial request is a one-step authorization and fund movement process that initiates money movement rather than requiring a separate financial message. It contains the issuer's decision to allow or not allow this transaction message to proceed (result: APPROVED or DECLINED).

ISO 8583:2003 MTI: x200/x210 (single message)

FINL_ADVC

A financial advice triggers the movement of funds following an AUTH_REQU or AUTH_ADVC.

If the FINL_ADVC is positive, it adds to the amount that has been settled and subtracts from the outstanding hold amount. It is expected that a transaction can have multiple settlements. On rare occasions, due to an omission in processing, a FINL_ADVC can follow a FINL_REQU in which case it should replace the previously settled balance.

If the FINL_ADVC is negative, this means that the original financial request is being reversed by the merchant acquirer.

ISO 8583:2003 MTI: x220 (single message), and the network's clearing records

Transaction Types

Transaction types provide additional information about the transaction, describing the effect that it had on the customer account and the type of accounts affected.

Transaction TypeDescription
DEBIT_01Goods and service
DEBIT_02Cash (ATM)
DEBIT_19Money transfer or cash-like purchase (such as P2P, or casino chips)
CREDIT_01Payment to the card account
CREDIT_02Returns
CREDIT_08Money pushed to the card (such as a rebate or money received)
INQUIRY_01Available funds inquiry
TRANSFER_01Cardholder accounts transfer
ADMIN_01PIN Unblock
ADMIN_02PIN Change

Example message

An approved authorization request on a Mastercard card, from GET /transaction-messages/{transactionMessageId} (abridged: fields that are null or only on some networks are left out):

{
  "id": "b64deaa6-5974-4e8a-afe9-83caa393fef5",
  "subaccountId": "da6649a8-f0ea-4af0-b342-c0b5c3e024dd",
  "cardId": "3c4b862f-607f-4873-be08-e5336d2c2745",
  "messageType": "AUTH_REQU",
  "network": "MASTERCARD",
  "result": "APPROVED",
  "approvalCode": "940594",
  "transactionAmount": 98.3,
  "transactionCurrency": "USD",
  "cardholderBillingAmount": 98.3,
  "cardholderBillingCurrency": "USD",
  "transactionType": "DEBIT_01",
  "transactionReference": "TYSO88_2023-11-08",
  "acceptor": {
    "id": "KWGBYTEI4FL0QQQ",
    "acquirerId": "018505",
    "name": "ASTRADA DINER",
    "mcc": "5812",
    "city": "Jersey City",
    "state": "NJ",
    "country": "USA"
  },
  "dateTime": "2023-11-08T18:12:35",
  "createdDateTime": "2023-11-08T18:12:41.251Z",
  "transmissionDateTime": null
}
  • transactionAmount is in the currency the purchase was made in (transactionCurrency); cardholderBillingAmount is in the card's own currency. They differ on purchases abroad. Both are decimal numbers in the currency's main unit, not in cents: 98.3 is 98.30 US dollars. A negative amount is a reversal or a refund.
  • dateTime is when the message happened. Visa and American Express send it in UTC, ending in Z; Mastercard sends the merchant's local time, with no Z and no offset, as here. Clearings carry an end-of-day time instead of the moment they happened: Visa and American Express clearings at 23:59:59Z, Mastercard clearings at 23:59:59 with no Z, and a Visa refund at 23:59:59Z on the UTC day Astrada received it. Visa reversals carry the time they happened. For the date of the purchase itself, use the transaction's transactionOccurrenceDate.

Webhook event types

transactionmessage.created fires whenever a new Transaction Message is registered in the Astrada system, and carries the Transaction Message's fields, without _links. It does not carry the transaction's id; find the transaction with GET /transactions?transactionMessageId={id}. Every event: Event Types.


Did this page help you?