Listado de asientos contables (apunte del libro diario)
accounting:daily-ledger.readhttps://api.holded.com/api/v2/ledger-entriesDevuelve una lista paginada de asientos contables de tu libro mayor.
Parámetros
Parámetros de consulta
string<date>obligatorioFiltrar asientos desde esta fecha
string<date>obligatorioFiltrar asientos hasta esta fecha
stringopcionalCursor opaco para paginación
integeropcional= 50Número máximo de asientos a devolver por página. Por defecto 25, máximo 100
integeropcionalFiltrar asientos por número de cuenta del plan contable
Petición
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())Respuestas
Respuesta
{
"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
}Respuestas exitosas
200Listado de asientos contablesapplication/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
Respuestas de error
400Solicitud incorrectaapplication/json401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json429Límite de solicitudes excedidoapplication/json