Skip to main content
DELETE

Bulk delete invoices

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

Deletes up to 100 invoices in a single request. Returns 207 when some could not be deleted and 422 when all fail.

Request body

object
ids[]string[]

List of invoice IDs to delete

default:

Request

python
import requests

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

payload = {
    "ids": [
        "507f1f77bcf86cd799439011"
    ]
}
response = requests.delete(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204All invoices deleted successfully
207Some invoices could not be deleted

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422None of the invoices could be deletedapplication/json
429Rate limit exceededapplication/json