Skip to content

Banking ​

Bank accounts, movements and reconciliations. Requires authentication.

See Resource template.

Bank accounts ​

MethodPathDescription
GET/bank-accountsList (+ currentBalance)
GET/bank-accounts/:idOne account + balance
POST/bank-accountsCreate
PUT/bank-accounts/:idUpdate

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/transfer
json
{
  "fromAccountId": 1,
  "toAccountId": 2,
  "amount": 5000.00,
  "transactionDate": "2026-11-03",
  "reference": "Internal transfer"
}

Document payments with a linked bankAccountId create BankTransaction rows automatically.

TypeDescription
payment_docDocument payment (auto)
transfer_in / transfer_outTransfer / cash
deposit / withdrawalManual

Reconciliations ​

GET /bank-accounts/:accountId/reconciliations
POST /bank-accounts/:accountId/reconciliations
PATCH /bank-accounts/:accountId/reconciliations/:id
POST /bank-accounts/:accountId/reconciliations/:id/complete

Common errors ​

json
{
  "error": "Faltan campos requeridos: name, bankName, accountNumber, openingBalanceDate"
}
json
{
  "error": "Ya existe una cuenta con ese número en la empresa"
}
HTTPWhen
400Missing fields, duplicate number, currency not allowed
401Invalid auth
404Account not found

Payments · API index