Delete payment method
Deletes a payment method. You cannot delete the default payment method — set another as default first.
Path Parameters
- You cannot delete a payment method that is currently set as default. Set a different verified payment method as default first.
Response
204 No Content – The payment method was successfully deleted.
Success Responses
Error Responses
Authentication
x-api-keystring
RootPay API key sent in the x-api-key header. Keys are environment-scoped: live_* for production, test_* for sandbox.
OR
AuthorizationBearer
Short-lived session JWT from the Session Tokens API. Send as Authorization: Bearer <token>. Accepted on payment-method endpoints for a specific payee or payer; mint tokens with an API key.
Path parameters
payee_id
payment_method_id
Response
Payment method deleted successfully (no content)