Last updated
Last updated
Stock taking (represented by class) is a method to adjust stock quantities for various stock items (Plu
of type StockItem
). These adjustments can be made multiple times until the stock taking is marked as closed by providing values for the ClosedBy
and ClosedAt
fields. Once a stock taking is closed, it becomes read-only and cannot be reopened. To close a stock taking, ActualQuantity
must be provided for each item element (represented by class).
After a stock taking is closed, the API server automatically generates a new stock transfer (represented by class) with the type correction
. This stock transfer is used to execute the necessary stock quantity corrections for the items involved in the stock taking process.
GET
http://{server-address}/stocktakings
Returns all stocks that matches query parameters. Result is of type .
GET
http://{server-address}/stocktakings/{id}
POST
http://{server-address}/stocktakings
Required rights
PUT
http://{server-address}/stocktakings/{id}
Required rights
Only stock takings not marked as closed can be updated.
DELETE
http://{server-address}/stocktakings/{id}
Required rights
Only stock takings not marked as closed can be deleted.
Result is of type .
Creates new stock taking. Result is of type .
Authorized user must have StockTakingCreate
assigned. If stock taking is marked as closed, StockTakingClose
is required as well.
Updates existing or creates new stock taking. Result is of type .
Authorized user must have assigned StockTakingCreate
or StockTakingUpdate
. If stock taking is marked as closed, StockTakingClose
is required as well.
Authorized user must have StockTakingDelete
assigned.