Skip to main content
DELETE

Delete an invoice

Scope:sales:invoices.write
https://api.holded.com/api/v2/invoices/{invoiceId}

Permanently deletes an invoice. This action cannot be undone. If the invoice has recorded payments, they will also be removed. Deleting an invoice does not affect the contact or any other documents. The document number will not be reused by the numbering series.

Parameters

Path parameters

invoiceIdstringrequired

Invoice ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/invoices/{invoiceId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.delete(url, headers=headers)
print(response.json())

Responses

Success responses

204Resource deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Invoice not foundapplication/json
422Document is approved or reported and cannot be deletedapplication/json
429Rate limit exceededapplication/json