Budgets
Budgets per period, optionally per cost center and category.
Module: Finance (finance).
Endpoints
Section titled “Endpoints”GET /api/v1/budgets- List with filters, sorting and pagination (scopefinance:read)GET /api/v1/budgets/{id}- A record by id (scopefinance:read)POST /api/v1/budgets- Create a record (scopefinance:write)PATCH /api/v1/budgets/{id}- Modify the submitted fields (scopefinance:write)DELETE /api/v1/budgets/{id}- Delete or deactivate (scopefinance:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).cost_center_id(string, uuid; write): Cost centername(string; write, required): Nameamount(number; write, required): Budget (RON)currency(string; read): Currency (ISO code, e.g. RON).period_start(string, date; write, required): Startperiod_end(string, date; write, required): Endcreated_at(string, date-time; read): Creation date (ISO 8601).category(string; write): Expense categoryis_active(boolean; read): Whether the record is active.updated_at(string, date-time; read): Last modification date (ISO 8601).custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.
Events
Section titled “Events”budgets.createdbudgets.updatedbudgets.deleted
Accepts custom fields in custom_fields. docs.rivil.app documents the capability; the list for your company is in the ERP, under Settings, API.