Skip to Content
Docs
Charges

List refunds for a charge

GET/charges/{transaction_id}/refunds

Returns the refunds of a charge, as an array.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

transaction_idstringRequired

Transaction ID that matches the "^chrg_\d{18,20}$" pattern.

Returns

Returns a list of refund objects.

idstringRequired

Unique identifier for the refund.

resourcestringRequired

String representing the object's type.

amountintegerRequired

Amount refunded, in the smallest currency unit.

amount_human_readablestringRequired

Amount in human-readable format.

chargestringRequired

Unique identifier of the Charge that was refunded.

createdstringRequired

Time at which the object was created, in ISO 8601 format.

currencystringRequired

Three-letter ISO currency code, in lowercase.

customerstring or null

Unique identifier of the Customer associated with this refund, if applicable.

Show 14 more attributesShow fewer attributes
customer_reference_idstring or null

Your unique identifier for the customer, as supplied when the charge was created.

metadataobject

Set of key-value pairs attached to the object.

referencestring or null

A unique string to reference the refund, useful for reconciliation with your internal systems.

statusstring

Status of the refund. One of succeeded, failed, pending, or blocked (declined by risk rules).

One of succeeded, failed, pending or blocked.

failure_codestring or null

Error code explaining the reason for refund failure, if available.

failure_messagestring or null

Human-readable message explaining the reason for refund failure, if available.

cashflow_transactionstring or null

Unique identifier of the Cashflow Transaction associated with this refund. Null until the refund is cleared.

test_modeboolean

Whether the refund was created in the sandbox.

underlying_network_idstring or null

Unique transaction identifier assigned by the card network.

underlying_network_detailsobject or null

Details about the underlying network transaction, if available.

Show 2 child attributesHide child attributes
Option 1object

Details about the underlying network transaction.

Show 8 child attributesHide child attributes
networkstring

The card network that processed the transaction.

visaobject

Visa-specific network details.

Show 10 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Visa transaction.

raw_response_codestring

Raw response code from Visa network.

payment_account_referencestring

Payment Account Reference (PAR) for Visa transaction.

rrnstring

Retrieval Reference Number for Visa transaction.

advice_codestring

Advice code for Visa transaction.

ecistring

Electronic Commerce Indicator (ECI) for Visa transaction.

acistring

Authorization Characteristics Indicator (ACI) for Visa transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for Visa transaction.

aniobject

Account Name Inquiry (ANI) verification details for Visa transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

mastercardobject

Mastercard-specific network details.

Show 11 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Mastercard transaction.

raw_response_codestring

Raw response code from Mastercard network.

rrnstring

Retrieval Reference Number for Mastercard transaction.

advice_codestring

Merchant Advice Code (MAC) from Mastercard, as the issuer sent it, for example 02 (cannot approve at this time, try again later) or 03 (do not try again). See Mastercard merchant advice codes for every code and when to retry.

ecistring

Electronic Commerce Indicator (ECI) for Mastercard transaction.

acistring

Authorization Characteristics Indicator (ACI) for Mastercard transaction.

ucafstring

UCAF indicator for Mastercard Identity Check transactions.

payment_account_referencestring

Payment Account Reference (PAR) for Mastercard transaction.

aniobject

Account Name Inquiry (ANI) verification details for Mastercard transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

amexobject

American Express-specific network details.

Show 10 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Amex transaction.

raw_response_codestring

Raw response code from Amex network.

rrnstring

Retrieval Reference Number for Amex transaction.

advice_codestring

Advice code for Amex transaction.

ecistring

Electronic Commerce Indicator (ECI) for Amex transaction.

acistring

Authorization Characteristics Indicator (ACI) for Amex transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for Amex transaction.

payment_account_referencestring

Payment Account Reference (PAR) for Amex transaction.

aniobject

Account Name Inquiry (ANI) verification details for Amex transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

discoverobject

Discover-specific network details.

Show 10 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Discover transaction.

raw_response_codestring

Raw response code from Discover network.

rrnstring

Retrieval Reference Number for Discover transaction.

advice_codestring

Advice code for Discover transaction.

ecistring

Electronic Commerce Indicator (ECI) for Discover transaction.

acistring

Authorization Characteristics Indicator (ACI) for Discover transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for Discover transaction.

payment_account_referencestring

Payment Account Reference (PAR) for Discover transaction.

aniobject

Account Name Inquiry (ANI) verification details for Discover transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

visa_directobject

Visa Direct-specific network details.

Show 10 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Visa Direct transaction.

raw_response_codestring

Raw response code from Visa Direct network.

rrnstring

Retrieval Reference Number for Visa Direct transaction.

advice_codestring

Advice code for Visa Direct transaction.

ecistring

Electronic Commerce Indicator (ECI) for Visa Direct transaction.

acistring

Authorization Characteristics Indicator (ACI) for Visa Direct transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for Visa Direct transaction.

payment_account_referencestring

Payment Account Reference (PAR) for Visa Direct transaction.

aniobject

Account Name Inquiry (ANI) verification details for Visa Direct transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

mastercard_sendobject

Mastercard Send-specific network details.

Show 11 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for Mastercard Send transaction.

raw_response_codestring

Raw response code from Mastercard Send network.

rrnstring

Retrieval Reference Number for Mastercard Send transaction.

advice_codestring

Advice code for Mastercard Send transaction.

ecistring

