v1

latestOpenAPI 3.0.02026-08-0696238481.7 KB
Customers

Retrieve a customer's payment methods

This is used to fetch a customer's payment methods

get/customers/{customerId}/payment-methods

Path parameters

customerIdstring required
Example:cus_01FCTS1XMKH9FF43CAFA4CXT3P

Customer whose payment methods to retrieve

Response

Successfully retrieved the given Customer's payment methods

Example response

{
  "items": [
    {
      "id": "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ",
      "type": "Card",
      "card": {
        "scheme": "Mastercard",
        "last4": "4242",
        "expiryMonth": "10",
        "expiryYear": "2024"
      },
      "billingAddress": {
        "firstName": "Nathan",
        "lastName": "Jones",
        "lineOne": "123 Test Street",
        "lineTwo": "456 Lane",
        "city": "Manchester",
        "country": "GB",
        "postalCode": "SP4 7DE",
        "region": "NY"
      },
      "checks": {
        "avsResponseCode": "Y",
        "cvvResponseCode": "M"
      },
      "customerId": "cus_01G0EYVFR02KBBVE2YWQ8AKMGJ",
      "createdTimestamp": 1470989538
    }
  ]
}