DELETE
Delete a ledger entry
Scope:
accounting:daily-ledger.writehttps://api.holded.com/api/v2/ledger-entries/{ledgerEntryId}Permanently deletes a ledger entry (asiento contable) — the journal entry with all its debit/credit lines. This action cannot be undone. Use when the user wants to remove or cancel an accounting entry (eliminar asiento, borrar asiento contable). Deletion is blocked if the entry is linked to a non-cancelled approved document, has reconciled (dotted) lines, falls in a locked accounting period, or is a closing/regularization entry of an already-closed fiscal year.
Parameters
Path parameters
ledgerEntryId
stringrequiredLedger entry ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/ledger-entries/{ledgerEntryId}"
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/json404Ledger entry not foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json