Skip to Content
Docs

Where a transaction was processed

Read the settlement account, processor, route, and processor IDs of a charge, hold, refund, or payout from underlying_processing_details.

underlying_processing_details on a charge, hold, refund, or payout tells you where Pay.com processed it: the settlement account, the processor, the processor's own ID for the transaction, and how Pay.com chose the route. It's present when processor details are enabled on your account. Contact your Pay.com account team to enable them.

Fields

These fields describe where the transaction went.

FieldDescription
settlement_accountThe settlement account (sa_…) of the final attempt. After a fallback, it's the fallback's account.
settlement_account_detailsThe account's name, its currency, and the legal entity that owns it, in entity and entity_details. currency is absent for an account where the processor settles to you directly.
processorThe processor that handled the transaction, or pay_com when Pay.com acquires the payment itself
transaction_idThe processor's ID for the transaction. For some payments that Pay.com acquires itself, it's the digits of Pay.com's own ID.
routing_detailsHow Pay.com picked the first route. See Route.
failure_code and failure_messageThe processor's own decline code and message. See Failure codes.
return_codeFor a returned payout, the bank's return reason, such as the ACH code R01

A declined attempt that never reached a processor, such as one that failed 3D Secure, has no settlement account.

{
  "id": "chrg_685125114794084352",
  "resource": "charge",
  "status": "succeeded",
  "underlying_processing_details": {
    "processor": "pay_com",
    "transaction_id": "685125114794084352",
    "settlement_account": "sa_296645958265997349",
    "settlement_account_details": {
      "name": "Main Settlement Account",
      "currency": "usd",
      "entity": "ent_296645958265997359",
      "entity_details": {
        "legal_name": "ACME Corp",
        "country": "US"
      }
    },
    "routing_details": {
      "selected_methodology": "rule_engine",
      "rule_engine": {
        "rule_id": "rl_772846036363248640"
      }
    }
  }
}

Route

routing_details records the first routing decision. selected_methodology is how Pay.com picked the settlement account:

selected_methodologyWhere the account came from
merchant_providedThe settlement_account you sent in the request
rule_engineA routing rule, named in rule_engine.rule_id
static_settlement_accountYour default settlement account

When Smart Router picked the account, routing_details also has smart_router (true), smart_router_configuration_id, and smart_router_configuration_name. See How routing works.

Settlement accounts without processor details

Payment sessions, cash flow transactions, disputes, and fraud warnings have their own top-level settlement_account and settlement_account_details, whether or not processor details are enabled on your account.

Find the transaction at the processor

Pay.com sends each attempt to the processor with its own reference: the digits of the Pay.com ID, aid, and the attempt number, such as 685125114794084352aid1. Use it to find a transaction in the processor's own reports or webhooks. See Payments routed to another acquirer.

Next steps

Was this page helpful?