Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /AssignStockToOrder

Allows 150 calls per minute

Response: List<OrderItemBatch>


Parameters

NameTypeDescription
requestAssignStockToOrderRequest

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/AssignStockToOrder

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "OrderId": "76b6d718-0a33-423d-a5ce-30377853ec33",
  "OrderItemRows": [
    "30c0b073-1d00-482a-9010-128b4a18437a"
  ],
  "BatchAssignmentMode": 0
}

Response

This is an example of the response JSON. Results will vary depending on your data.

[
  {
    "OrderItemBatchId": 1,
    "OrderItemRowId": "5a89010d-1f44-40f5-adf9-ca31d04eb51e",
    "BatchInventoryId": 3,
    "Quantity": 4,
    "Batch": {
      "BatchId": 1,
      "SKU": "sample string 2",
      "InventoryTrackingType": 3,
      "StockItemId": "f43abba1-9efe-4a79-8a34-03c81d8a362d",
      "BatchNumber": "sample string 5",
      "ExpiresOn": "2022-09-05T15:10:05.4644051+03:00",
      "SellBy": "2022-09-05T15:10:05.4644051+03:00",
      "Inventory": [
        {
          "BatchInventoryId": 1,
          "BatchId": 2,
          "StockLocationId": "863eaca1-e93d-4517-b4fb-a555590d627a",
          "BinRack": "sample string 4",
          "PrioritySequence": 5,
          "Quantity": 6,
          "StockValue": 7.0,
          "StartQuantity": 8,
          "PickedQuantity": 9,
          "BatchStatus": "Available",
          "IsDeleted": true,
          "WarehouseBinrackStandardType": 1,
          "WarehouseBinrackTypeName": "sample string 12",
          "InTransfer": 1,
          "BinRackId": 1,
          "WarehouseBinrackTypeId": 1
        }
      ],
      "IsDeleted": true
    },
    "DespatchUnitValue": 0.0,
    "AssignmentType": 0
  }
]