Banking
Bank accounts, movements and reconciliations. Requires authentication.
See Resource template.
Bank accounts
| Method | Path | Description |
|---|---|---|
| GET | /bank-accounts | List (+ currentBalance) |
| GET | /bank-accounts/:id | One account + balance |
| POST | /bank-accounts | Create |
| PUT | /bank-accounts/:id | Update |
Create account
Required: name, bankName, accountNumber, openingBalanceDate.
json
{
"name": "Ficohsa Business",
"bankName": "Ficohsa",
"accountNumber": "200012345678",
"currency": "HNL",
"openingBalance": 50000.00,
"openingBalanceDate": "2026-01-01",
"chartOfAccountId": 15,
"isActive": true
}HN: HNL and optionally USD. SV: USD only.
GET /bank-accounts/:id (simplified)
json
{
"id": 1,
"name": "Ficohsa Business",
"bankName": "Ficohsa",
"accountNumber": "200012345678",
"currency": "HNL",
"currentBalance": 47520.50,
"isActive": true
}DELETE only from the web app.
Transfers
POST /bank-transactions/transferjson
{
"fromAccountId": 1,
"toAccountId": 2,
"amount": 5000.00,
"transactionDate": "2026-11-03",
"reference": "Internal transfer"
}Document payments with a linked bankAccountId create BankTransaction rows automatically.
| Type | Description |
|---|---|
payment_doc | Document payment (auto) |
transfer_in / transfer_out | Transfer / cash |
deposit / withdrawal | Manual |
Reconciliations
GET /bank-accounts/:accountId/reconciliations
POST /bank-accounts/:accountId/reconciliations
PATCH /bank-accounts/:accountId/reconciliations/:id
POST /bank-accounts/:accountId/reconciliations/:id/completeCommon errors
json
{
"error": "Faltan campos requeridos: name, bankName, accountNumber, openingBalanceDate"
}json
{
"error": "Ya existe una cuenta con ese número en la empresa"
}| HTTP | When |
|---|---|
| 400 | Missing fields, duplicate number, currency not allowed |
| 401 | Invalid auth |
| 404 | Account not found |