Create a bank account or cash register
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Path parameters
Request
ISO-4217 currency code. Optional — defaults to your workspace’s currency when omitted.
IBAN. Provide this or account_number.
SWIFT/BIC. Optional — blank for domestic or cash accounts.
Local account number. Provide this or iban.
Mark as the workspace’s default account of this account_type.
Response
bank — traditional bank account with IBAN / account
number, potentially PSD2-synced. cash — cash register
for manual cash-movement tracking.
Display name. Required for cash registers (where it must be unique within the workspace); optional for bank accounts where the IBAN/account_number identifies the record.
Name on the account / register.
ISO-4217 currency code. Defaults to workspace currency.
IBAN — required for bank-type accounts (or account_number must be set). Null for cash registers.
SWIFT/BIC. Optional for bank accounts; null for cash.
Local account number — required for bank-type accounts
if iban is not set. SK/CZ banks accept legacy
non-IBAN format. Null for cash registers.
CZ-style prefix on legacy account numbers (e.g. 19- in 19-2000945399/0800).
Local bank code (SK: 4-digit, CZ: 4-digit). Null for cash registers.
Available balance from the most recent PSD2 sync, if connected. Null for cash registers and non-synced bank accounts. Stringified BigDecimal.
Booked balance from the most recent PSD2 sync. Differs
from balance_available for accounts with pending
transactions. Same null/format semantics as
balance_available.
Whether this account is the workspace’s default for new
documents. Each account_type has independent defaults
(one default bank + one default cash register per workspace).

