Skip to Content
Docs

Network data

Read the ARN, RRN, PAR, authorization code, network transaction ID, merchant advice code, and AVS and CVV results of a transaction.

The card network's data for a transaction is in underlying_network_details, keyed by network, and in underlying_network_id. Acquirers return different subsets of it, so read every field as optional. See Availability.

Read the network details

underlying_network_details.network names the network, and the object under that key holds its data. The keys are visa, mastercard, amex, discover, jcb, visa_direct, and mastercard_send.

{
  "id": "chrg_685125114794084352",
  "resource": "charge",
  "status": "succeeded",
  "underlying_network_id": "385127914835097",
  "underlying_network_details": {
    "network": "visa",
    "visa": {
      "auth_code": "831000",
      "raw_response_code": "00",
      "arn": "24011346075000012345678",
      "payment_account_reference": "V0010013826071948572061837495",
      "eci": "05"
    }
  },
  "payment_method_details": {
    "type": "card",
    "card": {
      "brand": "visa",
      "last4": "4242",
      "security_checks": {
        "address_line1_check": "pass",
        "address_postal_code_check": "pass",
        "cvc_check": "pass"
      }
    }
  }
}

underlying_network_details is null when the acquirer returned none of these fields. Charges, holds, refunds, payouts, payment attempts, and retry attempts all carry it, and the 400 response for a declined payment includes it too.

FieldWhat it isSet
auth_codeThe authorization code the issuer returnedAt authorization
arnThe acquirer reference number. See ARN.At clearing
rrnThe retrieval reference number. See RRN.At authorization
raw_response_codeThe response code behind the decline or approval. See Failure codes.At authorization
advice_codeThe merchant advice code, which tells you whether and when to retry. See Merchant advice codes.At authorization
payment_account_referenceThe PAR. See PAR.At authorization
eciThe electronic commerce indicator the network returned with the authorizationAt authorization
aci and ucafVisa's authorization characteristics indicator and Mastercard's UCAF indicatorAt authorization
transaction_link_idMastercard's transaction link ID, which links the payments of one agreementAt authorization
aniThe account name inquiry results. See Account name inquiry.At authorization

ARN

The acquirer reference number (ARN) is the reference the acquirer gives a transaction when it submits it to the network at clearing. The issuer can use it to trace a payment or refund, so give it to a customer who asks their bank where a refund is.

Until a transaction clears, arn can hold another reference from the acquirer, such as an RRN or the acquirer's own transaction ID, or nothing. When the clearing record brings the ARN, it replaces that value, and Pay.com sends an event with the updated object:

  • charge.updated for a charge or a capture
  • refund.updated for a refund

charge.updated

{
  "id": "evt_689214575123456789",
  "resource": "event",
  "type": "charge.updated",
  "created": "2026-03-07T03:14:22.180Z",
  "data": {
    "id": "chrg_685125114794084352",
    "resource": "charge",
    "status": "succeeded",
    "underlying_network_details": {
      "network": "visa",
      "visa": {
        "auth_code": "831000",
        "arn": "24011346075000012345678"
      }
    }
  }
}

charge.updated also fires when Pay.com adds tax details to a charge, so compare the ARN with the one you stored before you act on the event. See Reconciliation for the other events at clearing.

To find a charge by its ARN, filter GET /v1/charges by underlying_network_details.arn. The filter matches the whole value, so before clearing it matches the earlier reference. A dispute's arn comes from the dispute record, or from the charge when the record has none.

RRN

The retrieval reference number (RRN) is the 12-character reference for the authorization. Your acquirer or the issuer can use it to find the authorization in their systems. Fewer acquirers return it than the authorization code.

PAR

The payment account reference (PAR) identifies the card account behind a payment. It stays the same when the card is reissued with a new number, and for each network token of the account. Use it to recognize a returning customer, or to link payments made with a card and with its tokens.

payment_account_reference is set at authorization when the acquirer returns it. A network token also carries the PAR, in GET /v1/payment_methods/{payment_method_id}/network_token.

Merchant advice codes

A merchant advice code tells you whether to retry a declined payment, and when. Mastercard sends advice codes with approvals and declines, for example 03 (do not try again) or 24 (retry after 1 hour). See Mastercard merchant advice codes for every code.

Visa doesn't use merchant advice codes. Its response codes fall into categories that tell you whether a retry can succeed. See Card network retry limits.

Network transaction ID

underlying_network_id is the ID the card network gives the authorization, such as Visa's transaction identifier or Mastercard's trace ID. It's on charges, holds, refunds, payment attempts, retry attempts, and payment methods, and not on payouts.

The network transaction ID links later merchant-initiated payments to the payment where the customer agreed to them. When a payment saves a card for off-session use, Pay.com stores the ID on the payment method and passes it to the acquirer with later merchant-initiated payments. See Recurring charges.

For some acquirers, the clearing record carries a network transaction ID that replaces the one from the authorization. Pay.com sends no event for this change alone, so retrieve the object to read the current value.

AVS and CVV results

payment_method_details.card.security_checks holds the results of the address verification service (AVS) and the CVV check.

FieldCheck
address_line1_checkThe street address
address_postal_code_checkThe postal code
cvc_checkThe CVV

Each result is one of these values:

ValueMeaning
passThe value matches the issuer's records
failThe value doesn't match
unavailableThe issuer or network couldn't check it
uncheckedNo check ran, for example because the request had no CVV

Pay.com maps each acquirer's AVS and CVV codes to these values, and doesn't return the raw codes. cvc_check is unchecked when the acquirer returned no result, and the address checks are null.

To decline payments by these results, set card.security_checks in your payment method options.

3D Secure results

payment_method_details.card.three_d_secure holds the result of 3D Secure: result, authentication_flow, the 3D Secure eci, and liability_shift. liability_shift comes from the ECI. See 3D Secure.

Payout network data

For a card payout, underlying_network_details has the same fields as a charge. For a US bank account payout, network is ach, rtp, or fednow, and ach.trace_number is the ACH trace number. See Track payouts.

Availability

Each acquirer returns its own subset of these fields. The table shows how widely each one is returned.

FieldReturned by
auth_code, raw_response_code, underlying_network_idMost card acquirers
AVS and CVV resultsMost card acquirers. Some return the CVV result and only part of the address result.
arnThe acquirers whose clearing records include the ARN
eciMany acquirers
advice_code, payment_account_referenceSome acquirers
transaction_link_idSome acquirers, for Mastercard payments
rrnFew acquirers
aci and ucafFew acquirers

Card payments that Pay.com acquires itself, where processor is pay_com, return the authorization code, the response code, the network transaction ID, and the ECI. They also return the merchant advice code and the PAR when the network sends them, and the ARN once they clear.

Next steps

Was this page helpful?