Warehouses
Warehouses and stock locations.
Module: Warehouses & inventory (inventory).
Endpoints
Section titled “Endpoints”GET /api/v1/warehouses- List with filters, sorting and pagination (scopeinventory:read)GET /api/v1/warehouses/{id}- A record by id (scopeinventory:read)POST /api/v1/warehouses- Create a record (scopeinventory:write)PATCH /api/v1/warehouses/{id}- Modify the submitted fields (scopeinventory:write)DELETE /api/v1/warehouses/{id}- Delete or deactivate (scopeinventory:write)POST /api/v1/warehouses/{id}/set_sell_online- Whether the warehouse stock is sold online. (scopeshop:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required): Namecode(string; write): Codekind(string; write): Typelocation_id(string, uuid; write): Locationresponsible_employee_id(string, uuid; write): Owneris_default(boolean; write): Default warehouse (receipts and consumption)is_active(boolean; write): Whether the record is active.note(string; write): Remarkscustom_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).sell_online(boolean; read)legal_entity_id(string, uuid; write): Company (accounting inventory)stock_account(string; write): Own stock account (e.g. 371.01)valuation(string; write): Record keeping (accounting inventory)
Events
Section titled “Events”warehouses.createdwarehouses.updatedwarehouses.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.