Delete a Line Item
DELETE https://api.chartmogul.com/v1/line_items/{LINE_ITEM_UUID}
Deletes a specified invoice line item and all associated data.
curl -X DELETE "https://api.chartmogul.com/v1/line_items/li_b86028e7-c28c-4a0f-9518-fbbdbc259824" \
-u YOUR_API_KEY:
{}
Impact of this action. This request will delete the specified line item. Metrics for the customer will be recalculated based on the billing data remaining after this action.
For automatic sources (Stripe, Chargebee, Recurly, Braintree, Google Play, App Store Connect and SaaSync integrations), a deleted line item may be restored during a resync. To permanently remove a line item from an automatic source, you can disable it.
For other sources, deleting a line item is permanent.
This endpoint supports identifying the line item either by its line_item_uuid path parameter or by a combination of external_id and data_source_uuid query parameters.
Path parameters
line_item_uuidstring optional- The ChartMogul UUID of the line item to be deleted. If provided, this value is used to identify the line item.
Query parameters
external_idstring optional- A unique external identifier of the line item that you want to delete. Required together with
data_source_uuidifline_item_uuidis not provided. data_source_uuidstring optional- The ChartMogul UUID of the data source the line item belongs to. Required together with
external_idifline_item_uuidis not provided.