DELETE
Bulk delete invoices
Scope:
sales:invoices.writehttps://api.holded.com/api/v2/invoicesDeletes 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 successfully207Some invoices could not be deletedError responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json422None of the invoices could be deletedapplication/json429Rate limit exceededapplication/json