Skip to Content
Docs

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.

QuestionFieldPage
Which settlement account and processor handled it, and why?underlying_processing_detailsWhere a transaction was processed
Did Pay.com retry it, and why?retry_attemptsAttempts and retries
What are its ARN, RRN, PAR, and authorization code?underlying_network_detailsNetwork data
What's its network transaction ID?underlying_network_idNetwork data
Did it pass the AVS and CVV checks?payment_method_details.card.security_checksNetwork data
Why was it declined?failure_code, and the raw codesFailure codes
What did it cost, and when is it paid out?The cash flow transactionReconciliation

When the fields are set

A transaction's data arrives in stages, and a field can change after the transaction is created.

StageWhat's set
AuthorizationStatus, failure codes, the settlement account and route, retry attempts, the network's response codes, and the authorization code
ClearingThe ARN, which can replace an earlier reference. The cash flow transaction, with the final fees.
LaterRefunds, 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

Was this page helpful?