The fund movement layer in Marbes operates across three interconnected entities. A TPROD is a guarantee or loan product record that holds funds on behalf of a client. A TCOL (colateral account) is a bank-level fund container associated with a loan contract; funds flow in and out of TCOLs during the life of a contract. A TCON is a payment transaction tied to a specific TPROD — it records money received from a client against their credit obligation. Together these three entities form the complete audit trail for every bolivar that enters or leaves the system.Documentation 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.
TCOL, TPROD, and TCON are tightly coupled. A TPROD sources funds that populate a TCOL. A TCON records client payments against the same TPROD. Moving funds between TCOLs creates a traceable entry that you can later inspect with
GET /api/bancos/tcol/:idTcol/traza. Always record the id_tprod on a TCON so that the TPROD balance updates correctly.POST /api/bancos/tcol/mover-fondos
Moves a specified amount from one TCOL bank account to another. The operation is atomic: the source TCOL balance is debited and the destination TCOL balance is credited in the same database transaction. A movement trace record is written automatically so the transfer can be audited later. Authentication: RequiredRequest body
UUID of the source bank (TCOL account to debit).
UUID of the destination bank (TCOL account to credit).
Amount to transfer. Must be a positive value in the specified currency.
Currency of the transfer. Allowed values:
VES, USD, EUR.Optional note describing the reason for the fund movement.
Response
true when the movement completes without errors.Human-readable confirmation message.
The exact amount transferred.
TCOL records whose available balance was reduced (source side).
New TCOL records created on the destination bank to hold the received funds.
POST /api/bancos/tcol/:id/fondos
Adds funds to an existing TCOL record by sourcing them from a TPROD (guarantee). This is the primary mechanism for capitalizing a TCOL with funds that were originally held in a loan product guarantee. Authentication: RequiredPath parameters
UUID of the TCOL record to receive the funds.
Request body
Amount to add to the TCOL. Must be positive.
Currency of the amount. Allowed values:
VES, USD, EUR.UUID of the TPROD that is the source of these funds.
UUID of the bank where the TCOL account is held.
UUID of the client associated with the TPROD and TCOL.
BCV exchange rate (VES/USD) used to convert the amount if currencies differ.
GET /api/bancos/tcol/:idTcol/traza
Returns the full movement trace for a TCOL record — an ordered history of every fund addition, deduction, and transfer that has touched the account. Use this endpoint to audit where funds originated and where they were sent. Authentication: RequiredPath parameters
UUID of the TCOL record whose movement history you want to retrieve.
Response
true when the trace is retrieved successfully.Tracing result containing movement history for the specified TCOL.
GET /api/bancos/tcon
Returns all TCON payment records in the system. Authentication: RequiredResponse
true when the request succeeds.Array of TCON records.
POST /api/bancos/tcon
Creates a new TCON payment record linked to a TPROD loan. Creating a TCON signals that a client payment has been received and is pending approval. The associated TPROD balance is updated once the TCON is approved viaPUT /api/bancos/tcon/:id.
Authentication: Required
Request body
UUID of the TPROD loan record this payment applies to.
Payment amount received.
Currency of the payment. Allowed values:
VES, USD, EUR.UUID of the bank through which the payment was received.
Date the payment was received. Format:
YYYY-MM-DD.BCV exchange rate (VES/USD) at the time of the payment. Used for cross-currency reconciliation.
Display name of the client making the payment. Used for notifications.
Bank reference number for the payment transaction.
Initial status. Defaults to
pendiente. Allowed values: aceptado, pendiente, devuelto, rechazado.Optional manual registration timestamp. Defaults to the server’s current time when omitted.
GET /api/bancos/tcon/tprod/:idTprod
Returns all TCON payment records associated with a specific TPROD loan. Authentication: RequiredPath parameters
UUID of the TPROD whose payment records you want to retrieve.
Response
true when the request succeeds.Array of TCON records for the specified TPROD. See
GET /api/bancos/tcon for the record shape.PUT /api/bancos/tcon/:id
Updates the status and optional metadata of a TCON payment record. Approving a TCON (estatus: "aceptado") triggers a balance update on the linked TPROD and notifies the relevant Slack channel via the n8n webhook integration.
Authentication: Required
Path parameters
UUID of the TCON record to update.
Request body
New status for the TCON. Allowed values:
aceptado, pendiente, devuelto, rechazado.Explanation for the status change. Required when
estatus is anything other than aceptado.Optional commission percentage (e.g.,
18 for 18%). When provided, the linked TPROD’s monto_total is recalculated as monto_prestado + (monto_prestado × monto_comision / 100) before applying the payment.Response
true when the update is applied.Updated TCON record with recalculated TPROD balance fields.