delete https://api.chartmogul.com/v1/customers/
Deletes the specified customer
object and all its associated data.
Examples
curl -X DELETE "https://api.chartmogul.com/v1/customers/cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034" \
-u YOUR_API_KEY:
customers = ChartMogul::Customer.all
customer = customers.last
customer.destroy!
ChartMogul.Customer.destroy(config,
"cus_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
function (err, res) {
// asynchronously called
});
<?php
ChartMogul\Customer::all()->last()->destroy();
?>
api.DeleteCustomer("cus_99529720-edfe-11e6-8773-13ec140c2da5")
chartmogul.Customer.destroy(
config,
uuid='cus_07c827b0-edff-11e6-a223-377902df0e32')
Result Format
{ }
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 Stripe, Braintree, Recurly, Chargify or PayPal and want to delete a customer imported from these systems, you can do so from within your ChartMogul account.