Inventory Stock

Create Stock Move

Register a stock movement and update balances (moving-average cost).

post/inventory/stock/move

Request body

move_datestring nullable

ISO date/time, defaults to now (UTC) if missing

item_idinteger required
location_idinteger required
qtynumber required

Positive = in, Negative = out

unit_costnumber nullable

Cost per unit. Required for positive qty if you want proper average-cost. If missing on negative qty, system uses current average cost.

doc_typestring required

Document type: e.g. 'OPENING', 'PO_GRN', 'TRANSFER', 'PRODUCTION_IN', 'PRODUCTION_OUT', 'ADJUSTMENT', 'WASTE', 'SALE_ISSUE'

doc_idstring nullable
batch_nostring nullable
notestring nullable
created_bystring nullable

Response

Successful Response

item_idinteger required
item_codestring required
item_namestring required
location_idinteger required
location_codestring required
location_namestring required
on_hand_qtynumber required
average_costnumber required
total_valuenumber required
last_movement_atstring nullable required

Changes

No recorded changes to this endpoint across all 1 revision of this API.