put https://api.chartmogul.com/v1/data_sources//invoices//status
Updates the status of an invoice identified by invoice_external_id
under the specified data_source
.
Example
curl -X PUT "https://api.chartmogul.com/v1/data_sources/ds_35542640-d9f1-11ed-9c30-7727168c74a5/invoices/inv_0001/status" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json" \
-d '{
"status": "voided"
}'
Result Format
{
"message": "Invoice updated"
}
You can update the status of an invoice to voided
or written_off
. An invoice can also have one of the following statuses: open
, paid
, or refunded
. These statuses are automatically calculated by ChartMogul based on invoice transactions.