Skip to main content
DELETE

Delete a ledger entry

Scope:accounting:daily-ledger.write
https://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

ledgerEntryIdstringrequired

Ledger 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 deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Ledger entry not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json