Depozite
Depozitele și gestiunile.
Modul: Depozite & inventar (inventory).
Endpointuri
Secțiune intitulată „Endpointuri”GET /api/v1/warehouses- Listare cu filtre, sortare și paginare (scopeinventory:read)GET /api/v1/warehouses/{id}- O înregistrare după id (scopeinventory:read)POST /api/v1/warehouses- Creează o înregistrare (scopeinventory:write)PATCH /api/v1/warehouses/{id}- Modifică câmpurile trimise (scopeinventory:write)DELETE /api/v1/warehouses/{id}- Șterge sau dezactivează (scopeinventory:write)POST /api/v1/warehouses/{id}/set_sell_online- Dacă stocul depozitului se vinde online. (scopeshop:write)
id(string, uuid; citire): Identificator unic (UUID).name(string; scriere, obligatoriu): Denumirecode(string; scriere): Codkind(string; scriere): Tiplocation_id(string, uuid; scriere): Locațieresponsible_employee_id(string, uuid; scriere): Responsabilis_default(boolean; scriere): Depozit implicit (intrări și consum)is_active(boolean; scriere): Dacă înregistrarea este activă.note(string; scriere): Observațiicustom_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).sell_online(boolean; citire)legal_entity_id(string, uuid; scriere): Firmă (gestiunea contabilă)stock_account(string; scriere): Cont de stoc propriu (ex. 371.01)valuation(string; scriere): Evidență (gestiunea contabilă)
Evenimente
Secțiune intitulată „Evenimente”warehouses.createdwarehouses.updatedwarehouses.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.