DELETE
/v1/customers/{customer}/bank_accounts/{id}Delete a customer payment source
Deletes a payment source from a customer. Use expand if the deleted source response needs selected related fields expanded, and treat the deletion as a permanent removal from the customer's sources.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
customerstringrequired
The unique identifier of the customer associated with the payment source; the value must be no longer than 5,000 characters.
idstringrequired
The unique identifier of the payment source to delete.
Optional expansion controls for the deleted payment source response.
expandarray<string>optional
Specifies which fields in the response should be expanded.
200Returns the deleted payment source object, which may be a card, bank account, or another supported source type.
defaultReturned when the API cannot delete the payment source and provides an error object.
errorobjectrequired
Error handling
customer must identify the customer and id must identify the payment source to delete. Each expand value must be no longer than 5,000 characters.