Locații
Locațiile companiei.
Modul: Locații (organization).
Endpointuri
Secțiune intitulată „Endpointuri”GET /api/v1/locations- Listare cu filtre, sortare și paginare (scopeorganization:read)GET /api/v1/locations/{id}- O înregistrare după id (scopeorganization:read)POST /api/v1/locations- Creează o înregistrare (scopeorganization:write)PATCH /api/v1/locations/{id}- Modifică câmpurile trimise (scopeorganization:write)DELETE /api/v1/locations/{id}- Șterge sau dezactivează (scopeorganization:write)POST /api/v1/locations/{id}/set_hours- Înlocuiește programul locației. (scoperoster:write)
id(string, uuid; citire): Identificator unic (UUID).org_unit_id(string, uuid; citire)name(string; scriere, obligatoriu): Denumirecode(string; scriere): Codaddress(string; scriere): Adresă (stradă, număr)city(string; scriere): Oraș / localitatetimezone(string; scriere): Fus oraris_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): Țaracounty(string; scriere): Județ / regiuneslug(string; citire)legal_entity_id(string, uuid; scriere): Firmăexternal_code(string; scriere): Cod externhide_in_quick_filter(boolean; scriere): Ascunde în filtrul rapidinvoice_series(string; scriere): Serie facturi (gol = seria firmei)sms_address(string; citire)sms_address_map(string; citire)sms_phone(string; citire)
Evenimente
Secțiune intitulată „Evenimente”locations.createdlocations.updatedlocations.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.