DELETE
Delete an invoice
Scope:
sales:invoices.writehttps://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
invoiceId
stringrequiredInvoice 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 deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Invoice not foundapplication/json422Document is approved or reported and cannot be deletedapplication/json429Rate limit exceededapplication/json