Read transaction data
Find where a transaction was processed, its retries, its network data, and its failure codes in API responses and webhook events.
Every charge, hold, refund, and payout carries the details of how it was processed: the settlement account and processor that handled it, the attempts Pay.com made, the card network's response, and the codes behind a decline. The same fields are in API responses and in webhook events.
Where each detail is
These fields answer the common questions about a transaction.
| Question | Field | Page |
|---|---|---|
| Which settlement account and processor handled it, and why? | underlying_processing_details | Where a transaction was processed |
| Did Pay.com retry it, and why? | retry_attempts | Attempts and retries |
| What are its ARN, RRN, PAR, and authorization code? | underlying_network_details | Network data |
| What's its network transaction ID? | underlying_network_id | Network data |
| Did it pass the AVS and CVV checks? | payment_method_details.card.security_checks | Network data |
| Why was it declined? | failure_code, and the raw codes | Failure codes |
| What did it cost, and when is it paid out? | The cash flow transaction | Reconciliation |
When the fields are set
A transaction's data arrives in stages, and a field can change after the transaction is created.
| Stage | What's set |
|---|---|
| Authorization | Status, failure codes, the settlement account and route, retry attempts, the network's response codes, and the authorization code |
| Clearing | The ARN, which can replace an earlier reference. The cash flow transaction, with the final fees. |
| Later | Refunds, disputes, fraud warnings, and the payout to your bank, each with its own events |
When the ARN arrives or changes at clearing, Pay.com sends charge.updated for
a charge or refund.updated for a refund. See
Reconciliation.
Read the data from events
Every event carries its object as it stands when Pay.com sends the event, in
the same format as the API. To read the latest state, retrieve the object, for
example with
GET /v1/charges/{charge_id}.
List endpoints return shorter objects. A charge in
GET /v1/charges has no refunds
and no retry attempts. Retrieve the charge by ID for its full details. See
Bulk queries.
Availability
Card networks, acquirers, and processors don't all return the same data, so a field can be empty for one transaction and set for another. The authorization code and the network's response code come from most card acquirers. The PAR, the merchant advice code, and Mastercard's transaction link ID come from fewer. Read each field as optional.
underlying_processing_details is present only when processor details are
enabled on your account. Contact your Pay.com account team to enable them.
Next steps
- Where a transaction was processed: The settlement account, processor, and route.
- Network data: ARN, RRN, PAR, and the other network fields.
- Failure codes: Pay.com's codes, the network's codes, and the processor's.