Delete a Transaction
DELETE https://api.chartmogul.com/v1/transactions/{TRANSACTION_UUID}
Deletes a specified transaction and all associated data.
curl -X DELETE "https://api.chartmogul.com/v1/transactions/tr_5ce6fa5f-c57d-4875-a74d-cf0ec90df3c1" \
-u YOUR_API_KEY:
{}
Impact of this action. This request will delete the specified transaction. 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 transaction may be restored during a resync. To permanently remove a transaction from an automatic source, you can disable it.
For other sources, deleting a transaction is permanent.
This endpoint supports identifying the transaction either by its transaction_uuid path parameter or by a combination of external_id and data_source_uuid query parameters.
Path parameters
transaction_uuidstring optional- The ChartMogul UUID of the transaction to delete. If provided, this value is used to identify the transaction.
Query parameters
external_idstring optional- A unique external identifier of the transaction that you want to delete. Required together with
data_source_uuidiftransaction_uuidis not provided. data_source_uuidstring optional- The ChartMogul UUID of the data source the transaction belongs to. Required together with
external_idiftransaction_uuidis not provided.