Delete a credit
Soft-delete a credit. The credit is marked as deleted and stops appearing in this API and the Distru UI, but the record is retained rather than being permanently removed, so its history is preserved. Returns 204 with no body on success.
A credit cannot be deleted once it has been used (has at least one active application to an invoice). Overpayment credits (created from an invoice overpayment or a QuickBooks Online payment) cannot be deleted unless they have already been canceled — void the associated payment instead. Either case returns an error.
If your account syncs credits with QuickBooks Online, the deletion is also pushed to QuickBooks Online in the background; a 204 confirms the delete in Distru, not that the QuickBooks Online side has finished.
Required permission: credits_permissions_delete. The authenticated user must also have access
to the credit under their team restrictions, otherwise the request returns 403.
BearerAuthorizationBearer <token>API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.
id*stringThe credit's ID (as returned in the id field of a credit).
No Content
curl -X DELETE 'https://app.distru.com/public/v1/credits/ea58ac40-08a6-41e3-8382-9c4f0b3023eb'