Skip to main content
DELETE
/
v1
/
invoices
/
{invoice_id}
curl -X DELETE "https://api.dcycle.io/v1/invoices/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-organization-id: YOUR_ORGANIZATION_ID" \
  -H "x-api-key: YOUR_API_KEY"
(empty response body)

Documentation Index

Fetch the complete documentation index at: https://code.dcycle.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Permanently deletes an invoice and its associated emissions data. This action cannot be undone.
Permanent DeletionDeleting an invoice will permanently remove:
  • The invoice record
  • Associated emissions calculations
  • Any linked data
This action cannot be reversed. Consider setting the invoice status to inactive if you want to exclude it from calculations without permanent deletion.

Path Parameters

invoice_id
UUID
required
The unique identifier of the invoice to delete.Example: 550e8400-e29b-41d4-a716-446655440000

Response

Returns 204 No Content on successful deletion.
curl -X DELETE "https://api.dcycle.io/v1/invoices/550e8400-e29b-41d4-a716-446655440000" \
  -H "x-organization-id: YOUR_ORGANIZATION_ID" \
  -H "x-api-key: YOUR_API_KEY"
(empty response body)