palbaseDocs

Palbase Payments · API

GET/payments/customers/{customer_id}/methods

List a payer's saved payment methods

Lists a payer's active saved cards: each channel's default first, then the newest. Once a billing portal session was opened for the payer, the list follows what the provider has — a card removed on the provider's page is listed no more, one added there is — read from the provider on each listing for a day after. The provider is waited for a few seconds at most: slower, the list is answered as it is kept. A payer whose record was deleted on the provider's pages has no card there: the record is let go of here, and its cards are listed no more.

Called by your server, with the project's secret key.

Path

customer_idstring · requiredThe payer's id: a user id, or any name of 1 to 128 characters the project's server gives a company or a team. Escape it as a path segment.
curl
curl -X GET "https://<your-ref>.palbase.studio/payments/customers/<customer_id>/methods" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200OK

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation ListCustomerMethods of payments's contract.