Skip to Content
Docs

Data

Read transaction details from API responses and webhooks, receive reports, reconcile cleared transactions and settlements, and query data in bulk.

Pay.com records every transaction from authorization to the payout to your bank, across every acquirer and processor your payments go through. This section shows how to read that data and bring it into your own systems.

Find the data you need

Each question has a place in the API, the events, or the reports.

QuestionWhere to look
Which acquirer and settlement account processed a payment?underlying_processing_details on the charge. See Where a transaction was processed.
Was the payment retried, and why?retry_attempts on the charge. See Attempts and retries.
What are its ARN, RRN, PAR, and authorization code?underlying_network_details on the charge or refund. See Network data.
Why was it declined?failure_code, the network's raw response code, and the processor's own code. See Failure codes.
What did it cost, and what did I receive?The cash flow transaction, or the transaction reconciliation report
When will I be paid?available_on on the cash flow transaction, and your settlements
What did yesterday's transactions add up to?The daily reports
What's in a deposit to my bank?The settlement the deposit's reference names

How your data builds up

A payment's data arrives in stages. Each stage adds fields to its objects and sends events.

  1. Authorization. The charge has its status, where it was processed, its retries, and the network's response. Pay.com sends charge.succeeded or charge.failed.
  2. Clearing. The acquirer's clearing data confirms the transaction. Pay.com books the final fees, adds network data such as the ARN, and creates the cash flow transaction. It sends cashflow_transaction.created, and charge.updated when the ARN arrives.
  3. Reports. Once the day's clearing data from all your providers is in, Pay.com generates the daily reports.
  4. Settlement. On your schedule, Pay.com pays out the cleared transactions, sends settlement.paid, and generates the settlement report.

Settlement accounts

All payout data is scoped to a settlement account: an account with an acquirer or processor, in one settlement currency, with the prefix sa_. If you process transactions in more than one currency, you have a settlement account for each, with its own balance and settlements. See Settlements.

Next steps

Was this page helpful?