Skip to content
Portal

Clearing

The authorization holds, clearing debits. Every day the network delivers a clearing file to the issuer: all the operations presented by the merchants (purchases, withdrawals, refunds, acquirer reversals). UBO integrates it and matches it with the authorizations, on top of the file engine and the issuer state machine.

SFTP dropnetwork → UBODecryptionPGP · EBCDICChecksduplicate, totalsIntegrationline by lineMatchingwith the authorizationwrong total: file rejectedCardholder accountdebit, hold releasedAccountingentries, then reportEventsauthorization.captured…Orphanspresentment without authorizationA file is integrated once only; a failed line is replayed on its own.
From the drop on the SFTP server to the effects on the account, the accounting and the events.

The Visa clearing file (BASE II) is made of fixed-length records: a file header, batches of transactions (each transaction as a main record and its continuations: additional data, chip data), a batch trailer and a file trailer carrying the control totals (number of transactions, records, amounts).

Its format is described (positions, types, continuation records, batch trailers, totals) and read by the format engine; it arrives encrypted and signed (OpenPGP) on the SFTP server, and is decoded from EBCDIC like a mainframe file.

Check Effect of a failure
Signature and encryption expected by the exchange point File refused before any read
Duplicate: same content, or same file identifier and settlement date as an integrated file File refused (duplicate file procedure)
Totals of each batch and of the file The whole file is rejected: an altered file is not cleared
Format of a transaction That line alone is rejected; the others go through

Each transaction is tied to its authorization:

  1. by the network’s transaction identifier (the normal link);
  2. failing that, by the card (its number’s fingerprint) and the approval code, within 30 days;
  3. the file’s number must be that of the found authorization’s card, otherwise the line is refused.

The transaction becomes the same message as the API or the online network (presentment, withdrawal, refund, reversal) and goes through the issuer state machine: same tolerances, same limits, same entries, same events. Each line keeps the link to the operation touched, and the operation the link to its file and line.

On Effect
The cardholder’s account Debit of the cleared amount (destination amount, in the issuer’s currency), hold released
The limits Adjusted to the final amount (a lower presentment gives back the difference)
The accounting One financial event per movement, in the same transaction; the total posted to the network settlement equals the file’s
The events authorization.captured, .refunded, .acquirer_reversed… with the file as metadata
The screens The file, its totals per batch, its lines (matched, offline, orphan, refused), the link to each operation

Integration is idempotent: each message keeps the file identifier and the line number; an interrupted integration resumes where it stopped, and a replay never presents twice.