ISO 8583 Parser
Free Β· Basics Β· ~7 min read

The Transaction Lifecycle: Authorization β†’ Clearing β†’ Settlement

The key distinction: authorization only holds funds and confirms ability to pay β€” no money moves yet; clearing batches and reconciles the day's transactions; settlement is the actual movement of funds. Many reconciliation bugs come from conflating these three.

Stage 1 β€” Authorization

The merchant sends a 0100 (pre-auth) or 0200 (purchase) request; the issuer checks limits and risk and replies 0110/0210. On approval the issuer places a hold on the amount (not a debit) and returns an auth code (DE38) and response code (DE39=00). No real money moves here.

Stage 2 β€” Capture

Once the merchant ships or completes the service, it submits a capture, marking the auth as "collect for real". Restaurant tips and hotel incidental adjustments happen here β€” the captured amount can differ from the authorized amount.

Stage 3 β€” Clearing

On a fixed cycle (usually daily) the network exchanges all captured transactions in batches, producing amounts owed between acquirer and issuer and computing interchange. This is where reconciliation lives β€” the STAN (DE11) and RRN (DE37) in the message are what match an authorization to its clearing record.

Stage 4 β€” Settlement

Based on clearing, funds actually move between banks: the issuer pays the network (minus interchange), which pays the acquirer, which pays the merchant (minus its fees). The cardholder is billed by the issuer on the statement date. Only now does money truly move.

Exception flows: refund, reversal, chargeback

WhatInitiated by
RefundA settled sale returned to the cardMerchant
ReversalCancels an auth not yet cleared (timeout/duplicate)Acquiring system
ChargebackCardholder dispute, issuer forces funds backIssuer/cardholder
Developer note: a successful auth β‰  money received. Reconcile against clearing/settlement data, not auth approvals; holds also auto-release on timeout. Separating "held amount" from "posted balance" is key to correct bookkeeping.

πŸ‘‰ Next: Reading ISO 8583: MTI, Bitmaps & Data Elements β€” the 0100/DE39/DE11 above, explained.