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.
The file
Section titled “The file”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.
Checks
Section titled “Checks”| 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 |
Matching
Section titled “Matching”Each transaction is tied to its authorization:
- by the network’s transaction identifier (the normal link);
- failing that, by the card (its number’s fingerprint) and the approval code, within 30 days;
- 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.
A presentment without authorization but for a card of the bank (chip approved offline under the terminal’s floor limit, or an operation never authorized) creates the matching offline operation: the card is debited, the anomaly flagged, the dispute right opened if it was not allowed.
Neither authorization nor card known: the line is kept as an orphan, with its own status; it is not an error of the file. An orphan is replayed when the missing information arrives.
What the issuer never refuses
Section titled “What the issuer never refuses”Effects
Section titled “Effects”| 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 |
Recovery
Section titled “Recovery”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.

