Skip to main content

Remove Card On File

DELETE 

/api/customers/:customer/payment-methods/:paymentMethod

Remove a saved card from the customer's file. Deletes the stored token reference and its display metadata.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token (PAT). Permission: customers.update.

No request body. The card must belong to the customer in the path, otherwise a 422 is returned.

Returns 200 with { message: "Card removed." }.

Request

Responses

OK

Response Headers
    Content-Type