Skip to Content
Docs

Attempts and retries

Read the attempts Pay.com made for a charge or hold, why it retried each one, and where each attempt was processed.

Pay.com can make more than one attempt for a payment, for example a fallback to another settlement account after a decline. A charge or hold lists the attempts before its final one in retry_attempts, each with its own result, network data, and settlement account. The charge's own fields describe the final attempt.

Read the attempts on a charge

GET /v1/charges/{charge_id} returns retry_attempts, oldest first. The array is empty when Pay.com made one attempt. Each attempt has these fields:

FieldDescription
idThe attempt's ID, such as rtratt_685125114794084352_1_1: rtratt_, the charge's digits, the payment attempt's number, and the retry's number
typeWhy Pay.com made another attempt after this one. See Retry types.
createdWhen the attempt was made
failure_code and failure_messageWhy the attempt failed
underlying_network_details and underlying_network_idThe attempt's network data, such as its raw response code
underlying_processing_detailsWhere the attempt was processed, including its own settlement_account
payment_method_optionsThe options Pay.com applied to the attempt

Holds have retry_attempts too. The charges and holds in list responses have an empty retry_attempts, so retrieve each one by ID to read its attempts.

{
  "id": "chrg_685125114794084352",
  "resource": "charge",
  "status": "succeeded",
  "underlying_processing_details": {
    "settlement_account": "sa_296645958265997350"
  },
  "retry_attempts": [
    {
      "id": "rtratt_685125114794084352_1_1",
      "created": "2026-03-06T14:02:38.112Z",
      "type": "fallback",
      "failure_code": "do_not_honour",
      "underlying_network_details": {
        "network": "visa",
        "visa": { "raw_response_code": "05" }
      },
      "underlying_processing_details": {
        "settlement_account": "sa_296645958265997349"
      }
    }
  ]
}

A declined charge's 400 error response also carries retry_attempts, so you can read why each attempt failed without another call.

Retry types

type tells you why Pay.com made another attempt.

typeWhy Pay.com retriedControlled by
fallbackThe attempt was declined or failed, and a routing rule's fallback sent the payment to another settlement accountYour routing rules
soft_declineThe issuer asked for authentication, and Pay.com retried with 3D Securepayment_method_options.card.request_sca_exemption.soft_decline_loop
network_token_fallbackThe attempt with a network token was declined, and Pay.com retried with the card numberpayment_method_options.card.network_token.authorization.full_pan_fallback
abuThe account billing updater updated the card, and Pay.com retried with the new detailspayment_method_options.card.account_billing_updater
decline_recoveryThe last fallback was declined, and decline recovery retried the paymentAn account setting, which Pay.com turns on

Fallback lists, soft decline lists, network token fallback lists, and account billing updater lists all match Pay.com's failure codes, not the network's raw codes. See Fallbacks and retries for how each one works.

Follow retries as they happen

Pay.com sends retried_attempt.created before each retry, with the attempt that's being retried. See Fallbacks and retries.

Attempts in a payment session

A payment session can have several payment attempts, one for each time the customer tried to pay, and each payment attempt has its own retry_attempts. List them with GET /v1/sessions/payment/{session}/attempts, or retrieve one by its psatt_ ID. A payment attempt's amount is the amount requested. To find the charge or hold a session created, read the session's charge or hold.

Next steps

Was this page helpful?