List refunds for a charge
/charges/{transaction_id}/refundsReturns the refunds of a charge, as an array.
Headers
AuthorizationstringRequiredPath parameters
transaction_idstringRequiredTransaction ID that matches the "^chrg_\d{18,20}$" pattern.
Returns
Returns a list of refund objects.
idstringRequiredUnique identifier for the refund.
resourcestringRequiredString representing the object's type.
amountintegerRequiredAmount refunded, in the smallest currency unit.
amount_human_readablestringRequiredAmount in human-readable format.
chargestringRequiredUnique identifier of the Charge that was refunded.
createdstringRequiredTime at which the object was created, in ISO 8601 format.
currencystringRequiredThree-letter ISO currency code, in lowercase.
customerstring or nullUnique identifier of the Customer associated with this refund, if applicable.
Show 14 more attributesShow fewer attributes
customer_reference_idstring or nullYour unique identifier for the customer, as supplied when the charge was created.
metadataobjectSet of key-value pairs attached to the object.
referencestring or nullA unique string to reference the refund, useful for reconciliation with your internal systems.
statusstringStatus of the refund. One of succeeded, failed, pending, or blocked (declined by risk rules).
failure_codestring or nullError code explaining the reason for refund failure, if available.
failure_messagestring or nullHuman-readable message explaining the reason for refund failure, if available.
cashflow_transactionstring or nullUnique identifier of the Cashflow Transaction associated with this refund. Null until the refund is cleared.
test_modebooleanWhether the refund was created in the sandbox.
underlying_network_idstring or nullUnique transaction identifier assigned by the card network.
underlying_network_detailsobject or nullDetails about the underlying network transaction, if available.
Show 2 child attributesHide child attributes
Option 1objectDetails about the underlying network transaction.
Show 8 child attributesHide child attributes
networkstringThe card network that processed the transaction.
visaobjectVisa-specific network details.
Show 10 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Visa transaction.
raw_response_codestringRaw response code from Visa network.
payment_account_referencestringPayment Account Reference (PAR) for Visa transaction.
rrnstringRetrieval Reference Number for Visa transaction.
advice_codestringAdvice code for Visa transaction.
ecistringElectronic Commerce Indicator (ECI) for Visa transaction.
acistringAuthorization Characteristics Indicator (ACI) for Visa transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for Visa transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Visa transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
mastercardobjectMastercard-specific network details.
Show 11 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Mastercard transaction.
raw_response_codestringRaw response code from Mastercard network.
rrnstringRetrieval Reference Number for Mastercard transaction.
advice_codestringMerchant 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.
ecistringElectronic Commerce Indicator (ECI) for Mastercard transaction.
acistringAuthorization Characteristics Indicator (ACI) for Mastercard transaction.
ucafstringUCAF indicator for Mastercard Identity Check transactions.
payment_account_referencestringPayment Account Reference (PAR) for Mastercard transaction.
transaction_link_idstringTransaction Link ID assigned by Mastercard for this transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Mastercard transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
amexobjectAmerican Express-specific network details.
Show 10 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Amex transaction.
raw_response_codestringRaw response code from Amex network.
rrnstringRetrieval Reference Number for Amex transaction.
advice_codestringAdvice code for Amex transaction.
ecistringElectronic Commerce Indicator (ECI) for Amex transaction.
acistringAuthorization Characteristics Indicator (ACI) for Amex transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for Amex transaction.
payment_account_referencestringPayment Account Reference (PAR) for Amex transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Amex transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
discoverobjectDiscover-specific network details.
Show 10 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Discover transaction.
raw_response_codestringRaw response code from Discover network.
rrnstringRetrieval Reference Number for Discover transaction.
advice_codestringAdvice code for Discover transaction.
ecistringElectronic Commerce Indicator (ECI) for Discover transaction.
acistringAuthorization Characteristics Indicator (ACI) for Discover transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for Discover transaction.
payment_account_referencestringPayment Account Reference (PAR) for Discover transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Discover transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
visa_directobjectVisa Direct-specific network details.
Show 10 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Visa Direct transaction.
raw_response_codestringRaw response code from Visa Direct network.
rrnstringRetrieval Reference Number for Visa Direct transaction.
advice_codestringAdvice code for Visa Direct transaction.
ecistringElectronic Commerce Indicator (ECI) for Visa Direct transaction.
acistringAuthorization Characteristics Indicator (ACI) for Visa Direct transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for Visa Direct transaction.
payment_account_referencestringPayment Account Reference (PAR) for Visa Direct transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Visa Direct transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
mastercard_sendobjectMastercard Send-specific network details.
Show 11 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for Mastercard Send transaction.
raw_response_codestringRaw response code from Mastercard Send network.
rrnstringRetrieval Reference Number for Mastercard Send transaction.
advice_codestringAdvice code for Mastercard Send transaction.
ecistringElectronic Commerce Indicator (ECI) for Mastercard Send transaction.
acistringAuthorization Characteristics Indicator (ACI) for Mastercard Send transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for Mastercard Send transaction.
payment_account_referencestringPayment Account Reference (PAR) for Mastercard Send transaction.
transaction_link_idstringTransaction Link ID assigned by Mastercard for this Mastercard Send transaction.
aniobjectAccount Name Inquiry (ANI) verification details for Mastercard Send transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
jcbobjectJCB-specific network details.
Show 10 child attributesHide child attributes
arnstringThe 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_codestringAuthorization code for JCB transaction.
raw_response_codestringRaw response code from JCB network.
rrnstringRetrieval Reference Number for JCB transaction.
advice_codestringAdvice code for JCB transaction.
ecistringElectronic Commerce Indicator (ECI) for JCB transaction.
acistringAuthorization Characteristics Indicator (ACI) for JCB transaction.
ucafstringUniversal Cardholder Authentication Field (UCAF) for JCB transaction.
payment_account_referencestringPayment Account Reference (PAR) for JCB transaction.
aniobjectAccount Name Inquiry (ANI) verification details for JCB transaction.
Show 5 child attributesHide child attributes
statusstringANI verification status code.
full_namestringFull name match status code.
first_namestringFirst name match status code.
middle_namestringMiddle name match status code.
last_namestringLast name match status code.
Option 2nullunderlying_processing_detailsobjectDetails about the processing of the transaction, if available.
Show 9 child attributesHide child attributes
processorstringThe processor that handled the transaction.
transaction_idstringThe 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_accountstringUnique identifier of the settlement account used for the transaction.
settlement_account_detailsobjectDetails about the settlement account.
Show 5 child attributesHide child attributes
processorstringProcessor for the settlement account.
currencystringThree-letter ISO currency code, in lowercase. Absent when the provider settles the merchant directly (gateway/external settlement accounts).
namestringName of the settlement account.
entitystringUnique identifier of the entity that owns the settlement account.
entity_detailsobjectDetails about the entity.
Show 2 child attributesHide child attributes
legal_namestringLegal name of the entity.
countrystringCountry of the entity.
routing_detailsobjectHow Pay.com picked the first route for the transaction, if available.
Show 5 child attributesHide child attributes
selected_methodologystringHow 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 nullThe routing rule that picked the route, when selected_methodology is rule_engine. Otherwise null.
Show 1 child attributeHide child attributes
rule_idstringUnique identifier of the routing rule.
smart_routerbooleantrue when Smart Router picked the settlement account. Present only then.
smart_router_configuration_idstringUnique identifier of the Smart Router configuration that picked the settlement account. Present only when smart_router is true.
smart_router_configuration_namestringName of the Smart Router configuration that picked the settlement account. Present only when smart_router is true.
failure_codestringThe raw failure code returned by the processor, if applicable.
failure_messagestringThe raw failure message returned by the processor, if applicable.
return_codestringThe return reason code for a returned payout (for example the ACH return code R01), if applicable.
stripeobjectStripe-specific processing details.
Show 1 child attributeHide child attributes
connect_account_idstringStripe Connect account ID.
risk_assessment_detailsobject or nullDetails about the risk assessment performed on the refund, if any.
Show 2 child attributesHide child attributes
Option 1objectDetails about the risk assessment performed on the transaction.
Show 8 child attributesHide child attributes
outcomestringThe risk assessment outcome. One of three_ds_exemption, three_ds_not_required, allow, require_three_ds, three_ds_challenge, or block.
outcome_sourcestringThe source of the risk assessment outcome. One of score, rule, or rules.
rule_idstringUnique identifier of the rule that triggered the outcome. Only present when outcome_source is rule.
rules_idarray of stringsList of rule IDs that triggered the outcome. Only present when outcome_source is rules.
scorestringThe risk assessment score. Only present when outcome_source is score.
flagsarray of stringsList of risk flags associated with the transaction.
bypassedarray of stringsList of rule IDs that were bypassed.
simulatedarray of stringsList of rule IDs that were simulated (dry-run rules whose conditions matched but did not affect the outcome).
Option 2nullreceiptnullReserved for receipt details.
tax_detailsobjectTax applied to the transaction. Present only when a tax quote was applied.
Show 5 child attributesHide child attributes
amount_totalintegerTotal tax amount in the smallest currency unit. Always positive, including on refunds.
tax_behaviorstring or nullWhether the tax is included in the amount or added to it. One of inclusive or exclusive. Null on refunds.
tax_quotestring or nullUnique identifier for the tax quote applied to the transaction. Null on refunds.
effective_tax_ratestring or nullEffective tax rate applied, as a percentage. Null on refunds.
tax_transactionnullReserved.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_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.500503Retry-After, or after a few seconds when there's none.