bank_accounts_create
Create a new bank or cash account for the active company, with IBAN validation, default currency settings, and optional opening balance for cash-register tracking.
Instructions
Add a new bank account to the active company. For type=bank, IBAN is required and must be unique within the company. For type=cash (the till that backs POS / cash-register reports), IBAN is optional and openingBalance/openingBalanceDate enable cash-register tracking. A company can have at most one cash account. If isDefault is true, any existing default account for that currency is demoted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | International Bank Account Number in valid IBAN format (e.g., "RO49AAAA1B31007593840000"). Required for type=bank, optional for type=cash. | |
| type | No | Account type. "bank" (default) for IBAN-backed accounts; "cash" for the physical till that backs POS / cash-register reports. | |
| bankName | No | Name of the bank (e.g., "BCR", "Banca Transilvania", "ING Bank") | |
| currency | No | Currency code ISO 4217 (default: "RON"). Use "EUR" for Euro accounts. | |
| companyId | No | Company UUID override (uses active company if not set) | |
| isDefault | No | Set as default account for this currency (default: false) | |
| openingBalance | No | Initial cash-on-hand. Required to enable cash-register reporting on cash accounts. Once set, locks and can only be modified via forward-going cash movements. Must be >= 0. | |
| openingBalanceDate | No | Date the opening balance was taken (YYYY-MM-DD). Required when openingBalance is supplied. |