Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

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

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": "908dec37-2fb2-4ca2-827b-3fab8bd760e6",
  "BinRack": "sample string 4",
  "Quantity": 5,
  "StockValue": 6.0,
  "BatchStatus": "sample string 7",
  "PrioritySequence": 1,
  "ExpiresOn": "2021-07-29T09:24:12.2845656+01:00",
  "SellBy": "2021-07-29T09:24:12.2845656+01: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": "570a021e-17bd-4cb1-81fc-d2a0d29333aa",
  "BatchNumber": "sample string 5",
  "ExpiresOn": "2021-07-29T09:24:42.9692282+01:00",
  "SellBy": "2021-07-29T09:24:42.9692282+01:00",
  "Inventory": [
    {
      "BatchInventoryId": 0,
      "BatchId": 0,
      "StockLocationId": "00000000-0000-0000-0000-000000000000",
      "BinRack": "Available",
      "PrioritySequence": 0,
      "Quantity": 0,
      "StockValue": 0.0,
      "StartQuantity": 0,
      "PickedQuantity": 0,
      "BatchStatus": "Available",
      "IsDeleted": false,
      "WarehouseBinrackStandardType": null,
      "WarehouseBinrackTypeName": "Available",
      "InTransfer": null,
      "BinRackId": null,
      "WarehouseBinrackTypeId": null
    }
  ],
  "IsDeleted": true
}