palbaseDocs

Palbase Payments · API

POST/payments/customers/{customer_id}/methods/{method_id}/default

Make a payer's saved payment method the default

Makes the card the payer's default on its channel, and returns the payer's cards.

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.
method_idstring · requiredSaved payment method UUID.
curl
curl -X POST "https://<your-ref>.palbase.studio/payments/customers/<customer_id>/methods/<method_id>/default" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200OK

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

Operation SetCustomerDefaultMethod of payments's contract.