Saltar al contenido principal
GET

Listado de cuentas bancarias

Scope:accounting:banks.read
https://api.holded.com/api/v2/treasury/accounts

Devuelve una lista paginada por cursor de las cuentas bancarias de tu cuenta. Usa `archived=true` para obtener solo cuentas archivadas, `archived=false` solo activas, u omite el parámetro para devolver ambas.

Parámetros

Parámetros de consulta

cursorstringopcional

Cursor opaco para paginación

limitintegeropcional= 50

Número máximo de cuentas bancarias a devolver por página

typestringopcional

Filtrar cuentas bancarias por tipo de cuenta. Valores permitidos: `bank` (cuenta bancaria), `card` (tarjeta de crédito o débito), `gateway` (pasarela de pago como Stripe o PayPal), `cash` (caja registradora / caja chica).

"bank""card""gateway""cash"
archivedbooleanopcional

Filtrar por estado archivado. `true` devuelve solo cuentas archivadas, `false` solo cuentas activas. Omitir para devolver ambas (por defecto).

Petición

python
import requests

url = "https://api.holded.com/api/v2/treasury/accounts?cursor=value&limit=50&type=value"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Respuestas

Respuesta

json
{
  "items": [
    {
      "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
    }
  ],
  "cursor": "string",
  "has_more": false
}

Respuestas exitosas

200Listado de cuentas bancariasapplication/json
object
items[]object[]
idstring

Unique identifier of the banking account

namestring

Display name of the banking account

typestring

Type of banking account

Enum:bankcardgatewaycash
currencystring

ISO 4217 currency code of the account

balancestring

Decimal as string for precision

ibanstring | null

IBAN number of the bank account

bicstring | null

SWIFT/BIC code of the bank

account_numberstring | null

Bank account number when IBAN is not available

creditor_idstring | null

SEPA creditor identifier for direct debits

issuer_idstring | null

Issuer identifier used in remittances

archivedboolean

Whether the banking account is archived

synced_atstring<date-time> | null

Timestamp of the last bank synchronization

transactions_pending_to_reconcileinteger

Number of transactions pending reconciliation in the last 12 months for this account (precomputed, not a live count).

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