Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /GetStockItemBatchesByLocation

Allows 150 calls per minute

Response: GetStockItemBatchesByLocationResponse



Used to get batch info by stock item id and location id

Parameters

NameTypeDescription
requestGetStockItemBatchesByLocationRequestContains Guid StockItemId, Guid LocationId, bool OnlyAvailable

Permissions

GlobalPermissions.Inventory.MyInventoryNode

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Inventory/GetStockItemBatchesByLocation

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={
  "StockItemId": "3182e7a5-f47d-465f-9fd2-5a54fa3c0e15",
  "LocationId": "731b302c-b651-4067-b777-9472bb429b6b",
  "OnlyAvailable": true
}

Response

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

{
  "Batches": [
    {
      "BatchId": 1,
      "SKU": "sample string 2",
      "InventoryTrackingType": 3,
      "StockItemId": "2c197f69-16f8-4bdd-8803-034353769cd3",
      "BatchNumber": "sample string 5",
      "ExpiresOn": "2022-09-05T15:10:06.1700853+03:00",
      "SellBy": "2022-09-05T15:10:06.1700853+03:00",
      "Inventory": [
        {
          "BatchInventoryId": 1,
          "BatchId": 2,
          "StockLocationId": "8f9cc5b5-4593-4214-8aca-f55e0d974d04",
          "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
    }
  ]
}