Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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": "7c6e3a89-c8ac-495d-8e47-6bbde2d2656c",
  "OrderItemRows": [
    "b807e7e2-d6e9-4a33-bdde-7d9709fd3a3c"
  ],
  "BatchAssignmentMode": 0
}

Response

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

[
  {
    "OrderItemBatchId": 1,
    "OrderItemRowId": "f7a7fcfb-dc3d-455c-a03e-ab371891a9ed",
    "BatchInventoryId": 3,
    "Quantity": 4,
    "Batch": {
      "BatchId": 1,
      "SKU": "sample string 2",
      "InventoryTrackingType": 3,
      "StockItemId": "0c8692f9-8a5e-4a58-a96e-b2e9965f89c7",
      "BatchNumber": "sample string 5",
      "ExpiresOn": "2021-07-29T09:24:52.0534692+01:00",
      "SellBy": "2021-07-29T09:24:52.0534692+01:00",
      "Inventory": [
        {
          "BatchInventoryId": 0,
          "BatchId": 0,
          "StockLocationId": "00000000-0000-0000-0000-000000000000",
          "BinRack": "Available",
          "PrioritySequence": 0,
          "Quantity": 0,
          "StockValue": 0.0,
          "StartQuantity": 0,
          "PickedQuantity": 0,
          "BatchStatus": "Available",
          "IsDeleted": false,
          "WarehouseBinrackStandardType": null,
          "WarehouseBinrackTypeName": "Available",
          "InTransfer": null,
          "BinRackId": null,
          "WarehouseBinrackTypeId": null
        }
      ],
      "IsDeleted": true
    },
    "DespatchUnitValue": 0.0,
    "AssignmentType": 0
  }
]