Skip to main content
POST
list payment methods

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body of the request

customerId
string
required

The customer ID

Example:

"cus_1H7KQFLr7RepUyQBKdnvY"

provider
enum<string>
required

The payment provider

Available options:
stripe,
square,
sandbox
Example:

"stripe"

skipCache
boolean

Force a fresh provider lookup instead of using the cached payment methods

Example:

true

Response

The result of the get payment methods

id
string
required
name
string | null
required
last4
string
expMonth
number
expYear
number
brand
string