Vue d’ensemble
Budget
Exposez les budgets Flowtly à vos outils financiers pour garder les limites et alertes alignées.
Endpoints
/api/budgets
Lister les budgets
Récupère des budgets paginés avec filtres par type ou période.
/api/budgets
Créer un budget
Crée un budget avec fenêtre temporelle, groupe et options.
/api/budgets/{id}
Obtenir un budget par ID
Consulte les détails et allocations d’un budget.
/api/budgets/{id}
Mettre à jour un budget
Ajuste les dates, la granularité ou la configuration d’un budget.
/api/budgets/{id}
Supprimer un budget
Supprime un budget qui ne doit plus être suivi.
/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.
Cas d’usage
Champs du schéma
Budget-budget.read_budget_employee.read| Champ | Type | Description |
|---|---|---|
id |
string | Identifiant unique du budget. |
name |
string | Nom du budget affiché aux utilisateurs. |
type |
string | Portée du budget (global ou employé). |
granularity |
string | Granularité de reporting, par exemple mensuelle. |
budgetGroup |
string | null | IRI du groupe budgétaire. |
dateFrom |
string | null | Début de la fenêtre de validité. |
dateTo |
string | null | Fin de la fenêtre de validité. |
config |
array | Options activées comme les alertes de dépense. |
budgetEmployees |
array | Collaborateurs rattachés au budget. |
Exemples
/api/budgets
Créer un budget marketing global
Met en place le budget FY25 lié à son groupe avec alertes automatiques.
{
"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"
]
}