comecerodocs

List a customer's payment methods

GET
/customers/{customer_id}/payment_methods

Lists the payment methods saved to a customer, oldest first. Every method comes back on one page: limit, offset and sort_by are not used here.

Card and bank numbers are never returned, only masks, the last four digits and the brand.

Secret tokens, and limited tokens tied to the customer.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

customer_id*string

The id of the customer. With a limited token from a customer login you can send me instead.

Query Parameters

expand?string

Comma-separated child objects to return in full instead of as a URL, for example customer,payments. Use dot notation for nested objects (items.product), up to four levels deep. A single object takes up to 12 paths; a list takes up to 2, applied to every item. Extra paths are dropped without an error. See Expanding objects.

show?string

Comma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

hide?string

Comma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

formatted?boolean

When true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.

Defaultfalse

Response Body

The customer's payment methods.

application/json
  1. response

An offset-based list of a customer's payment methods. Every payment method comes back on one page, oldest first.

total_items*integer

The number of payment methods.

total_pages*integer

The number of pages.

current_page*integer

The page number of this page.

next_page_url*|

The URL of the next page, or null.

next_page_offset*|

The offset of the next page, or null.

previous_page_url*|

The URL of the previous page, or null.

previous_page_offset*|

The offset of the previous page, or null.

current_page_url*string

The URL of this page.

data*array<>

The payment methods.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/customers/string/payment_methods'
Example Response
{  "total_items": 1,  "total_pages": 1,  "current_page": 1,  "next_page_url": null,  "next_page_offset": null,  "previous_page_url": null,  "previous_page_offset": null,  "current_page_url": "https://api.comecero.com/api/v1/customers/0091304300408CuoxY9Pf3/payment_methods",  "data": [    {      "url": "https://api.comecero.com/api/v1/customers/0091304300408CuoxY9Pf3/payment_methods/0092503470929PmEP0ivO4",      "object": "payment_method",      "payment_method_id": "0092503470929PmEP0ivO4",      "date_created": "2026-11-02T18:20:31Z",      "date_modified": "2026-11-02T18:20:31Z",      "test": true,      "type": "credit_card",      "data": {        "object": "credit_card",        "mask": "4***********1111",        "fingerprint": "2321657x8123834dc21ea08f",        "exp_month": 12,        "exp_year": 28,        "cardholder_name": "John Doe",        "ending": "1111",        "type": "Visa",        "label": "Visa 1111",        "billing_address": {          "object": "address",          "name": "John Doe",          "address_1": "123 Main St.",          "address_2": null,          "city": "New York",          "state_prov": "NY",          "postal_code": "10019",          "country": "US",          "email": null,          "meta": null        }      },      "is_default": true,      "date_last_used": "2026-11-02T18:20:31Z"    }  ]}