Inventory

GetBatchesByStockItemId

Used to get batch info for stock item for all locations <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>250</b></span> / minute

get/api/Inventory/GetBatchesByStockItemId

Request

  • Base URL
    https://eu-ext.linnworks.net
  • URL
    https://eu-ext.linnworks.net/api/Inventory/GetBatchesByStockItemId
  • Auth
    API key in header Authorization

Query parameters

stockItemIdstring uuid

Item id

onlyAvailableboolean

If true, only available batches will be returned

stockLocationIdstring uuid

Response

OK

BatchIdinteger

Batch ID

SKUstring

Product SKU

InventoryTrackingTypeinteger

0 - None, 1 - Order by sell by date, 2 - Ordered by priority sequence

StockItemIdstring uuid

Product ID

BatchNumberstring

Batch number

ExpiresOnstring date-time

Batch expiry date

SellBystring date-time

Batch sell by date

IsDeletedboolean

Is the batch deleted

Example response

[
  {
    "StockItemId": "00000000-0000-0000-0000-000000000000",
    "Inventory": [
      {
        "StockLocationId": "00000000-0000-0000-0000-000000000000"
      }
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.