Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Stock /BookInStockBatch

Allows 150 calls per minute

Response: StockItemBatch



Increases the stock level and current stock value of a batched stock item by the specified quantity

Parameters

NameTypeDescription
stockItemBatchedBookInBatch stock item

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Stock/BookInStockBatch

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.

stockItem={
  "SKU": "sample string 1",
  "BatchNumber": "sample string 2",
  "LocationId": "b6abb97e-70d4-4e9d-801b-39328e29247a",
  "BinRack": "sample string 4",
  "Quantity": 5,
  "StockValue": 6.0,
  "BatchStatus": "sample string 7",
  "PrioritySequence": 1,
  "ExpiresOn": "2022-09-05T15:10:00.7957953+03:00",
  "SellBy": "2022-09-05T15:10:00.7957953+03:00"
}

Response

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

{
  "BatchId": 1,
  "SKU": "sample string 2",
  "InventoryTrackingType": 3,
  "StockItemId": "49c6a89a-2e55-40d2-acb8-ee66556b56db",
  "BatchNumber": "sample string 5",
  "ExpiresOn": "2022-09-05T15:10:03.7793613+03:00",
  "SellBy": "2022-09-05T15:10:03.7793613+03:00",
  "Inventory": [
    {
      "BatchInventoryId": 1,
      "BatchId": 2,
      "StockLocationId": "12d1b60b-b21f-428a-872a-eae84842fc19",
      "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
}