Locations
The company’s locations.
Module: Locations (organization).
Endpoints
Section titled “Endpoints”GET /api/v1/locations- List with filters, sorting and pagination (scopeorganization:read)GET /api/v1/locations/{id}- A record by id (scopeorganization:read)POST /api/v1/locations- Create a record (scopeorganization:write)PATCH /api/v1/locations/{id}- Modify the submitted fields (scopeorganization:write)DELETE /api/v1/locations/{id}- Delete or deactivate (scopeorganization:write)POST /api/v1/locations/{id}/set_hours- Replaces the location’s schedule. (scoperoster:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).org_unit_id(string, uuid; read)name(string; write, required): Namecode(string; write): Codeaddress(string; write): Address (street, number)city(string; write): City / towntimezone(string; write): Time zoneis_active(boolean; write): Whether the record is active.custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).country(string; write): Countrycounty(string; write): County / regionslug(string; read)legal_entity_id(string, uuid; write): Companyexternal_code(string; write): External codehide_in_quick_filter(boolean; write): Hide in the quick filterinvoice_series(string; write): Invoice series (empty = the company series)sms_address(string; read)sms_address_map(string; read)sms_phone(string; read)
Events
Section titled “Events”locations.createdlocations.updatedlocations.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.