Llistat d'assentaments comptables
accounting:daily-ledger.readhttps://api.holded.com/api/v2/ledger-entriesRetorna una llista paginada d'assentaments comptables del teu llibre major.
Paràmetres
Paràmetres de consulta
string<date>obligatoriFiltrar assentaments des d'aquesta data
string<date>obligatoriFiltrar assentaments fins a aquesta data
stringopcionalCursor opac per a la paginació
integeropcional= 50Nombre màxim d'assentaments a retornar per pàgina. Per defecte 25, màxim 100
integeropcionalFiltrar assentaments per número de compte del pla comptable
Petició
import requests
url = "https://api.holded.com/api/v2/ledger-entries?start_date=2026-01-01&end_date=2026-12-31&cursor=value"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
{
"items": [
{
"id": "string",
"entry_number": 0,
"line": 0,
"date": "string",
"type": "string",
"description": "string",
"doc_description": "string",
"account": 4300,
"debit": "100.00",
"credit": "0.00",
"tags": [
"string"
],
"checked": false
}
],
"cursor": "string",
"has_more": false
}Respostes exitoses
200Llistat d'assentaments comptablesapplication/jsonLedger entry ID — use it to fetch the full entry via GET /ledger-entries/{id}
Sequential number of the ledger entry
Line number within the entry
Date of the ledger entry
Type of the ledger entry
Description of the entry
Description from the linked document
Account number from the chart of accounts
Debit amount as a decimal string
Credit amount as a decimal string
List of tags attached to the entry
Whether the entry has been reviewed
Respostes d'error
400Sol·licitud incorrectaapplication/json401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json429Límit de sol·licituds exceditapplication/json