Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
DELETE

Delete an invoice

Scope: sales:invoices.write https://api.alladdin.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 string required

Invoice ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.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

204 Resource deleted

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Invoice not found application/json 429 Rate limit exceeded application/json

← PreviousGet invoice PDF →

Next →Bulk cancel invoices →