List a Customer's PaymentMethods
GET
/v1/customers/{customer_id}/payment_methods/listReturns a list of PaymentMethods for a given Customer
Request
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
{
"type": "card",
"limit": "string"
}
Request samples
Responses
Unique identifier for the object, like 'pm_xxxxx'
'payment method'
Time at which the object was created. Measured in seconds since the Unix epoch.
The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
Email address.
Full name.
Billing phone number (including extension).
The type of the PaymentMethod. An additional object is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
If this is a card PaymentMethod, this object contains the user’s card details.
American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you’ve collected.
Two-digit number representing the card’s expiration month.
Four-digit number representing the card’s expiration year.
Uniquely identifies this particular card number.
Can be credit, debit, prepaid, or unknown.
The last four digits of the card.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
{
"id": "string",
"object": "string",
"created": 0,
"customer": "string",
"metadata": {},
"livemode": true,
"billing_details": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"email": "string",
"name": "string",
"phone": "string"
},
"type": "card",
"card": {
"brand": "string",
"checks": {
"address_line1_check": "string",
"address_zip_check": "string",
"cvc_check": "string"
},
"country": "string",
"exp_month": 0,
"exp_year": 0,
"fingerprint": "string",
"funding": "string",
"last4": "string",
"metadata": {}
}
}