Fund control (control de fondos) is an intermediate step between collecting funds (TCOL) and disbursing loans (TPROD). An operator pre-allocates a specific amount from a bank’s available TCOL balance and assigns it to one or more executives. Those executives can then draw from the allocation when creating TPROD loans, ensuring funds are not over-committed and that each executive’s spending stays within the approved limit. The full flow is: TCOL received → control de fondos created (pre-allocation) → executive registers usage → TPROD loan issued against the used amount.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.
Create fund control
Creates a new fund control allocation, assigning a portion of a bank’s available TCOL balance to a set of executives. Method:POSTPath:
/api/negocios/control-fondosAuthentication: Bearer JWT required
Content-Type:
application/json
Body parameters
UUID of the operator (supervisor) responsible for this allocation.
Array of UUIDs of the executives authorized to use these funds.
UUID of the company whose TCOL balance backs this allocation.
UUID of the bank account from which funds are pre-allocated.
Start date of the allocation period in
YYYY-MM-DD format.End date of the allocation period in
YYYY-MM-DD format.BCV exchange rate at the time of allocation. Accepts the field as either
tasa_bcv or tasaBCV.Total amount pre-allocated from the bank’s available TCOL balance.
Currency of the allocation. One of
VES, USD, or EUR. Optional; inherits from the bank when omitted.Notes or context about why this allocation was created.
Initial status. One of
activo, suspendido, finalizado, or cancelado. Defaults to activo.Response fields
Unique UUID for the fund control record.
UUID of the supervising operator.
Array of executive UUIDs authorized to use the allocation.
UUID of the backing company.
UUID of the bank account.
Allocation start date.
Allocation end date.
Currency code (
VES, USD, EUR).BCV exchange rate applied.
Total amount pre-allocated.
Amount already consumed via usage registrations.
Remaining usable amount (
monto_asignado - monto_usado).Current status:
activo, suspendido, finalizado, or cancelado.Notes on the allocation.
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.
ISO 8601 timestamp of record creation.
Examples
Success response
201
Error responses
400
401
Register fund usage
Records a draw against an existing fund control allocation by an authorized executive. Each usage registration decrementsmonto_disponible and increments monto_usado.
Method: POSTPath:
/api/negocios/control-fondos/:id/usoAuthentication: Bearer JWT required
Content-Type:
application/json
Path parameters
UUID of the fund control record to draw from.
Body parameters
UUID of the executive consuming the funds. Must be one of the
ejecutivos_ids on the control record.Amount being drawn from the allocation. Must not exceed
monto_disponible.Optional note about what these funds are being used for.
Examples
Success response
200
Error responses
400
400
Update fund control
Updates one or more fields on an existing fund control record. All fields are optional; only the fields you include are changed. Method:PUTPath:
/api/negocios/control-fondos/:idAuthentication: Bearer JWT required
Content-Type:
application/json
Path parameters
UUID of the fund control record to update.
Body parameters
UUID of the new supervising operator.
Replacement array of authorized executive UUIDs.
UUID of the new backing company.
UUID of the new bank account.
New allocation start date in
YYYY-MM-DD format.New allocation end date in
YYYY-MM-DD format.Currency override. One of
VES, USD, or EUR.Updated BCV exchange rate. Also accepts
tasaBCV.New total allocation amount. Must be at least as large as
monto_usado.New status. One of
activo, suspendido, finalizado, or cancelado.Updated notes. Pass
null to clear.Examples
Success response
200
Error responses
400
401
List fund controls
Returns fund control records, with optional query filters to narrow results. Method:GETPath:
/api/negocios/control-fondosAuthentication: Bearer JWT required
Query parameters
Filter by status. One of
activo, suspendido, finalizado, or cancelado.Filter by operator UUID.
Filter by bank UUID.
Filter by company UUID.
Filter to controls where this executive UUID appears in
ejecutivos_ids.Pass
true to return only controls where the current date falls between fecha_inicio and fecha_fin.Examples
Success response
200
Error responses
500