Skip to navigation

List payment methods

Lists a customer’s payment methods, newest first. Archived ones are left out unless includeArchived is true.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the payments=v1 beta. Send this header to use it.

Allowed values:

Query parameters

customerstringRequired1-255 characters

The customer whose payment methods to list: its cus_ ID, your externalId, or one of its aliases.

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

includeArchivedenumOptional

Pass true to include archived objects.

Allowed values:
limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.
typeenumOptional

The kind of payment method, and the name of the sub-object that describes it. Expect new values.

Allowed values:

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The payment methods on this page, newest first.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error