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 Type | Description |
|---|---|
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: 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 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: ISO 8583:2003 MTI: x200/x210 (single message) |
FINL_ADVC | A financial advice triggers the movement of funds following an If the If the 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 Type | Description |
|---|---|
DEBIT_01 | Goods and service |
DEBIT_02 | Cash (ATM) |
DEBIT_19 | Money transfer or cash-like purchase (such as P2P, or casino chips) |
CREDIT_01 | Payment to the card account |
CREDIT_02 | Returns |
CREDIT_08 | Money pushed to the card (such as a rebate or money received) |
INQUIRY_01 | Available funds inquiry |
TRANSFER_01 | Cardholder accounts transfer |
ADMIN_01 | PIN Unblock |
ADMIN_02 | PIN 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
}transactionAmountis in the currency the purchase was made in (transactionCurrency);cardholderBillingAmountis 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.3is 98.30 US dollars. A negative amount is a reversal or a refund.dateTimeis when the message happened. Visa and American Express send it in UTC, ending inZ; Mastercard sends the merchant's local time, with noZand no offset, as here. Clearings carry an end-of-day time instead of the moment they happened: Visa and American Express clearings at23:59:59Z, Mastercard clearings at23:59:59with noZ, and a Visa refund at23:59:59Zon the UTC day Astrada received it. Visa reversals carry the time they happened. For the date of the purchase itself, use the transaction'stransactionOccurrenceDate.
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.
Updated 4 days ago
