CartonCloud
CartonCloud API

Stock Moves

Endpoints that move stock between warehouse locations and pallets.


Move several stock records to one destination.

POST
https://api.cartoncloud.com
/tenants/{tenantId}/work-orders/bulk-move
required permission: WORK_ORDER_MOVE

Moves each stock record in stockItemList to one location, one pallet, or Unallocated.

Identify each record with stockItemList[].id and the quantity to move with stockItemList[].measures.quantity. Set the shared destination in destination.

Move several stock records to one destination. › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

Move several stock records to one destination. › Headers

Accept-Version
​string · enum · required

All API end points require Accept-Version in the request header.

Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.

Enum values:
10

Move several stock records to one destination. › Request Body

Request to move several stock records to one destination.
​StockMoveDestination · required

Where the stock moves.

Send a location name, location barcode, or location id in references.barcode to move the stock to that location.

To move onto a pallet, set barcodeType to PALLET and send the pallet barcode or id. To put the stock on a new pallet at its current location, set barcodeType to PALLET and leave out the barcode. On a bulk move, a new pallet needs every record to be in the same location.

To move the stock to Unallocated, leave out the barcode.

​StockMoveInboundItem[] · required

Inbound order items to move, each with its own quantity. An unknown id returns 422 at /stockItemList/{index}/id. A failure while moving the stock returns 422 at /stockItemList with no index.

type
​StockMoveType · enum

Optional on the request. Stored as MOVEMENT. Send MOVEMENT. A single move accepts any letter case. A bulk move accepts only MOVEMENT.

Enum values:
MOVEMENT

Move several stock records to one destination. › Responses

Success

Result of moving several stock records.
type
​StockMoveType · enum · required

Optional on the request. Stored as MOVEMENT. Send MOVEMENT. A single move accepts any letter case. A bulk move accepts only MOVEMENT.

Enum values:
MOVEMENT
​StockMoveItem[] · required

Source inbound order items after the move, in request order.

​StockMoveItem[] · required

Destination records, in request order. The id is new when the move split the record. The id matches stockItemList at the same index when the whole record moved.

​StockMoveDetail[] · required

One entry per moved record, in request order. details[i].id is movedStockItemList[i].id.

​StockMoveLocation

Warehouse location after the move. Omitted when the stock is Unallocated. A bulk response does not add references.locationName.


Move one stock record to a destination.

POST
https://api.cartoncloud.com
/tenants/{tenantId}/work-orders/move
required permission: WORK_ORDER_MOVE

Moves one stock record to a location, a pallet, or Unallocated.

Identify the stock with stockItem.id. Send the quantity to move in stockItem.measures.quantity. Set where it goes in destination.

Move one stock record to a destination. › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

Move one stock record to a destination. › Headers

Accept-Version
​string · enum · required

All API end points require Accept-Version in the request header.

Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.

Enum values:
10

Move one stock record to a destination. › Request Body

Request to move one stock record to a destination.
​StockMoveDestination · required

Where the stock moves.

Send a location name, location barcode, or location id in references.barcode to move the stock to that location.

To move onto a pallet, set barcodeType to PALLET and send the pallet barcode or id. To put the stock on a new pallet at its current location, set barcodeType to PALLET and leave out the barcode. On a bulk move, a new pallet needs every record to be in the same location.

To move the stock to Unallocated, leave out the barcode.

​StockMoveInboundItem · required

Inbound order item to move.

type
​StockMoveType · enum

Optional on the request. Stored as MOVEMENT. Send MOVEMENT. A single move accepts any letter case. A bulk move accepts only MOVEMENT.

Enum values:
MOVEMENT

Move one stock record to a destination. › Responses

Success

Result of moving one stock record.
type
​StockMoveType · enum · required

Optional on the request. Stored as MOVEMENT. Send MOVEMENT. A single move accepts any letter case. A bulk move accepts only MOVEMENT.

Enum values:
MOVEMENT
​object · required

Source inbound order item after the move. After a split, this id is the id from the request and the quantity is the remainder.

​object · required

Destination record. New id when the move split the record. Same id as stockItem when the whole record moved. details.id matches this id.

​StockMoveDetail · required

What changed on the destination stock record. id is that record's UUID. On a single move it matches movedStockItem.id. On a bulk move, details[i].id matches movedStockItemList[i].id.

​StockMoveLocation

Warehouse location after the move. Omitted when the stock is Unallocated. references.locationName is the location name, and only the single-move response sets it.