Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Orders /GetOrderItemBatchesByOrderIds

Allows 150 calls per minute

Response: GetOrderItemBatchesByOrderIdsResponse



Get a list of order item batch information for the specified orders

Parameters

NameTypeDescription
requestGetOrderItemBatchesByOrderIdsRequestMade up of list of pkOrderIds

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Orders/GetOrderItemBatchesByOrderIds

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={
  "pkOrderIds": [
    "7d7632eb-70d9-49c8-b706-422b7c823d77"
  ]
}

Response

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

{
  "OrderBatches": [
    {
      "pkOrderId": "ae13f6ad-0fe1-4214-afb2-e2207768a272",
      "OrderId": "ae13f6ad-0fe1-4214-afb2-e2207768a272",
      "Batches": [
        {
          "OrderItemBatchId": 1,
          "OrderItemRowId": "82f0d284-ddcb-41e6-98b4-fc1105e8e05e",
          "BatchInventoryId": 3,
          "Quantity": 4,
          "Batch": {
            "BatchId": 1,
            "SKU": "sample string 2",
            "InventoryTrackingType": 3,
            "StockItemId": "80261539-7fac-4d22-96e9-fb7404e9824b",
            "BatchNumber": "sample string 5",
            "ExpiresOn": "2021-07-29T09:24:51.3042733+01:00",
            "SellBy": "2021-07-29T09:24:51.3042733+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
        }
      ]
    }
  ]
}