Skip to Content
Docs
Customers

List customer payment methods

GET/customers/{reference_id}/payment_methods

Retrieves a list of payment methods for a customer.

Headers

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

Path parameters

reference_idstringRequired

Your unique identifier for the customer.

Returns

Returns a list of payment method objects.

idstring

Unique identifier for the Payment Method resource.

typestring or null

The type of the payment method, for example card, googlepay, applepay, paypal, us_bank_account or crypto.

resourcestring

String representing the object's type.

billing_detailsobject or null

Billing information associated with the payment method.

Show 2 child attributesHide child attributes
Option 1object

Billing information for the payment. Fields that were not provided are returned as null.

Show 6 child attributesHide child attributes
addressobject or null

Billing address, if available.

Show 2 child attributesHide child attributes
Option 1object

Address details.

Show 6 child attributesHide child attributes
citystring

City, district, suburb, town, or village.

countrystring

Two-letter country code (ISO 3166-1 alpha-2).

line1string

Address line 1 (for example, street, PO Box, or company name).

line2string or null

Address line 2 (for example, apartment, suite, unit, or building). Responses return null when not set.

postal_codestring

ZIP or postal code.

statestring or null

State, county, province, or region. Null is accepted and returned when not set.

Option 2null
namestring or null

Full name of the billing contact.

emailstring or null

Email address of the billing contact.

phonestring or null

Phone number of the billing contact, if available.

dobstring or null

Date of birth in YYYY-MM-DD format.

national_identification_numberstring or null

National identification number of the billing contact.

Option 2null
statusstring

Status of the payment method. One of created, requires_authentication, failed_authentication, or requires_confirmation.

One of created, requires_authentication, failed_authentication or requires_confirmation.

createdstring

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

metadataobject

Set of key-value pairs attached to the object.

off_sessionboolean

Whether the payment method has a network transaction ID, so it can be used for merchant-initiated (off-session) payments.

Show 18 more attributesShow fewer attributes
referencestring or null

The payment method's ID at the provider it was imported from, sent as reference on import, if applicable.

risk_assessment_detailsobject or null

Risk assessment of the verification of the payment method, if applicable.

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
underlying_network_idstring or null

Unique transaction identifier assigned by the card network, if applicable.

underlying_network_detailsobject or null

Details about the underlying network transaction, if applicable.

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
customerstring or null

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

customer_reference_idstring or null

Your unique identifier for the customer associated with this payment method.

flow_directionsobject

Supported payment flow directions for this payment method.

Show 2 child attributesHide child attributes
paymentboolean

Whether the payment method can be used for payments.

payoutboolean

Whether the payment method can be used for payouts.

test_modeboolean

Whether the payment method was created in the sandbox.

cardobject

Details for card, Google Pay and Apple Pay payment methods. The 3D Secure result of the verification is in card.three_d_secure.

Show 21 child attributesHide child attributes
binstring

The first six digits of the card number.

brandstring

The brand of the card.

One of visa, mastercard, amex, discover, unionpay, jcb or diners.

cardholder_currencystring

Three-letter ISO currency code of the cardholder's card, in lowercase.

countrystring

Two-letter ISO code representing the country of the card issuer.

exp_monthstring

Two-digit string representing the card's expiration month.

exp_yearstring

Four-digit string representing the card's expiration year.

fingerprintstring

Unique identifier for this card number, useful for detecting duplicate cards across customers.

fundingstring

The funding type of the card.

One of debit, credit, prepaid or unknown.

last4string

The last four digits of the card number.

networkstring

The card's brand, such as visa. The payment's network data is in underlying_network_details.

categorystring

Card category.

One of consumer or business.

security_checksobject

Results of security checks performed on the card.

Show 3 child attributesHide child attributes
address_line1_checkstring or null

Result of the AVS check for address line 1. Null when the acquirer returned no address result.

One of pass, fail, unavailable or unchecked.

address_postal_code_checkstring or null

Result of the AVS check for postal code. Null when the acquirer returned no address result.

One of pass, fail, unavailable or unchecked.

cvc_checkstring

Result of the CVC check. unchecked when the acquirer returned no result.

One of pass, fail, unavailable or unchecked.

walletobject or null

Details about the digital wallet used, if applicable.

Show 4 child attributesHide child attributes
typestring

