Saltar al contenido principal
GET

Listado de asientos contables (apunte del libro diario)

Scope:accounting:daily-ledger.read
https://api.holded.com/api/v2/ledger-entries

Devuelve una lista paginada de asientos contables de tu libro mayor.

Parámetros

Parámetros de consulta

start_datestring<date>obligatorio

Filtrar asientos desde esta fecha

end_datestring<date>obligatorio

Filtrar asientos hasta esta fecha

cursorstringopcional

Cursor opaco para paginación

limitintegeropcional= 50

Número máximo de asientos a devolver por página. Por defecto 25, máximo 100

accountintegeropcional

Filtrar asientos por número de cuenta del plan contable

Petición

python
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

json
{
  "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/json
object
items[]object[]
idstring

Ledger entry ID — use it to fetch the full entry via GET /ledger-entries/{id}

entry_numberinteger

Sequential number of the ledger entry

lineinteger

Line number within the entry

datestring

Date of the ledger entry

typestring | null

Type of the ledger entry

descriptionstring

Description of the entry

doc_descriptionstring | null

Description from the linked document

accountinteger

Account number from the chart of accounts

debitstring

Debit amount as a decimal string

creditstring

Credit amount as a decimal string

tags[]string[]

List of tags attached to the entry

checkedboolean

Whether the entry has been reviewed

cursorstring | null
has_moreboolean

Respuestas de error

400Solicitud incorrectaapplication/json
401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json
429Límite de solicitudes excedidoapplication/json