Skip to main content
GET
List a customer's payment methods

Authorizations

Authorization
string
header
required

A secret key, sk_test_... or sk_live_...; a publishable key (pk_...) on the browser routes only

Query Parameters

customer
string
required

The customer whose saved payment methods to list.

Required string length: 1 - 64
Example:

"019e2b4c-7a1d-7c3e-9f20-5b8d4e6a1c30"

limit
integer
default:20

How many to return, 1 to 100.

Required range: 1 <= x <= 100
Example:

20

starting_after
string

The id of the last payment method of the previous page; the page after it is returned.

Required string length: 1 - 64
Example:

"pm_test_9kQ2mL7Hs1pXv4cR8tWzAbCdEf"

Response

A page of payment methods

object
enum<string>
required
Available options:
list
data
object[]
required
has_more
boolean
required