Gestor Financiero tracks two types of financial records per project: entradas (client payments coming in) and salidas (expenses going out). Entradas record each payment received from the client and are capped at the project’s contracted total. Salidas record every expenditure — materials, labor, additional costs — and can optionally be linked to a line item in the project’s original presupuesto to power the budget-vs-actual comparison. Every endpoint that creates, updates, or deletes a record returns the full updated project object so your UI stays in sync without a separate fetch.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JDzuu/AplicativoWEB_GestorFinanciero/llms.txt
Use this file to discover all available pages before exploring further.
POST /proyectos/{proyecto_id}/entradas
Adds a new client payment record to the specified project. The total of all payments for the project can never exceed the project’s contractedtotal — the API enforces this hard cap on every insert.
Path Parameters
The numeric ID of the project to which this payment belongs.
Request Body
Payment date in
YYYY-MM-DD ISO format. Maximum 20 characters. Must be a valid calendar date.Payment amount. Must be greater than
0. The sum of all existing payments plus this amount must not exceed the project’s total.Optional free-text note for this payment. Maximum 500 characters.
Response
Returns the full project object with updatedtotal_entradas, saldo, ganancia, porcentaje, and the new entry appended to entradas.
PUT /entradas/{entrada_id}
Updates an existing payment record. When re-validating the payment cap, the current record is excluded from the running total so that correcting an entry’s amount does not double-count it.Path Parameters
The numeric ID of the payment record to update.
Request Body
Updated payment date in
YYYY-MM-DD format. Maximum 20 characters.Updated payment amount. Must be greater than
0. The sum of all other payments plus this new amount must not exceed the project’s total.Updated optional note. Maximum 500 characters.
Response
Returns the full project object with recalculated financial totals.DELETE /entradas/{entrada_id}
Permanently removes a payment record. The project’s financial totals are automatically recalculated on the next fetch.Path Parameters
The numeric ID of the payment record to delete.
Response
POST /proyectos/{proyecto_id}/salidas
Adds a new expense record to the specified project. Expenses are not capped — there is no upper limit on how much a project can spend. Optionally link the expense to a presupuesto line item viapartida_id to enable the budget-vs-actual comparison.
Path Parameters
The numeric ID of the project to which this expense belongs.
Request Body
Expense date in
YYYY-MM-DD ISO format. Maximum 20 characters. Must be a valid calendar date.Supplier or provider name. Maximum 200 characters. Cannot be blank.
Description of what was purchased or the service rendered. Maximum 500 characters. Cannot be blank.
Expense amount. Must be greater than
0.Optional free-text note. Maximum 500 characters.
Expense category for budget grouping. Maximum 30 characters. One of:
materiales, mano_obra, gastos. Leave null if the expense does not fit a tracked category.Optional ID of a presupuesto line item to link this expense against. Use the
items array from GET /proyectos/{proyecto_id}/comparacion to find valid IDs for the project.Response
Returns the full project object with updatedtotal_salidas, saldo, ganancia, and the new entry appended to salidas.
For the budget-vs-actual comparison (available at
GET /proyectos/{proyecto_id}/comparacion) to accurately reflect spending per line item, link each salida to its corresponding presupuesto item by supplying partida_id. Expenses without a partida_id are still counted in the overall cost totals but will appear under sin_categoria in the deviation report.PUT /salidas/{salida_id}
Updates an existing expense record. Thepartida_id link to a presupuesto item is not updated by this endpoint — to change the linked item, delete the record and re-create it with the correct partida_id.
Path Parameters
The numeric ID of the expense record to update.
Request Body
Updated expense date in
YYYY-MM-DD format. Maximum 20 characters.Updated supplier name. Maximum 200 characters. Cannot be blank.
Updated description. Maximum 500 characters. Cannot be blank.
Updated expense amount. Must be greater than
0.Updated optional note. Maximum 500 characters.
Updated expense category. One of:
materiales, mano_obra, gastos. Maximum 30 characters.Response
Returns the full project object with recalculated financial totals.DELETE /salidas/{salida_id}
Permanently removes an expense record. The project’s financial totals are automatically recalculated on the next fetch.Path Parameters
The numeric ID of the expense record to delete.