Abrir o ver una cuenta bancaria
accounting:banks.readhttps://api.holded.com/api/v2/treasury/accounts/{id}Recupera todos los detalles de una cuenta bancaria específica por su identificador único.
Parámetros
Parámetros de ruta
stringobligatorioIdentificador de la cuenta de tesorería
Petición
import requests
url = "https://api.holded.com/api/v2/treasury/accounts/{id}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respuestas
Respuesta
{
"id": "507f1f77bcf86cd799439011",
"name": "Main bank account",
"type": "bank",
"currency": "EUR",
"balance": "15230.50",
"iban": "ES9121000418450200051332",
"bic": "CAIXESBBXXX",
"account_number": "string",
"creditor_id": "string",
"issuer_id": "string",
"archived": false,
"synced_at": "2024-01-15T10:30:00Z",
"transactions_pending_to_reconcile": 148
}Respuestas exitosas
200Cuenta bancaria encontradaapplication/jsonUnique identifier of the banking account
Display name of the banking account
Type of banking account
bankcardgatewaycashISO 4217 currency code of the account
Decimal as string for precision
IBAN number of the bank account
SWIFT/BIC code of the bank
Bank account number when IBAN is not available
SEPA creditor identifier for direct debits
Issuer identifier used in remittances
Whether the banking account is archived
Timestamp of the last bank synchronization
Number of transactions pending reconciliation in the last 12 months for this account (precomputed, not a live count).
Respuestas de error
401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json404Cuenta bancaria no encontradaapplication/json429Límite de solicitudes excedidoapplication/json