Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /UpdateBatchesWithInventory

Allows 150 calls per minute

Response: Void



Used to update batches and batch inventory info

Parameters

NameTypeDescription
batchesIEnumerable<StockItemBatch>List of batches to update

Permissions

GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockItemDetailsNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Inventory/UpdateBatchesWithInventory

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.

batches=[
  {
    "BatchId": 1,
    "SKU": "sample string 2",
    "InventoryTrackingType": 3,
    "StockItemId": "35211114-c2f4-4284-8266-f3593e5e2951",
    "BatchNumber": "sample string 5",
    "ExpiresOn": "2022-03-09T13:04:03.0134335+00:00",
    "SellBy": "2022-03-09T13:04:03.0134335+00:00",
    "Inventory": [
      {
        "BatchInventoryId": 1,
        "BatchId": 2,
        "StockLocationId": "2ea2e5b4-715b-4000-9589-6dfdf6e4f873",
        "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
  }
]

Response

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