Llistat de moviments de caixa d'un compte bancari
accounting:banks.readhttps://api.holded.com/api/v2/treasury/accounts/{id}/cash-movementsLlistat de moviments de caixa d'un compte bancari
Paràmetres
Paràmetres de ruta
stringobligatoriIdentificador del compte de tresoreria
Paràmetres de consulta
stringopcionalCursor opac retornat per la pàgina anterior
integeropcional= 50Nombre màxim de moviments per pàgina. Per defecte 50, màxim 200
string<date>opcionalLímit inferior inclusiu de la data comptable del moviment (ISO 8601)
string<date>opcionalLímit superior inclusiu de la data comptable del moviment (ISO 8601)
Petició
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
{
"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/jsonUnique identifier of the ledger entry
Identifier of the cash banking account this movement belongs to
Accounting date of the ledger entry as an ISO 8601 timestamp
Description of the movement. Null when the entry has no description set (common for auto-generated movements such as payment-linked entries).
Movement amount (debit minus credit) in the cash account currency. Positive for cash-in, negative for cash-out. Decimal as string.
ISO 4217 currency code of the cash account
PGC accounting account number linked to the cash register (e.g. 570xxxxx for caja)
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.
inoutAccounting entry group number (asiento contable). Null for automatically generated entries.
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.).
amortizationregplopeningclosingentrysalesreceiptreceiptnotetransactioncollectpurchaseinvoiceexpensepaymentrecordpayrollpurchaserefundcreditnoteprorata_regularizationvat_regularizationpurchaseshipmentRespostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Compte bancari no trobatapplication/json429Límit de sol·licituds exceditapplication/json