comecerodocs

Delete a payment method

DELETE
/customers/{customer_id}/payment_methods/{payment_method_id}

Deletes a saved payment method. For a card, the number is also removed from the vault. This cannot be undone.

A customer with an active or trial subscription must keep at least one payment method, so deleting the last one is a 409. Cancel the subscriptions first.

Secret tokens, and limited tokens tied to the customer.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

customer_id*string

The id of the customer. With a limited token from a customer login you can send me instead.

payment_method_id*string

The id of the payment method.

Response Body

The payment method was deleted. There is no body.

Example Request
curl -X DELETE 'https://api.comecero.com/api/v1/customers/string/payment_methods/string'
Example Response
Empty