Electronic Commerce Indicator (ECI) for Mastercard Send transaction.

acistring

Authorization Characteristics Indicator (ACI) for Mastercard Send transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for Mastercard Send transaction.

payment_account_referencestring

Payment Account Reference (PAR) for Mastercard Send transaction.

aniobject

Account Name Inquiry (ANI) verification details for Mastercard Send transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

jcbobject

JCB-specific network details.

Show 10 child attributesHide child attributes
arnstring

The acquirer reference number (ARN), which the acquirer assigns at clearing. Until the transaction clears, it can hold another reference from the acquirer, such as an RRN, or be absent. Pay.com sends charge.updated or refund.updated when the ARN arrives or changes.

auth_codestring

Authorization code for JCB transaction.

raw_response_codestring

Raw response code from JCB network.

rrnstring

Retrieval Reference Number for JCB transaction.

advice_codestring

Advice code for JCB transaction.

ecistring

Electronic Commerce Indicator (ECI) for JCB transaction.

acistring

Authorization Characteristics Indicator (ACI) for JCB transaction.

ucafstring

Universal Cardholder Authentication Field (UCAF) for JCB transaction.

payment_account_referencestring

Payment Account Reference (PAR) for JCB transaction.

aniobject

Account Name Inquiry (ANI) verification details for JCB transaction.

Show 5 child attributesHide child attributes
statusstring

ANI verification status code.

full_namestring

Full name match status code.

first_namestring

First name match status code.

middle_namestring

Middle name match status code.

last_namestring

Last name match status code.

Option 2null
underlying_processing_detailsobject

Details about the processing of the transaction, if available.

Show 9 child attributesHide child attributes
processorstring

The processor that handled the transaction.

transaction_idstring

The processor's identifier for the transaction. For some payments that Pay.com acquires itself, it's the digits of Pay.com's own ID.

settlement_accountstring

Unique identifier of the settlement account used for the transaction.

settlement_account_detailsobject

Details about the settlement account.

Show 5 child attributesHide child attributes
processorstring

Processor for the settlement account.

currencystring

Three-letter ISO currency code, in lowercase. Absent when the provider settles the merchant directly (gateway/external settlement accounts).

namestring

Name of the settlement account.

entitystring

Unique identifier of the entity that owns the settlement account.

entity_detailsobject

Details about the entity.

Show 2 child attributesHide child attributes
legal_namestring

Legal name of the entity.

countrystring

Country of the entity.

routing_detailsobject

How Pay.com picked the first route for the transaction, if available.

Show 5 child attributesHide child attributes
selected_methodologystring

How Pay.com picked the settlement account. merchant_provided is the settlement_account in the request, rule_engine a routing rule, and static_settlement_account your default settlement account. Older transactions can show other values.

rule_engineobject or null

The routing rule that picked the route, when selected_methodology is rule_engine. Otherwise null.

Show 1 child attributeHide child attributes
rule_idstring

Unique identifier of the routing rule.

smart_routerboolean

true when Smart Router picked the settlement account. Present only then.

smart_router_configuration_idstring

Unique identifier of the Smart Router configuration that picked the settlement account. Present only when smart_router is true.

smart_router_configuration_namestring

Name of the Smart Router configuration that picked the settlement account. Present only when smart_router is true.

failure_codestring

The raw failure code returned by the processor, if applicable.

failure_messagestring

The raw failure message returned by the processor, if applicable.

return_codestring

The return reason code for a returned payout (for example the ACH return code R01), if applicable.

stripeobject

Stripe-specific processing details.

Show 1 child attributeHide child attributes
connect_account_idstring

Stripe Connect account ID.

risk_assessment_detailsobject or null

Details about the risk assessment performed on the refund, if any.

Show 2 child attributesHide child attributes
Option 1object

Details about the risk assessment performed on the transaction.

Show 8 child attributesHide child attributes
outcomestring

The risk assessment outcome. One of three_ds_exemption, three_ds_not_required, allow, require_three_ds, three_ds_challenge, or block.

One of three_ds_exemption, three_ds_not_required, allow, require_three_ds, three_ds_challenge or block.

outcome_sourcestring

The source of the risk assessment outcome. One of score, rule, or rules.

One of score, rule or rules.

rule_idstring

Unique identifier of the rule that triggered the outcome. Only present when outcome_source is rule.

rules_idarray of strings

List of rule IDs that triggered the outcome. Only present when outcome_source is rules.

scorestring

The risk assessment score. Only present when outcome_source is score.

flagsarray of strings

List of risk flags associated with the transaction.

bypassedarray of strings

List of rule IDs that were bypassed.

simulatedarray of strings

List of rule IDs that were simulated (dry-run rules whose conditions matched but did not affect the outcome).

Option 2null
receiptnull

Reserved for receipt details.

tax_detailsobject

Tax applied to the transaction. Present only when a tax quote was applied.

Show 5 child attributesHide child attributes
amount_totalinteger

Total tax amount in the smallest currency unit. Always positive, including on refunds.

tax_behaviorstring or null

Whether the tax is included in the amount or added to it. One of inclusive or exclusive. Null on refunds.

One of inclusive or exclusive.

tax_quotestring or null

Unique identifier for the tax quote applied to the transaction. Null on refunds.

effective_tax_ratestring or null

Effective tax rate applied, as a percentage. Null on refunds.

tax_transactionnull

Reserved.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?