Resumen de la entidad
Presupuesto
Expón los presupuestos de Flowtly para que las herramientas financieras mantengan límites y alertas alineados.
Endpoints
/api/budgets
Listar presupuestos
Recupera presupuestos paginados con filtros por tipo o fechas.
/api/budgets
Crear presupuesto
Publica un presupuesto con ventana de fechas, grupo y banderas de configuración.
/api/budgets/{id}
Obtener presupuesto por ID
Consulta los detalles y asignaciones de un presupuesto.
/api/budgets/{id}
Actualizar presupuesto
Actualiza fechas, granularidad o configuración de un presupuesto.
/api/budgets/{id}
Eliminar presupuesto
Borra un presupuesto que ya no necesites seguir.
/api/budget-contractors
List budget-contractors
Retrieve budget-contractor records.
/api/budget-contractors
Create budget-contractor
Create a new budget-contractor mapping.
/api/budget-contractors/{id}
Get budget-contractor
Fetch a budget-contractor by ID.
/api/budget-contractors/{id}
Delete budget-contractor
Remove a budget-contractor mapping.
/api/budget-employees
List budget-employees
Retrieve employee budget allocations.
/api/budget-employees
Create budget-employee
Create a new budget-employee allocation.
/api/budget-employees/{id}
Get budget-employee
Fetch a budget-employee allocation.
/api/budget-employees/{id}
Delete budget-employee
Remove a budget-employee allocation.
/api/budget-groups
List budget-groups
Retrieve budget groups.
/api/budget-groups
Create budget-group
Create a new budget group.
/api/budget-groups/{id}
Get budget-group
Fetch a budget group by ID.
/api/budget-groups/{id}
Update budget-group
Patch a budget group.
/api/budget-groups/{id}
Delete budget-group
Remove a budget group.
/api/budget-invoices
List budget-invoices
Retrieve budget-linked invoices.
/api/budget-invoices
Create budget-invoice
Create a budget invoice mapping.
/api/budget-invoices/{id}
Get budget-invoice
Fetch a budget invoice mapping.
/api/budget-invoices/{id}
Delete budget-invoice
Remove a budget invoice mapping.
/api/budget-projects
List budget-projects
Retrieve project allocations under budgets.
/api/budget-projects
Create budget-project
Create a budget-project allocation.
/api/budget-projects/{id}
Get budget-project
Fetch a budget-project allocation.
/api/budget-projects/{id}
Delete budget-project
Remove a budget-project allocation.
Casos de uso
Campos del esquema
Budget-budget.read_budget_employee.read| Campo | Tipo | Descripción |
|---|---|---|
id |
string | Identificador único del presupuesto. |
name |
string | Nombre legible del presupuesto. |
type |
string | Alcance del presupuesto (global o por empleado). |
granularity |
string | Granularidad de reporting, por ejemplo mes. |
budgetGroup |
string | null | IRI del grupo presupuestario. |
dateFrom |
string | null | Inicio de la ventana de vigencia. |
dateTo |
string | null | Fin de la ventana de vigencia. |
config |
array | Opciones activadas, como alertas de gasto. |
budgetEmployees |
array | Empleados asignados al presupuesto. |
Ejemplos
/api/budgets
Crear un presupuesto global de marketing
Configura el presupuesto FY25 enlazado a su grupo con alertas automáticas.
{
"name": "EMEA Marketing FY25",
"type": "global",
"granularity": "month",
"dateFrom": "2024-01-01T00:00:00+00:00",
"dateTo": "2024-12-31T00:00:00+00:00",
"budgetGroup": "/api/budget-groups/emarketing",
"config": [
"spend_alerts",
"auto-freeze"
]
}
{
"@id": "/api/budgets/bgt_fy25",
"@type": "Budget",
"id": "bgt_fy25",
"name": "EMEA Marketing FY25",
"type": "global",
"granularity": "month",
"dateFrom": "2024-01-01T00:00:00+00:00",
"dateTo": "2024-12-31T00:00:00+00:00",
"budgetGroup": "/api/budget-groups/emarketing",
"config": [
"spend_alerts",
"auto-freeze"
]
}