Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
Idempotency Supported
Try in API Explorerdeprecated
The Payment Sources API , with its additional options and improvements, obsoletes the Cards APIs. This request is obsoleted by the Delete a payment source API .
Deletes the card for a customer. Upon successful deletion the auto_collection attribute for the customer is set to off and a card_deleted event is triggered. If there is no card found at the gateway for the customer, this API returns without errors.
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/customers/{customer-id}/delete_card
Returns
customerCustomer object
Resource object representing customer