An investment contract (contrato) ties an investor (aportante) to a fixed-term deposit. Funds flow in through TCOL collection records, which capture each bank transfer received from the investor. When the term ends, you close the contract by recording the agreed exchange rate and any commission earned. This guide walks through every step in order, using real field names from 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.
Create an investor (aportante)
An aportante is a person or legal entity that deposits funds into a contract. You must create one before you can attach a contract.The response includes the newly created aportante’s
First name of the investor.
Last name of the investor.
National ID or tax registry number. Use the format
V-######## for individuals or J-######## for companies.Contact email address.
Investor type — typically
natural (individual) or juridico (company).Reference code for the person or channel that referred this investor.
Contact phone number.
Registration date in
YYYY-MM-DD format. Defaults to the current timestamp if omitted.id. Save it — you’ll need it in the next step.Create a contract
A contract defines the currency, term length, and start/end dates for the investment. Attach it to the aportante you just created using their The response includes the contract
id.UUID of the aportante created in step 1.
Investment currency —
USD, VES, or EUR.Numeric length of the term (e.g.,
3 for three months).Unit for the term:
dias (days), mes (months), or ano (years).Contract start date in
YYYY-MM-DD format.Contract end date in
YYYY-MM-DD format. Can be calculated automatically from plazo_cantidad and plazo_opcion if omitted.Description or reference for the guarantee instrument backing this contract (e.g., a signed promissory note).
id you’ll use in the next step.Record incoming funds with a TCOL
A TCOL (colección de fondos) is a record of a bank transfer received from the investor. Each bank deposit gets its own TCOL entry linked to the contract.
UUID of the contract this collection belongs to.
UUID of the company that received the funds.
Amount received in the specified currency.
Currency of the transfer:
VES, USD, or EUR.BCV exchange rate at the time the funds were received.
UUID of the bank account where funds were deposited.
Bank transfer reference number.
Date the funds were received, in
YYYY-MM-DD format.Initial status of the collection record. See status values below.
Bank fee as a percentage (e.g.,
0.25 for 0.25%).TCOL statuses
| Status | Meaning |
|---|---|
pendiente | Funds received but not yet reviewed or confirmed. |
aceptado | Funds verified and accepted — available for lending. |
devuelto | Funds returned to the investor. |
rechazado | Transfer rejected (e.g., incorrect amount, invalid reference). |
A TCOL in
pendiente status does not make funds available for lending. An operator must update it to aceptado before the funds appear in the bank’s available balance.Close the contract
When a contract matures, record the closing exchange rate and any commission earned. This finalizes the contract and moves it to the completed state.
UUID of the contract to close.
Exchange rate applied at contract closure.
Commission earned on the contract.
Optional closing notes or remarks.