Deprecated
The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs. Learn more .
The following table lists the Payment Sources API operations alongside the equivalent Card API operations:
Sample CardJSON
Cards attributes
Current status of the card.
A valid and active credit card
A card which is expiring in the current month.
An expired card
Name of the gateway this payment source is stored with.
Chargebee test gateway.
Chargebee Payments gateway
Adyen is a payment gateway.
Stripe is a payment gateway.
WePay is a payment gateway.
The gateway account to which this payment source is stored with.
The Issuer Identification Number, i.e. the first six digits of the card number
Card type
A Visa card.
A MasterCard.
An American Express card.
A Discover card.
A JCB card.
Card Funding type
A credit card.
A debit card.
A prepaid card.
An unknown card.
Used for ACH. Not applicable for cards
The ISO 3166-2 state/province code
without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set state_code
as AZ
(not US-AZ
). For Tamil Nadu (India), set as TN
(not IN-TN
). For British Columbia (Canada), set as BC
(not CA-BC
).
The billing address country of the customer. Must be one of ISO 3166 alpha-2 country code .
Note: If you enter an invalid country code, the system will return an error.
Brexit
If you have enabled EU VAT in 2021 or later, or have manually enable the Brexit configuration, then XI (the code for United Kingdom - Northern Ireland) is available as an option.
Timestamp indicating when this card resource is created.
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
Timestamp indicating when this credit card resource was last updated.
The IP address of the customer. Used primarily for referral integration and EU VAT validation.
Card is powered by payment method.
ideal
sofort
bancontact
giropay
card
latam_local_card
payconiq
not_applicable