Sari la conținut

Locații

Locațiile companiei.

Modul: Locații (organization).

  • GET /api/v1/locations - Listare cu filtre, sortare și paginare (scope organization:read)
  • GET /api/v1/locations/{id} - O înregistrare după id (scope organization:read)
  • POST /api/v1/locations - Creează o înregistrare (scope organization:write)
  • PATCH /api/v1/locations/{id} - Modifică câmpurile trimise (scope organization:write)
  • DELETE /api/v1/locations/{id} - Șterge sau dezactivează (scope organization:write)
  • POST /api/v1/locations/{id}/set_hours - Înlocuiește programul locației. (scope roster:write)
  • id (string, uuid; citire): Identificator unic (UUID).
  • org_unit_id (string, uuid; citire)
  • name (string; scriere, obligatoriu): Denumire
  • code (string; scriere): Cod
  • address (string; scriere): Adresă (stradă, număr)
  • city (string; scriere): Oraș / localitate
  • timezone (string; scriere): Fus orar
  • is_active (boolean; scriere): Dacă înregistrarea este activă.
  • custom_fields (object; citire): Câmpuri personalizate (obiect cheie-valoare). Definițiile se creează în ERP; vezi ghidul de pe docs.rivil.app.
  • created_at (string, date-time; citire): Data creării (ISO 8601).
  • updated_at (string, date-time; citire): Data ultimei modificări (ISO 8601).
  • country (string; scriere): Țara
  • county (string; scriere): Județ / regiune
  • slug (string; citire)
  • legal_entity_id (string, uuid; scriere): Firmă
  • external_code (string; scriere): Cod extern
  • hide_in_quick_filter (boolean; scriere): Ascunde în filtrul rapid
  • invoice_series (string; scriere): Serie facturi (gol = seria firmei)
  • sms_address (string; citire)
  • sms_address_map (string; citire)
  • sms_phone (string; citire)
  • locations.created
  • locations.updated
  • locations.deleted

Acceptă câmpuri personalizate în custom_fields. Pe docs.rivil.app e documentată capacitatea; lista pe firma ta e în ERP → Setări → API.