Type of the digital wallet. One of googlepay, applepay, or ctp (Click to Pay).

One of googlepay, applepay or ctp.

googlepayobject

Google Pay details. Present when type is googlepay.

Show 2 child attributesHide child attributes
typestring

Google Pay authentication method. One of cryptogram_3ds (tokenized card) or pan_only (card stored in the Google account).

One of cryptogram_3ds or pan_only.

physical_card_last4string

The last four digits of the physical card behind the wallet token, if available.

applepayobject

Apple Pay details, if available.

Show 1 child attributeHide child attributes
physical_card_last4string

The last four digits of the physical card behind the wallet token.

ctpobject

Click to Pay details, if available.

Show 4 child attributesHide child attributes
physical_card_last4string

The last four digits of the physical card.

physical_card_binstring

The BIN of the physical card, if available.

physical_card_exp_monthstring

Expiration month of the physical card, if available.

physical_card_exp_yearstring

Expiration year of the physical card, if available.

tokenstring

Token identifier for the card payment method.

three_d_secureobject or null

Details about the 3D Secure authentication, if the payment used 3D Secure. Null otherwise. Not returned to accounts with the new 3D Secure fields enabled, which receive three_ds instead.

Show 2 child attributesHide child attributes
Option 1object

Populated if this payment used 3D Secure authentication. This is the default format; accounts with the new 3D Secure fields enabled receive three_ds instead.

Show 7 child attributesHide child attributes
authentication_flowstring or null

For authenticated transactions: how the customer was authenticated by the issuing bank, for example challenge or frictionless.

resultstring or null

Outcome of the 3D Secure authentication, for example success, failure or error.

result_reasonstring or null

Reason for the result. One of authenticated, rejected, processing_errors, out_of_scope, high_risk, invalid, network_not_supported, acquirer_not_supported, not_enrolled, unavailable, or unknown, if applicable.

versionstring or null

The version of 3D Secure that was used.

ecistring or null

ECI Indicator from the 3D Secure authentication.

cardholder_infostring or null

Text provided by the ACS/issuer to the cardholder during authentication, if applicable.

liability_shiftboolean

Whether the liability shift was applied.

Option 2null
three_dsobject or null

Details about the 3D Secure authentication in the new fields format, if the payment used 3D Secure. Only returned to accounts with the new 3D Secure fields enabled, instead of three_d_secure.

Show 2 child attributesHide child attributes
Option 1object

Populated if this payment used 3D Secure authentication. Returned as three_ds only for accounts with the new 3D Secure fields enabled; other accounts receive three_d_secure.

Show 14 child attributesHide child attributes
authentication_flowstring

For authenticated transactions: how the customer was authenticated by the issuing bank.

resultstring

Outcome of the 3D Secure authentication, for example success, failure or error.

result_reasonstring

Reason for the result. One of authenticated, rejected, processing_errors, out_of_scope, high_risk, invalid, network_not_supported, acquirer_not_supported, not_enrolled, unavailable, or unknown, if applicable.

status_reasonstring or null

Status reason code from the 3D Secure authentication.

protocol_versionstring

The version of 3D Secure that was used.

ecistring

ECI Indicator from the 3D Secure authentication.

cryptogramstring

Cryptogram from the 3D Secure authentication.

liability_shiftboolean

Whether the liability shift was applied.

cardholder_infostring or null

Text provided by the ACS/issuer to the cardholder during authentication.

acs_transaction_idstring

ACS Transaction ID from the 3D Secure authentication.

three_ds_server_transaction_idstring

3DS Server Transaction ID from the 3D Secure authentication.

ds_transaction_idstring

DS Transaction ID from the 3D Secure authentication.

aresstring

Authentication Response (ARes) from the 3D Secure authentication.

rreqstring

Requestor Response (RReq) from the 3D Secure authentication.

Option 2null
payoutstring or null

Whether the card can receive payouts. One of available or not_available, if known.

One of available or not_available.

name_verificationstring

Result of name verification using ANI (Account Name Inquiry). One of match, partial_match, no_match, not_performed, or not_supported.

One of match, partial_match, no_match, not_performed or not_supported.

partial_approvalobject or null

Details about the partial approval, if the transaction was partially approved. Null otherwise.

