Back

Search

Search

Methods

Inventory

Orders

Inventory /GetInventoryItemBatchInformationByIds

Response: GetInventoryItemBatchInformationByIdsResponse


Parameters

NameTypeDescription
requestGetInventoryItemBatchInformationByIdsRequest

HTTP Endpoint

Server /Inventory / GetInventoryItemBatchInformationByIds

Permissions

GlobalPermissions.Inventory.Stock.StockReadNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/GetInventoryItemBatchInformationByIds 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={
  "StockItemIds": [
    "33b33330-3e88-4a91-ac1d-11e144a239ef",
    "cb004b9e-a6a1-4e46-ba5c-3c85e9f7d2d3"
  ],
  "StockLocationId": "c925135f-2923-4f40-959b-b65c8071bbfe",
  "AvailableOnly": true
}

Response

This is an example response. Results may vary depending on your data.

{
  "InventoryItemBatchInformation": [
    {
      "StockItemId": "bd1b96d3-0605-4225-897d-788ada29011a",
      "ItemBatchInformation": [
        {
          "BatchId": 1,
          "SKU": "sample string 2",
          "InventoryTrackingType": 3,
          "StockItemId": "1b1520ec-c752-421c-812e-32410680d74c",
          "BatchNumber": "sample string 5",
          "ExpiresOn": "2019-08-21T13:34:07.6241059+01:00",
          "SellBy": "2019-08-21T13:34:07.6241059+01:00",
          "Inventory": [
            null,
            {
              "BatchInventoryId": 1,
              "BatchId": 2,
              "StockLocationId": "857466dd-f09f-4658-acac-f8cbdaecd273",
              "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
            }
          ],
          "IsDeleted": true
        },
        {
          "BatchId": 1,
          "SKU": "sample string 2",
          "InventoryTrackingType": 3,
          "StockItemId": "1b1520ec-c752-421c-812e-32410680d74c",
          "BatchNumber": "sample string 5",
          "ExpiresOn": "2019-08-21T13:34:07.6241059+01:00",
          "SellBy": "2019-08-21T13:34:07.6241059+01:00",
          "Inventory": [
            null,
            {
              "BatchInventoryId": 1,
              "BatchId": 2,
              "StockLocationId": "857466dd-f09f-4658-acac-f8cbdaecd273",
              "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
            }
          ],
          "IsDeleted": true
        }
      ]
    },
    {
      "StockItemId": "bd1b96d3-0605-4225-897d-788ada29011a",
      "ItemBatchInformation": [
        {
          "BatchId": 1,
          "SKU": "sample string 2",
          "InventoryTrackingType": 3,
          "StockItemId": "1b1520ec-c752-421c-812e-32410680d74c",
          "BatchNumber": "sample string 5",
          "ExpiresOn": "2019-08-21T13:34:07.6241059+01:00",
          "SellBy": "2019-08-21T13:34:07.6241059+01:00",
          "Inventory": [
            null,
            {
              "BatchInventoryId": 1,
              "BatchId": 2,
              "StockLocationId": "857466dd-f09f-4658-acac-f8cbdaecd273",
              "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
            }
          ],
          "IsDeleted": true
        },
        {
          "BatchId": 1,
          "SKU": "sample string 2",
          "InventoryTrackingType": 3,
          "StockItemId": "1b1520ec-c752-421c-812e-32410680d74c",
          "BatchNumber": "sample string 5",
          "ExpiresOn": "2019-08-21T13:34:07.6241059+01:00",
          "SellBy": "2019-08-21T13:34:07.6241059+01:00",
          "Inventory": [
            null,
            {
              "BatchInventoryId": 1,
              "BatchId": 2,
              "StockLocationId": "857466dd-f09f-4658-acac-f8cbdaecd273",
              "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
            }
          ],
          "IsDeleted": true
        }
      ]
    }
  ]
}