Cost centers
The cost centers expenses are allocated to.
Module: Finance (finance).
Endpoints
Section titled “Endpoints”GET /api/v1/cost_centers- List with filters, sorting and pagination (scopefinance:read)GET /api/v1/cost_centers/{id}- A record by id (scopefinance:read)POST /api/v1/cost_centers- Create a record (scopefinance:write)PATCH /api/v1/cost_centers/{id}- Modify the submitted fields (scopefinance:write)DELETE /api/v1/cost_centers/{id}- Delete or deactivate (scopefinance:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required): Namelocation_id(string, uuid; write): Locationcreated_at(string, date-time; read): Creation date (ISO 8601).code(string; write): Codeis_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”cost_centers.createdcost_centers.updatedcost_centers.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.