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": "28d9eac0-12c3-4ade-9064-fe6eb7b70a31",
  "LocationId": "ea0b9e15-4ca9-4add-a922-d19eac924d16",
  "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": "0ff606f7-c67d-404e-b38e-e85962337e54",
      "BatchNumber": "sample string 5",
      "ExpiresOn": "2023-01-10T13:49:55.2120643+00:00",
      "SellBy": "2023-01-10T13:49:55.2120643+00:00",
      "Inventory": [
        {
          "BatchInventoryId": 1,
          "BatchId": 2,
          "StockLocationId": "0a6e6257-3a66-4227-b697-64baa38a4621",
          "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
    }
  ]
}