Move all stock between locations

Moves all stock from one location to another in the same warehouse.

Both locations are required, must be different, and must belong to the warehouse. Every item with stock at the from location moves its full stock on hand; items with no stock (zero or less) there are skipped. If there's nothing to move, you get []. It's all or nothing, like Move stock: either every line moves or none do.

Heads up: this is a GET request, but it changes data. Don't call it just to look something up.

Required permission:

GroupPermission
InventorySet, adjust and move stock (includes view)
Path Params
integer
required

The warehouse's ID.

integer
required

The ID of the stock location to move stock from. If it isn't a number, you get a 404 with no route.

integer
required

The ID of the stock location to move stock to. It must be different from from. If it isn't a number, you get a 404 with no route.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json