Show 2 child attributesHide child attributes
Option 1object

Details about the partial approval, if the transaction was partially approved.

Show 5 child attributesHide child attributes
statusstring

Status of the partial approval:

  • pending: the issuer approved a lower amount, and the payment waits for you to confirm or cancel it.
  • accepted: the lower amount was accepted.
  • canceled: the partial approval was canceled, and the payment wasn't completed.
  • rejected: a partial approval was requested, but the issuer declined the payment for insufficient funds instead. Its amounts are 0.

One of pending, accepted, canceled or rejected.

amount_requestedinteger

Amount requested, in the smallest currency unit.

amount_authorizedinteger

Amount authorized, in the smallest currency unit.

amount_chargedinteger

Amount charged, in the smallest currency unit.

product_idstring

Unique identifier of the product associated with the partial approval.

Option 2null
namestring

The cardholder's name. Only present for specific merchants.

issuerstring

Name of the card issuer. Only present for specific merchants.

paypalobject

Details for PayPal payment methods.

Show 3 child attributesHide child attributes
emailstring

The PayPal account email address.

firstNamestring

The PayPal account holder's first name.

lastNamestring

The PayPal account holder's last name.

cashappobject

Details for Cash App payment methods.

Show 2 child attributesHide child attributes
cashtagstring

The Cash App account the customer set up.

namestring

Name of the Cash App account holder, if applicable.

us_bank_accountobject

Details for US bank account payment methods.

Show 10 child attributesHide child attributes
countrystring

Two-letter ISO country code (ISO 3166-1 alpha-2) of the bank.

currencystring

Three-letter ISO currency code of the bank account.

last4string

The last four digits of the bank account number.

account_holder_namestring

The name of the account holder.

account_holder_typestring

The type of entity that holds the account.

One of individual or company.

routing_numberstring

The routing number of the bank.

fingerprintstring

Unique identifier for this bank account, useful for detecting duplicates.

bank_namestring

The name of the bank.

account_typestring

The type of bank account.

One of checking or savings.

sourcestring

The source of the bank account information.

in_bank_accountobject

Details for India bank account payment methods.

Show 10 child attributesHide child attributes
countrystring

Two-letter ISO country code (ISO 3166-1 alpha-2) of the bank.

currencystring

Three-letter ISO currency code of the bank account.

last4string

The last four digits of the bank account number.

account_holder_namestring

The name of the account holder.

account_holder_typestring

The type of entity that holds the account.

One of individual or company.

routing_numberstring

The routing number of the bank.

fingerprintstring

Unique identifier for this bank account, useful for detecting duplicates.

bank_namestring

The name of the bank.

account_typestring

The type of bank account.

One of checking or savings.

sourcestring

The source of the bank account information.

eu_bank_accountobject

Details for EU bank account payment methods.

Show 10 child attributesHide child attributes
countrystring

Two-letter ISO country code (ISO 3166-1 alpha-2) of the bank.

currencystring

Three-letter ISO currency code of the bank account.

last4string

The last four digits of the bank account number.

account_holder_namestring

The name of the account holder.

account_holder_typestring

The type of entity that holds the account.

One of individual or company.

routing_numberstring

The routing number of the bank.

fingerprintstring

Unique identifier for this bank account, useful for detecting duplicates.

bank_namestring

The name of the bank.

account_typestring

The type of bank account.

One of checking or savings.

sourcestring

The source of the bank account information.

uk_bank_accountobject

Details for UK bank account payment methods.

Show 10 child attributesHide child attributes
countrystring

Two-letter ISO country code (ISO 3166-1 alpha-2) of the bank.

currencystring

Three-letter ISO currency code of the bank account.

last4string

The last four digits of the bank account number.

account_holder_namestring

The name of the account holder.

account_holder_typestring

The type of entity that holds the account.

One of individual or company.

routing_numberstring

The routing number of the bank.

fingerprintstring

Unique identifier for this bank account, useful for detecting duplicates.

bank_namestring

The name of the bank.

account_typestring

The type of bank account.

One of checking or savings.

sourcestring

The source of the bank account information.

cryptoobject

Details for crypto payment methods.

ecopayzobject

Details for ecoPayz payment methods.

fonixobject

Details for Fonix payment methods.

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.
404
Customer not found.
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?