delete https://api.chartmogul.com/v1/invoices/
Deletes the specified invoice
object and all its associated data.
Examples
curl -X DELETE "https://api.chartmogul.com/v1/invoices/inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034" \
-u YOUR_API_KEY:
ChartMogul::Invoice.destroy!(uuid: "inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034")
# Or if you already have an instance (eg. by searching for external_id):
invoice = invoice.all(external_id: "INV00111234").first
invoice.destroy!
ChartMogul.Invoice.destroy(config,
"inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034",
function (err, res) {
// asynchronously called
});
<?php
(new Invoice(["uuid" => "inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034"]))->destroy();
# Or if you already have an instance (eg. by searching for external_id):
$invoice->destroy();
?>
api.DeleteInvoice("inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034")
chartmogul.Invoice.destroy(
config,
uuid='inv_ee325d54-7ab4-421b-cdb2-eb6b9e546034')
Result Format
{ }
true
{ }
true
nil
None
Impact of this action
This request will permanently delete the invoice and all associated data. Data deleted includes the line items & transactions. If this is the only invoice for a subscription, then deleting this invoice will also remove the subscription. Metrics for the customer will be recalculated based on remaining billing data after this action. This action cannot be undone.