Reconciliation
How Pay.com clears transactions with each acquirer's data, what changes when they clear, and how they reach a settlement.
A transaction is final once it clears. Pay.com receives clearing data from every acquirer and processor your payments go through, matches each record to its transaction, and books the final fees. A settlement then pays out the cleared transactions to your bank. Reconciling means matching each of these steps to your own records.
From authorization to your bank
A charge goes through three stages after the customer pays.
- Authorization. The issuer approves or declines the payment. Pay.com books
estimated fees, and sets
available_on, the date the transaction is expected to be paid out. - Clearing. The acquirer's clearing data confirms the transaction, with its final amount and fees. Pay.com books the final fees and marks the transaction cleared.
- Settlement. On your settlement schedule, Pay.com pays out every cleared transaction whose funding delay has passed, less fees, chargebacks, reserves, and adjustments.
How clearing data reaches Pay.com
Each acquirer and processor sends its clearing data in its own way: daily files, reports, or API calls. Chargebacks and the card networks' fraud reports (Visa TC40 and Mastercard SAFE) arrive the same way. Pay.com reads each one and maps it to Pay.com's own objects, so you receive the same events and reports whichever acquirer processed a payment.
Pay.com sends each attempt to the acquirer with its own reference: the digits
of the Pay.com ID, aid, and the attempt number, such as
685125114794084352aid1. The acquirer's clearing record carries that
reference back, and Pay.com uses it to match the record to the transaction.
See Pay.com's reference at the acquirer.
Pay.com also checks the other way: an approved transaction that's missing from the acquirer's data is flagged for Pay.com to follow up.
What changes when a transaction clears
When a charge, refund, or payout clears, Pay.com updates it and creates its cash flow transaction.
| What | Change |
|---|---|
cashflow_transaction on the charge, refund, or payout | Set to its cash flow transaction's ID, which has the same digits, such as cflw_tx_688930130227113984 for chrg_688930130227113984 |
| Cash flow transaction | Created, with the final fee, fee_breakdown, and net_amount |
underlying_network_details | Gains the ARN and RRN, when the acquirer sends them. See Network data. |
underlying_network_id | The network transaction ID, when the acquirer sends it |
| Exchange rate and settlement amount | Can change to the acquirer's rate, when the transaction and settlement currencies differ. See Exchange rates. |
| Reconciliation transactions | The transaction is listed for its clearing date |
paid | Stays false until a settlement pays the transaction out |
A declined transaction that carried fees, such as a decline fee, clears too.
Its cash flow transaction has type: "decline" and a negative net_amount.
Events at clearing
Pay.com sends these events when a transaction clears.
| Event | When |
|---|---|
cashflow_transaction.created | Every time a charge, refund, or payout clears |
charge.updated | A charge or capture cleared with a new or changed ARN |
refund.updated | A refund cleared with a new or changed ARN |
The events are sent together, so they can arrive in any order, and an event can
arrive more than once. Handle each event once, using its id, and read the
charge again if you need its latest state.
When an acquirer reports that it abandoned a charge's clearing, Pay.com sends
charge.clearing_abandoned. The charge's funds aren't settled.
Chargebacks and fraud reports
Chargebacks and fraud reports reach Pay.com in the acquirers' data too:
- Chargebacks open or update the charge's dispute, and
Pay.com sends a
dispute.*event when its status changes. The chargeback's amount and fees are taken from a later settlement, inchargeback_amountandchargeback_fees. A chargeback has no cash flow transaction. It's in the disputes reports. - Fraud reports, Visa TC40 and Mastercard SAFE records, set
fraud: trueon the charge and create a fraud warning. Pay.com sendsfraud_warning.created. A fraud report moves no money.
How cleared transactions reach a settlement
Pay.com builds settlements on your settlement account's schedule: daily, weekly, or monthly, on banking days. A settlement includes every transaction that's cleared, not yet settled, and past its funding delay, together with the chargebacks, fees, reserves, and adjustments due. A transaction that isn't ready waits for a later settlement.
Pay.com pays the net amount to your bank with a reference that names the
settlement, such as PAY.COM/stlmnt_690127572775747584, marks the transactions
paid: true, and sends settlement.paid. If your acquirer pays you directly,
Pay.com records the acquirer's payout as the settlement instead, and sends
settlement.paid when it processes the acquirer's payment report. See
Settlements.
Reconcile your records
Reconcile at the level your accounting needs.
| Level | Match | Use |
|---|---|---|
| Transaction | Each cleared transaction, its fees, and its net amount | The transaction reconciliation report, or Reconcile transactions with the API |
| Settlement | A settlement's transactions, fees, and adjustments against its amount | The settlement report, or Reconcile a settlement with the API |
| Bank deposit | A deposit in your bank account against a settlement | The deposit's reference, such as PAY.COM/stlmnt_690127572775747584, names the settlement |
| Balance | What Pay.com owes you, at any point in time | Balances and cash flow |
To test your reconciliation in the sandbox, clear a sandbox charge with Simulate clearing.
Next steps
- Reconcile transactions: List cleared transactions with their fees.
- Settlements: What a settlement contains and when it's paid.
- Daily reports: Receive the same data as files.