Marbes operates a two-sided ledger for every bank account. TCOL (colocación) records money flowing in — funds received from an investor under an active contract. TPROD (préstamo de producción) records money flowing out — capital lent to a credit client. A third record type, TCON (contrato cerrado), closes the loop when a contract is settled. The typical lifecycle is: investor signs contract → TCOL records each deposit → TPROD issues loans to clients → TCON closes the contract at maturity.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 endpoints
Create TCOL
Records a new inbound fund collection tied to an investment contract. Method:POSTPath:
/api/negocios/tcolAuthentication: Bearer JWT required
Content-Type:
application/json
Body parameters
UUID of the investment contract this deposit belongs to.
UUID of the company receiving or intermediating the funds.
Base amount received. Must be greater than 0.
Currency of the deposit. One of
VES, USD, or EUR.BCV (Central Bank) exchange rate at the time of collection. Must be greater than 0.
UUID of the bank account where the funds were received.
Date the funds were received, in
YYYY-MM-DD format.Bank transaction reference number. Optional; can be updated later.
Initial status of the TCOL record. One of
aceptado, pendiente, devuelto, or rechazado. Defaults to pendiente.Bank processing fee as a percentage (e.g.,
0.25 for 0.25%). Defaults to 0 when omitted.monto vs costo_banco: monto is the gross amount received before any fees. costo_banco is a separate percentage charged by the bank for processing the transfer. The net amount credited to the contract is monto - (monto * costo_banco / 100).Response fields
Unique UUID for the TCOL record.
UUID of the linked investment contract.
UUID of the linked company.
Company name.
Gross amount received.
Currency code (
VES, USD, EUR).Bank fee percentage applied.
BCV exchange rate at time of collection.
UUID of the receiving bank.
Bank name.
Transaction reference number.
Date funds were received.
Status:
aceptado, pendiente, devuelto, or rechazado.Name of the user who created the record.
ID of the user who last updated this record.
ISO 8601 timestamp of the last update.
ISO 8601 date of original registration.
Examples
Success response
201
Error responses
400
400
401
Update TCOL
Updates the status or observations on an existing TCOL record. This route is under the/api/bancos prefix.
Method: PUTPath:
/api/bancos/tcol/:idAuthentication: Bearer JWT required
Content-Type:
application/json
Path parameters
UUID of the TCOL record to update.
Body parameters
New status. One of
aceptado, pendiente, devuelto, or rechazado.Notes or observations about the status change.
Examples
Success response
200
Bulk accept TPROD with guarantee files
Accepts a batch of TPROD records, optionally attaching guarantee files to each entry. This route is under the/api/bancos prefix.
Method: POSTPath:
/api/bancos/tprod/aceptar-loteAuthentication: Bearer JWT required
Content-Type:
multipart/form-data
Body parameters
Array of TPROD UUIDs to accept in bulk.
One or more guarantee files to attach to all records in the batch.
Examples
TPROD endpoints
Create TPROD
Records a new outbound loan disbursement to a credit client. Requires that the client has sufficient available credit and the bank has sufficient TCOL-backed funds. Method:POSTPath:
/api/negocios/tprodAuthentication: Bearer JWT required
Content-Type:
multipart/form-data
Body parameters
UUID of the bank account from which the funds are disbursed.
UUID of the credit client receiving the loan.
Base loan amount disbursed to the client. Must be greater than 0.
Commission charged on the loan, expressed as a percentage (e.g.,
15 for 15%).Currency of the loan. One of
VES, USD, or EUR.BCV exchange rate at the time of disbursement.
Numeric loan term duration.
Loan term unit. One of
dias, mes, or ano.Loan disbursement date in
YYYY-MM-DD format.Bank processing fee as a percentage. Defaults to
0 when omitted.Client display name. Optional override if different from the stored client name.
Bank transaction reference. Optional; can be updated later.
Initial loan status. One of
pendiente, aceptado, devuelto, or rechazado. Defaults to pendiente.One or more guarantee files for this loan (e.g., signed contract PDF). Attached as multipart file fields.
UUID of the user responsible for this loan. If omitted, defaults to the authenticated user’s ID.
monto vs monto_comision: monto is the principal amount disbursed to the client — the base amount on which the loan is calculated. monto_comision is a percentage applied on top of monto as a service commission. The total amount owed by the client is monto + (monto * monto_comision / 100), stored as monto_total in the TPROD record.Response fields
Unique UUID for the TPROD record.
UUID of the TCOL record that backs this loan.
UUID of the borrowing client.
Total amount owed (principal + commission).
Principal amount disbursed.
Commission percentage applied.
Amount already repaid by the client.
Bank fee percentage applied.
Currency code (
VES, USD, EUR).Loan term duration.
Loan term unit (
dias, mes, ano).UUID of the disbursing bank.
Bank name.
Transaction reference number.
Loan start date.
Calculated loan end date.
Observations or notes on the loan.
Name of the responsible user.
JSON string with paths to guarantee files.
Loan status:
aceptado, pendiente, devuelto, rechazado, or mora.ID of the user who last updated this record.
ISO 8601 timestamp of the last update.
ISO 8601 date of original registration.
Examples
Success response
201
Error responses
400
401
List all TPROD
Returns all TPROD loan records in the system. Method:GETPath:
/api/negocios/tprodAuthentication: Bearer JWT required
Examples
Success response
200
Get TPROD by ID
Returns the full details of a single TPROD loan record. Method:GETPath:
/api/negocios/tprod/:idAuthentication: Bearer JWT required
Path parameters
UUID of the TPROD record to retrieve.
Examples
Success response
200
Error responses
404
Update TPROD
Updates a TPROD record’s status, observations, or guarantee files. This route is under the/api/bancos prefix.
Method: POSTPath:
/api/bancos/tprod/:idAuthentication: Bearer JWT required
Content-Type:
multipart/form-data
Path parameters
UUID of the TPROD record to update.
Body parameters
New loan status. One of
pendiente, aceptado, devuelto, rechazado, or mora.Notes or observations about this update.
Bank transaction reference number for this disbursement.
Additional guarantee files to attach. New files are appended to existing ones.
Examples
Success response
200