Investment contracts (contratos) represent a formal agreement with an investor (aportante) to deploy capital over a fixed term. Each contract tracks the currency, term length, and optional collateral guarantee. Once capital starts flowing through a contract, individual TCOL collection records are linked to it. You can also close a contract formally via 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.
contrato-cerrado operation, which locks in the agreed rate and commission.
Create contract
Method:POSTPath:
/api/negocios/contratoAuthentication: Bearer JWT required
Content-Type:
application/json
Body parameters
UUID of the investor who is party to this contract.
Currency code for the contract. One of
VES, USD, or EUR.Numeric duration of the contract term. Must be greater than 0.
Unit for the term duration. One of
dias, mes, or ano.Contract start date in
YYYY-MM-DD format.Contract end date in
YYYY-MM-DD format. When omitted, the system calculates it from fecha_inicio and the plazo values.Collateral description or JSON reference to guarantee file paths. Optional at creation; files can be attached later via the update endpoint.
Registration date in
YYYY-MM-DD format. Defaults to the current timestamp when omitted.Response fields
Unique UUID for the contract.
UUID of the linked investor.
Full name of the investor.
Identity or tax ID of the investor.
Total amount collected into this contract via TCOL records.
Currency code (
VES, USD, EUR).Numeric term length.
Term unit (
dias, mes, ano).Contract start date.
Contract end date.
Collateral reference or JSON string of file paths.
Current status of the contract (e.g.,
activo, finalizado).ID of the user who last updated this record.
ISO 8601 timestamp of the last update.
ISO 8601 date of original registration.
UUID of the user who created the contract.
Full name of the responsible user.
Examples
Success response
201
Error responses
400
400
500
List all contracts
Returns all investment contracts in the system. Method:GETPath:
/api/negocios/contratosAuthentication: Bearer JWT required
Examples
Success response
200
List finalized contracts
Returns only contracts that have been closed or finalized. Method:GETPath:
/api/negocios/contratos/finalizadosAuthentication: Bearer JWT required
Examples
Success response
200
Get TCOL records for a contract
Returns all TCOL (fund collection) entries linked to the specified contract. Method:GETPath:
/api/negocios/contratos/:idContrato/tcolAuthentication: Bearer JWT required
Path parameters
UUID of the contract whose TCOL records you want to retrieve.
Examples
Success response
200
Error responses
400
Update contract
Updates term, start date, or guarantee files for an existing contract. At least one field or at least one file must be provided. Method:POSTPath:
/api/negocios/contratos/actualizar/:idAuthentication: Bearer JWT required
Content-Type:
multipart/form-data
Path parameters
UUID of the contract to update.
Body parameters
New term length. Must be greater than 0 if provided.
New term unit. One of
dias, mes, or ano.New start date in
YYYY-MM-DD format. When changed, the system recalculates fecha_fin.One or more guarantee files (e.g., PDF, image). Attach as multipart file fields. Existing guarantee files are preserved and the new files are appended.
Examples
Success response
200
Error responses
400
Get guarantee files for a contract
Returns the list of guarantee files attached to the specified contract. Method:GETPath:
/api/negocios/contratos/:id/garantiasAuthentication: Bearer JWT required
Path parameters
UUID of the contract whose guarantee files you want to retrieve.
Examples
Success response
200
Error responses
404
Close contract
Formally closes a contract by recording the agreed interest rate and commission. This creates acontrato-cerrado record and updates the contract status to finalized.
Method: POSTPath:
/api/negocios/contrato-cerradoAuthentication: Bearer JWT required
Content-Type:
application/json
Body parameters
UUID of the contract to close.
Agreed interest rate as a percentage (0–100).
Commission percentage charged on the contract (0–100).
Optional note or observations about the contract closure.
Closure date in
YYYY-MM-DD format. Defaults to the current timestamp when omitted.Examples
Success response
201
Error responses
400
400
401
Get available funds per bank
Returns the available (unallocated) fund balance for a given bank, optionally filtered by client and company. Method:GETPath:
/api/negocios/bancos/:idBanco/disponibleAuthentication: Bearer JWT required
Path parameters
UUID of the bank institution to query.
Query parameters
Optionally filter results for a specific client UUID.
Optionally filter results for a specific company UUID.
Optionally filter results by currency (
VES, USD, or EUR).Examples
Success response
200
Get available control funds per bank
Returns the fund balance available through control-de-fondos allocations for a given bank. Only funds pre-allocated via control records are counted here. Method:GETPath:
/api/negocios/bancos/:idBanco/disponible-controlAuthentication: Bearer JWT required
Path parameters
UUID of the bank institution to query.
Query parameters
Optionally filter results by company UUID.
Examples
Success response
200
Error responses
400