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

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": "555d84c9-d756-4270-8db6-5c0fcd769365",
  "OrderItemRows": [
    "67980c2c-6e55-495c-8eb3-9517737a30fc"
  ],
  "BatchAssignmentMode": 0
}

Response

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

[
  {
    "OrderItemBatchId": 1,
    "OrderItemRowId": "d472eb35-8264-46c0-9446-43e5e6fc92e2",
    "BatchInventoryId": 3,
    "Quantity": 4,
    "Batch": {
      "BatchId": 1,
      "SKU": "sample string 2",
      "InventoryTrackingType": 3,
      "StockItemId": "7f6356d6-d7a6-464b-a027-59c6e51aa12d",
      "BatchNumber": "sample string 5",
      "ExpiresOn": "2022-03-09T13:04:14.224628+00:00",
      "SellBy": "2022-03-09T13:04:14.224628+00:00",
      "Inventory": [
        {
          "BatchInventoryId": 1,
          "BatchId": 2,
          "StockLocationId": "03cbbb84-859a-4b87-8e73-27228f387b9e",
          "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
  }
]