Creating & executing stow jobs
Summary
Stow jobs represent the intention or instruction to change the storage location and/or the amount of stock in a facility. While the stow job itself holds general information such as the facility or priority of the job, the stow line item contains information on the items to be moved, their quantity, location, and more. Stow line items cannot exist without a stow job.
Use case examples
Relocate items between locations
An admin wants items from a goods receipt to be stowed or items to be relocated.
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeLOCATIONandstowTo.typeLOCATION
Job is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.Items are taken from start location. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be set to in order to define which stock should be reduced.Items are stowed to target location. Set
STOWEDinformation in operative data via ModifyStowLineItems action.A
stowedStockRefandstowedStorageLocationRefmust be sent but can also be null.If a
stowedStockRefis provided, the moved stock is added to the specified stock. If null, a new stock is created.If a
stowedStorageLocationRefis provided, the stock will be created on that location. If null, a stock is created without a reference to any location.
Repeat step "3." & "4." until everything is stowed.
Set status to
CLOSEDvia CloseStowJobAction.
Create stock for items that are not registered yet
An admin wants new stock to be booked to location.
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeUNREGISTEREDandstowTo.typeLOCATION
If new stock should have properties or traits, it can be defined in the
stockInformationof thetakeFromobject.Job is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.Items are taken up by the worker. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be sent but can be null since a new stock will be created based on data intaken.takenQuantityandtakeFrom.stockInformation.Follow steps "4." to "6." from above.
Discard stock
Admin wants stock to be discarded.
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeLOCATIONandstowTo.typeDISCARD
Job is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.Items are taken from start location. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be set to in order to define which stock should be reduced.Items are discarded. Set
STOWEDinformation in operative data via ModifyStowLineItems action. AstowedStockRefmust be sent but can be null since the stock is deleted after stowing was completed.Set status to
CLOSEDvia CloseStowJobAction.
Add a reason for changing a stow line item
Admin wants stock to be discarded and worker specifies a reason for discarding, e.g., "BROKEN".
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeLOCATIONandstowTo.typeDISCARD
Job is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.Items are taken from start location. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be set to in order to define which stock should be reduced.Items are discarded and worker defined reason for discarding stock. Set
STOWEDinformation in operative data via ModifyStowLineItems action.A
stowedStockRefmust be sent but can be null since the stock is deleted after stowing was completed.The reasons array of the corresponding stow line item can have one or multiple reasons. Each reason must be one of the following:
An object containing
id: <id>of a preconfigured (active) external stock change reason.An object containing
tenantReasonId: <tenantReasonId>of an (active) preconfigured external stock change reason.An object containing
reasonLocalized: <LocalizedString>. See Localization for the format ofLocalizedString. For this option, the reason does not need to be preconfigured. The object can optionally contain atenantReasonId, if there is no preconfigured external stock change reason with that Id.
Set status to
CLOSEDvia CloseStowJobAction.Follow the steps above.
Relocate items between stocks
Admin wants a specific stock to be relocated. This could, for example, be the case if there are multiple expiry dates for the same item on one location.
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeSTOCKandstowTo.typeSTOCK
Job is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.Items are taken. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be set to in order to define which stock should be reduced.Items are stowed. Set
STOWEDinformation in operative data via ModifyStowLineItems action. AstowedStockRefmust be sent but can also be null.
If no stowedStockRef is defined, a new stock will be created.
Repeat step "3." & "4." until everything is stowed.
Set status to
CLOSEDvia CloseStowJobAction.
Change the priority of a stow job
The priority can be defined on stowJob level. Any value can be set meaning users can define their own logic. Priority can be set using PATCH /api/stowjobs/{stowJobId}.
Relocate items from one to multiple locations
Admin wants items to be moved from one location to multiple other locations. This could, for example, be the case if items should be stored after a goods receipt was completed.
Create stow job using POST
/api/stowjobsset status to
OPENuse
takeFrom.typeLOCATIONandstowTo.typeLOCATIONdefine all target locations along with the respective quantities in the
stowToarrayJob is started by worker. Set status to
IN_PROGRESSusing StartStowJobAction.
Items are taken from start location. Set
TAKENinformation in operative data via ModifyStowLineItems action. AtakenStockRefmust be set to in order to define which stock should be reduced.Items are stowed to target location. Set
STOWEDinformation in operative data via ModifyStowLineItems action.Define the ID of the
stowToobject that should be updated.It is necessary to send the complete
stowToarray, even if only one object should be updated.A
stowedStockRefandstowedStorageLocationRefmust be sent but can also be null.If a
stowedStockRefis provided, the moved stock is added to the specified stock. If null, a new stock is created.If a
stowedStorageLocationRefis provided, the stock will be created on that location. If null, a stock is created without a reference to any location.
Repeat step "3." & "4." until everything is stowed.
Set status to
CLOSEDvia CloseStowJobAction.
Last updated