Skip to content

Warehouses

Warehouses and stock locations.

Module: Warehouses & inventory (inventory).

  • GET /api/v1/warehouses - List with filters, sorting and pagination (scope inventory:read)
  • GET /api/v1/warehouses/{id} - A record by id (scope inventory:read)
  • POST /api/v1/warehouses - Create a record (scope inventory:write)
  • PATCH /api/v1/warehouses/{id} - Modify the submitted fields (scope inventory:write)
  • DELETE /api/v1/warehouses/{id} - Delete or deactivate (scope inventory:write)
  • POST /api/v1/warehouses/{id}/set_sell_online - Whether the warehouse stock is sold online. (scope shop:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • name (string; write, required): Name
  • code (string; write): Code
  • kind (string; write): Type
  • location_id (string, uuid; write): Location
  • responsible_employee_id (string, uuid; write): Owner
  • is_default (boolean; write): Default warehouse (receipts and consumption)
  • is_active (boolean; write): Whether the record is active.
  • note (string; write): Remarks
  • 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).
  • 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)
  • warehouses.created
  • warehouses.updated
  • warehouses.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.