AddRollingStockTake

Add rolling stock take/count. Rolling stock count will create a stock count header for every day (UTC based). Every request will create a session, adds all entries into the stock count
recounts all totals and discrepancies. WMS location or batched items requires BatchInventoryId to be specified. If you are submitting stock level for item that doesn't have batch inventory you must create it first, get its id and submit in the count
The method validates all entries, if any errors encountered the whole request will be rejected.
Permissions Required: GlobalPermissions.Inventory.StockTake.RollingStockCountNode
Rate limit: 150 / minute

Log in to see full request history
Body Params
uuid

Location Id

int32

Time in seconds the stock take session has taken

Items
array of objects

List of stock take items. Maximum 1000 items in a stock take session

Items
Response

Response body
object
ErroredItems
array of objects

List of items that have failed validation, if any items are returned then the stock take won't be submitted.

ErroredItems
object
string

(optional) Only applicable to non-batched and non-WMS locations. Singular BinRack will be updated for the given item for a given location. Will be ignored for a batched or WMS item.

PickingWaveItems
array of objects

(optional) Pickwave items associated with the batch. This data will be used for concurrency check and validation of data.
Super important stuff when you are submitting batch inventory stock count in WMS location.
Order items will automatically be allocated to a specific batch when the order is placed/printed/added to pickwave. This will normally block stock count,
however it is possible to get the state of pickwave items, and if all items are picked from the location the user can still count them. When stock count is submitted
we need to also submit the state of the pickwave at the point of count, so we can compare state was and the state is, discount any stock from the count that was processed/shipped
If this parameter is not supplied and the batch is allocated to orders, the stock count for this item will be blocked and will not be submitted

PickingWaveItems
object
int32

Pickwave Row Id

int32

Pickwave Id

string

User name to whom the pickwave was/is allocated. If unallocated this will be null

int32

Total Quantity to pick

int32

Picked quantity

uuid

Stock Item Id

int32

Order Id

int32

User Id to whom the pickwave was/is allocated. If unallocated this will be null

Errors
array of strings

List of errors for specific stock take item

Errors
uuid

Stock Item Id

int32

Current stock level

int32

(Optional) Original quantity, used to validate if the original has changed since the items have been counted. If supplied and different to expected then an error will be returned.

double

(optional) Stock value (unit cost * quantity). If not provided it will be calculated from current stock value

int32

(conditional) If item is batched or in WMS location, you must provide BatchInventoryId which is being updated.
If its newly discovered item, use BookInStockBatch call in Stock controller to create a new batch inventory

Language
Credentials