Deletes the specified customer
object and all its associated data.
curl -X DELETE "https://api.chartmogul.com/v1/customers/cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034" \
-u YOUR_API_KEY:
ChartMogul::Customer.retrieve("cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034").destroy!
ChartMogul.Customer.destroy(config, "cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034");
ChartMogul\Customer::retrieve("cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034")->destroy();
api.DeleteCustomer("cus_d4fc20bc-56e2-11ee-9227-ab7872a87ba1")
chartmogul.Customer.destroy(config, uuid="cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034")
{}
true
{}
true
nil
None
Impact of this action
This request will permanently delete the customer and all associated data. Data deleted includes the customer's invoices, subscriptions, transactions and any customer attributes. The customer will also be removed from all reports in ChartMogul. This action cannot be undone.
Customers from pre-built integrations
You can only delete customers using the Import API with this endpoint. If you are using one of our pre-built integrations with Braintree or Recurly and want to delete a customer imported from these systems, you can do so from within your ChartMogul account.
Deleting a customer imported from an integration is not permanent. Any changes to the customer in the original system may cause them to be reimported into ChartMogul.