TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/scoria02/marbes2021_backend/llms.txt
Use this file to discover all available pages before exploring further.
/api/bancos group exposes resources for registering banks in the system, configuring per-bank transaction costs, and managing bank accounts linked to credit clients. Route ordering matters here: specific named paths like /costos and /clientes/:idCliente/bancos are declared before the generic /:idCliente/:idBanco pattern so the router resolves them correctly.
Express resolves routes in registration order. Specific routes such as
GET /costos and GET /clientes/:idCliente/bancos are intentionally registered before the generic GET /:idCliente/:idBanco route. If you add new routes to this group, always place them above the generic path parameter route to avoid incorrect handler resolution.GET /api/bancos/
Returns the full list of banks registered in the system. Authentication: RequiredResponse
true when the request succeeds.Array of bank records.
POST /api/bancos/
Creates a new bank record. Authentication: RequiredRequest body
Full bank name.
Alphanumeric bank code. Only letters and numbers are accepted; no spaces or special characters.
Optional description for the bank.
Initial status of the bank. Allowed values:
activo, desactivo, suspendido. Defaults to activo when omitted.Response
true when the bank is created successfully.The newly created bank record (same shape as the objects returned by
GET /api/bancos/).GET /api/bancos/costos
Returns all bank cost configurations across all banks. Authentication: RequiredResponse
true when the request succeeds.Array of cost configuration records.
POST /api/bancos/costos
Creates a new cost configuration for a bank. Authentication: RequiredRequest body
UUID of the bank this cost configuration applies to.
Transaction type. Allowed values:
transferencia, pagoProveedor.Percentage rate (e.g.,
0.5 for 0.5%).Fixed cost amount in the base currency.
Set to
true if this cost configuration applies to same-bank transactions.Initial status. Allowed values:
activo, desactivo, suspendido. Defaults to activo.PUT /api/bancos/costos/:id
Updates an existing bank cost configuration. Authentication: RequiredPath parameters
UUID of the cost configuration record to update.
Request body
All fields are optional. Only send the fields you want to change.Transaction type. Allowed values:
transferencia, pagoProveedor.Updated percentage rate.
Updated fixed cost amount.
Whether the cost applies to same-bank transactions.
Updated status. Allowed values:
activo, desactivo, suspendido.GET /api/bancos/:idBanco/costos
Returns all cost configurations for a specific bank. Authentication: RequiredPath parameters
UUID of the bank whose costs you want to retrieve.
Response
true when the request succeeds.Array of cost records for the specified bank. See
GET /api/bancos/costos for the record shape.GET /api/bancos/clientes/:idCliente/bancos
Returns all banks linked to a credit client through their registered bank accounts. Authentication: RequiredPath parameters
UUID of the credit client (
cliente_credito).Response
true when the request succeeds.Array of banks associated with the client’s registered accounts.
POST /api/bancos/clientes/:idCliente/cuentas
Registers a new bank account for a credit client. Authentication: RequiredPath parameters
UUID of the credit client for whom the account is being created.
Request body
UUID of the bank where the account is held.
Account number. Must contain digits only.
Optional phone number associated with the account. Formatted automatically by the server.
GET /api/bancos/:idCliente/:idBanco
Returns the active bank account record for a specific client and bank combination. Authentication: RequiredThis route is registered last in the router because it uses two generic path parameters (
/:idCliente/:idBanco). Any request that does not match a specific named path above will fall through to this handler. Ensure you pass UUIDs for both parameters to avoid conflicts with named segments.Path parameters
UUID of the credit client.
UUID of the bank.
Response
true when the request succeeds.Array of active account records matching the client and bank. Typically contains one record.