Stock movements
Stock receipts, issues, transfers and adjustments.
Module: Warehouses & inventory (inventory).
Endpoints
Section titled “Endpoints”GET /api/v1/stock_movements- List with filters, sorting and pagination (scopeinventory:read)GET /api/v1/stock_movements/{id}- A record by id (scopeinventory:read)POST /api/v1/stock_movements- Create a record (scopeinventory:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).product_id(string, uuid; write, required)warehouse_id(string, uuid; write)lot_id(string; write)qty(number; write)unit_cost(number; write)kind(string; write, required)ref_type(string; read)ref_id(string, uuid; read)transfer_id(string, uuid; read)note(string; write)occurred_at(string, date-time; read)created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).voided(boolean; read)cost_fixed(boolean; read)value_adj(number; read)reverses_id(string, uuid; read)retail_price(number; read)retail_vat(number; read)retail_adj(number; read)from_warehouse_id(string; write)to_warehouse_id(string; write)counted(number; write)lot_code(string; write)expires_at(string, date; write)
Events
Section titled “Events”stock_movements.createdstock_movements.updatedstock_movements.deleted