palbaseDocs

Palbase Payments · API

DELETE/payments/me/methods/{method_id}

Delete saved payment method

Takes the saved payment method 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 method is kept, and asking again is safe.

Called by a signed-in user of your app, with their token and the publishable key.

Path

method_idstring · requiredSaved payment method UUID.
curl
curl -X DELETE "https://<your-ref>.palbase.studio/payments/me/methods/<method_id>" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

204Method deleted

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

Operation DeleteMyMethod of payments's contract.