palbaseDocs

Palbase Payments · API

DELETE/payments/customers/{customer_id}/methods/{method_id}

Delete a payer's saved payment method

Takes the card off the provider's vault and marks it revoked. When it was the default, the oldest card left on its channel becomes the default. 503 provider_unavailable when the provider cannot be reached to remove it: the card is kept, and asking again is safe.

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 DELETE "https://<your-ref>.palbase.studio/payments/customers/<customer_id>/methods/<method_id>" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

204Method deleted

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

Operation DeleteCustomerMethod of payments's contract.