The banking layer in Marbes sits underneath every lending and collection operation. Banks are the containers that hold TCOL funds; their fee configurations (costos) determine how bank charges are applied to individual transactions. When funds need to move between accounts — for example after a client repays a loan — the fund movement system creates a traceable audit trail. This guide covers each banking operation available through the API. All requests require a valid JWT token in 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.
Authorization header.
Managing banks
List all banks
Create a bank
Banks are referenced by UUID (
id_banco) throughout TCOL and TPROD records. Create all banks you need before onboarding investors or clients.Bank costs (costos)
Bank costs define the standard fee percentage a specific bank charges for processing transfers. These values populate thecosto_banco field automatically when a bank is selected during TCOL or TPROD creation.
List all bank cost records
Create a bank cost entry
Get costs for a specific bank
Update a bank cost entry
Use the cost record’s ownid (not the bank’s id) to update it:
Moving funds between TCOL accounts
When you need to transfer a portion of one TCOL’s available balance to another — for example when consolidating funds before a lending round — use the fund movement endpoint. Every move is recorded in the movement trace.The origin TCOL must have sufficient available funds (
disponible_activo) to cover the transfer amount. The system will reject the request if the balance is insufficient.Adding funds to a TCOL from a TPROD repayment
When a client repays a loan, the repaid amount is credited back to a TCOL account. Use thefondos endpoint to record the incoming repayment:
{id} with the UUID of the TCOL account receiving the repayment.
Viewing the TCOL movement trace
Every fund movement in or out of a TCOL creates a trace entry. Retrieve the full movement history for a TCOL to audit how its balance changed over time:Client bank accounts
Credit clients can have multiple bank accounts on file. These are used when disbursing loan funds via bank transfer.Add a bank account for a client
UUID of the bank where the client holds the account.
Full account number at that bank.
Mobile number linked to the account for mobile banking transfers.
Account status:
activo or inactivo. Defaults to activo.List banks with accounts for a client
Returns all banks where the client has at least one active account:Only accounts with
estatus = activo appear in this response. Deactivate accounts instead of deleting them to preserve audit history.