Saltar al contenido principal
GET

Listado de movimientos de caja de una cuenta bancaria

Scope:accounting:banks.read
https://api.holded.com/api/v2/treasury/accounts/{id}/cash-movements

Listado de movimientos de caja de una cuenta bancaria

Parámetros

Parámetros de ruta

idstringobligatorio

Identificador de la cuenta de tesorería

Parámetros de consulta

cursorstringopcional

Cursor opaco devuelto por la página anterior

limitintegeropcional= 50

Número máximo de movimientos por página. Por defecto 50, máximo 200

start_datestring<date>opcional

Límite inferior inclusivo de la fecha contable del movimiento (ISO 8601)

end_datestring<date>opcional

Límite superior inclusivo de la fecha contable del movimiento (ISO 8601)

Petición

python
import requests

url = "https://api.holded.com/api/v2/treasury/accounts/507f1f77bcf86cd799439011/cash-movements?cursor=value&limit=50&start_date=2026-01-01"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respuestas

Respuesta

json
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "bankingAccountId": "507f1f77bcf86cd799439012",
      "date": "2024-01-15T10:30:00Z",
      "description": "string",
      "amount": "150.00",
      "currency": "EUR",
      "accountingAccountNumber": 57000001,
      "sign": "in",
      "entryNumber": 42,
      "entryType": "opening"
    }
  ],
  "cursor": "string",
  "has_more": false
}

Respuestas exitosas

200Listado de movimientos de cajaapplication/json
object
items[]object[]
idstring

Unique identifier of the ledger entry

bankingAccountIdstring

Identifier of the cash banking account this movement belongs to

datestring<date-time>

Accounting date of the ledger entry as an ISO 8601 timestamp

descriptionstring | null

Description of the movement. Null when the entry has no description set (common for auto-generated movements such as payment-linked entries).

amountstring

Movement amount (debit minus credit) in the cash account currency. Positive for cash-in, negative for cash-out. Decimal as string.

currencystring

ISO 4217 currency code of the cash account

accountingAccountNumberinteger

PGC accounting account number linked to the cash register (e.g. 570xxxxx for caja)

signstring

Direction of the movement: 'in' for cash received (positive amount), 'out' for cash paid (negative amount). Zero-amount entries (e.g. reclassifications) are reported as 'in' by convention.

Enum:inout
entryNumberinteger | null

Accounting entry group number (asiento contable). Null for automatically generated entries.

entryTypestring

Identifier of the source document or accounting operation that produced this ledger entry. 'opening' and 'closing' are special markers for the opening-balance and year-end closing entries; all other values name the originating document (invoice, payment, expense, salesreceipt, etc.).

Enum:amortizationregplopeningclosingentrysalesreceiptreceiptnotetransactioncollectpurchaseinvoiceexpensepaymentrecordpayrollpurchaserefundcreditnoteprorata_regularizationvat_regularizationpurchaseshipment
cursorstring | null
has_moreboolean

Respuestas de error

401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json
404Cuenta bancaria no encontradaapplication/json
429Límite de solicitudes excedidoapplication/json