Saltar al contingut principal
GET

Llistat de moviments de caixa d'un compte bancari

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

Llistat de moviments de caixa d'un compte bancari

Paràmetres

Paràmetres de ruta

idstringobligatori

Identificador del compte de tresoreria

Paràmetres de consulta

cursorstringopcional

Cursor opac retornat per la pàgina anterior

limitintegeropcional= 50

Nombre màxim de moviments per pàgina. Per defecte 50, màxim 200

start_datestring<date>opcional

Límit inferior inclusiu de la data comptable del moviment (ISO 8601)

end_datestring<date>opcional

Límit superior inclusiu de la data comptable del moviment (ISO 8601)

Petició

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())

Respostes

Resposta

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
}

Respostes exitoses

200Llistat de moviments de caixaapplication/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

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
404Compte bancari no trobatapplication/json
429Límit de sol·licituds exceditapplication/json