Assign Stock to Orders
Name | Type | Description |
---|---|---|
request | AssignStockToOrdersRequest |
The following request format is required for this method.
POST https://eu-ext.linnworks.net//api/OpenOrders/AssignStockToOrders HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
request={
"OrderIds": [
"6e73dc99-981e-4ed1-9c79-d2370fc8d310",
"519bc035-99cc-48ba-88cf-5bc4a211a01a"
],
"BatchAssignmentMode": 0
}
This is an example response. Results may vary depending on your data.
{
"BatchActionResult": {
"ProcessedOrders": [
{
"pkOrderId": "e451ce05-017f-40b4-abac-b4fc6e6c8369",
"OrderId": "e451ce05-017f-40b4-abac-b4fc6e6c8369",
"Batches": [
{
"OrderItemBatchId": 1,
"OrderItemRowId": "191119f3-350e-484e-b779-2c851f6481fb",
"BatchInventoryId": 3,
"Quantity": 4,
"Batch": {
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "649530b5-c534-4731-8f02-1391b81487d1",
"BatchNumber": "sample string 5",
"ExpiresOn": "2021-02-21T11:27:23.7881226+00:00",
"SellBy": "2021-02-21T11:27:23.7881226+00:00",
"Inventory": [
null,
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "a6c0c319-f83a-475a-9e66-b0191c779c1a",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": false,
"WarehouseBinrackStandardType": null,
"WarehouseBinrackTypeName": null,
"InTransfer": null,
"BinRackId": null,
"WarehouseBinrackTypeId": null
}
],
"IsDeleted": true
},
"DespatchUnitValue": 0.0,
"AssignmentType": 0
},
{
"OrderItemBatchId": 1,
"OrderItemRowId": "191119f3-350e-484e-b779-2c851f6481fb",
"BatchInventoryId": 3,
"Quantity": 4,
"Batch": {
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "649530b5-c534-4731-8f02-1391b81487d1",
"BatchNumber": "sample string 5",
"ExpiresOn": "2021-02-21T11:27:23.7881226+00:00",
"SellBy": "2021-02-21T11:27:23.7881226+00:00",
"Inventory": [
null,
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "a6c0c319-f83a-475a-9e66-b0191c779c1a",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": false,
"WarehouseBinrackStandardType": null,
"WarehouseBinrackTypeName": null,
"InTransfer": null,
"BinRackId": null,
"WarehouseBinrackTypeId": null
}
],
"IsDeleted": true
},
"DespatchUnitValue": 0.0,
"AssignmentType": 0
}
]
},
{
"pkOrderId": "e451ce05-017f-40b4-abac-b4fc6e6c8369",
"OrderId": "e451ce05-017f-40b4-abac-b4fc6e6c8369",
"Batches": [
{
"OrderItemBatchId": 1,
"OrderItemRowId": "191119f3-350e-484e-b779-2c851f6481fb",
"BatchInventoryId": 3,
"Quantity": 4,
"Batch": {
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "649530b5-c534-4731-8f02-1391b81487d1",
"BatchNumber": "sample string 5",
"ExpiresOn": "2021-02-21T11:27:23.7881226+00:00",
"SellBy": "2021-02-21T11:27:23.7881226+00:00",
"Inventory": [
null,
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "a6c0c319-f83a-475a-9e66-b0191c779c1a",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": false,
"WarehouseBinrackStandardType": null,
"WarehouseBinrackTypeName": null,
"InTransfer": null,
"BinRackId": null,
"WarehouseBinrackTypeId": null
}
],
"IsDeleted": true
},
"DespatchUnitValue": 0.0,
"AssignmentType": 0
},
{
"OrderItemBatchId": 1,
"OrderItemRowId": "191119f3-350e-484e-b779-2c851f6481fb",
"BatchInventoryId": 3,
"Quantity": 4,
"Batch": {
"BatchId": 1,
"SKU": "sample string 2",
"InventoryTrackingType": 3,
"StockItemId": "649530b5-c534-4731-8f02-1391b81487d1",
"BatchNumber": "sample string 5",
"ExpiresOn": "2021-02-21T11:27:23.7881226+00:00",
"SellBy": "2021-02-21T11:27:23.7881226+00:00",
"Inventory": [
null,
{
"BatchInventoryId": 1,
"BatchId": 2,
"StockLocationId": "a6c0c319-f83a-475a-9e66-b0191c779c1a",
"BinRack": "sample string 4",
"PrioritySequence": 5,
"Quantity": 6,
"StockValue": 7.0,
"StartQuantity": 8,
"PickedQuantity": 9,
"BatchStatus": "Available",
"IsDeleted": false,
"WarehouseBinrackStandardType": null,
"WarehouseBinrackTypeName": null,
"InTransfer": null,
"BinRackId": null,
"WarehouseBinrackTypeId": null
}
],
"IsDeleted": true
},
"DespatchUnitValue": 0.0,
"AssignmentType": 0
}
]
}
],
"UnprocessedOrders": {
"sample string 1": [
"ca018f66-f6dd-48f1-96e1-8bf2b25816d8",
"541a56be-654d-4eb1-822a-57a4145b4d21"
],
"sample string 2": [
"9ef060c2-4641-411b-ba21-f86ea1310252",
"c02d0b8f-f242-43bc-bef5-b86081d5865c"
]
}
}
}