Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Stock /AddRollingStockTake

Allows 150 calls per minute

Response: AddRollingStockTakeResponse



Add rolling stock take/count. Rolling stock count will create a stock count header for every day (UTC based). Every request will create a session, adds all entries into the stock count
recounts all totals and discrepancies. WMS location or batched items requires BatchInventoryId to be specified. If you are submitting stock level for item that doesn't have batch inventory you must create it first, get its id and submit in the count
The method validates all entries, if any errors encountered the whole request will be rejected.

Parameters

NameTypeDescription
requestAddRollingStockTakeRequest

Permissions

GlobalPermissions.Inventory.StockTake.RollingStockCountNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Stock/AddRollingStockTake

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={
  "LocationId": "710c40c6-eb72-42b8-a2be-1a3930a7d2d6",
  "SessionDuriationSeconds": 1,
  "Items": [
    {
      "BinRack": "sample string 1",
      "PickingWaveItems": [
        {
          "PickingWaveItemsRowId": 1,
          "PickingWaveId": 2,
          "UserName": "sample string 3",
          "ToPickQuantity": 4,
          "PickedQuantity": 5,
          "StockItemId": "fc30ee56-1dae-497a-9992-33fb6d15a720",
          "OrderId": 7,
          "UserId": 1
        }
      ],
      "StockItemId": "a0f1b4e4-e1c1-4885-b5f1-4d3029944585",
      "Quantity": 2,
      "OriginalQuantity": 1,
      "StockValue": 1.0,
      "BatchInventoryId": 1
    }
  ]
}

Response

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

{
  "ErroredItems": [
    {
      "BinRack": "sample string 1",
      "PickingWaveItems": [
        {
          "PickingWaveItemsRowId": 1,
          "PickingWaveId": 2,
          "UserName": "sample string 3",
          "ToPickQuantity": 4,
          "PickedQuantity": 5,
          "StockItemId": "547b3ce7-df81-4d6a-b13d-af583c26502d",
          "OrderId": 7,
          "UserId": 1
        }
      ],
      "Errors": [
        "sample string 1"
      ],
      "StockItemId": "cea215fe-143b-4938-a538-696bf6237e46",
      "Quantity": 2,
      "OriginalQuantity": 1,
      "StockValue": 1.0,
      "BatchInventoryId": 1
    }
  ]
}