Skip to content

Locations

The company’s locations.

Module: Locations (organization).

  • GET /api/v1/locations - List with filters, sorting and pagination (scope organization:read)
  • GET /api/v1/locations/{id} - A record by id (scope organization:read)
  • POST /api/v1/locations - Create a record (scope organization:write)
  • PATCH /api/v1/locations/{id} - Modify the submitted fields (scope organization:write)
  • DELETE /api/v1/locations/{id} - Delete or deactivate (scope organization:write)
  • POST /api/v1/locations/{id}/set_hours - Replaces the location’s schedule. (scope roster:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • org_unit_id (string, uuid; read)
  • name (string; write, required): Name
  • code (string; write): Code
  • address (string; write): Address (street, number)
  • city (string; write): City / town
  • timezone (string; write): Time zone
  • is_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): Country
  • county (string; write): County / region
  • slug (string; read)
  • legal_entity_id (string, uuid; write): Company
  • external_code (string; write): External code
  • hide_in_quick_filter (boolean; write): Hide in the quick filter
  • invoice_series (string; write): Invoice series (empty = the company series)
  • sms_address (string; read)
  • sms_address_map (string; read)
  • sms_phone (string; read)
  • locations.created
  • locations.updated
  • locations.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.