Back

Search

Search

Methods

Inventory

Orders

Inventory /UpdateInventoryItem

Response: Void



Use this call to update stock item with images

Parameters

NameTypeDescription
inventoryItemStockItemInvInventory item object

HTTP Endpoint

Server /Inventory / UpdateInventoryItem

Permissions

GlobalPermissions.Inventory.Stock.StockWrite.ChangeStockItemDetailsNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/UpdateInventoryItem HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

inventoryItem={
  "VariationGroupName": "sample string 1",
  "Quantity": 1,
  "InOrder": 2,
  "Due": 3,
  "MinimumLevel": 4,
  "Available": -1,
  "CreationDate": "2018-10-03T11:12:34.0912222+01:00",
  "IsCompositeParent": true,
  "ItemNumber": "sample string 5",
  "ItemTitle": "sample string 6",
  "BarcodeNumber": "sample string 7",
  "MetaData": "sample string 8",
  "isBatchedStockType": false,
  "PurchasePrice": 9.1,
  "RetailPrice": 1.1,
  "TaxRate": 10.1,
  "PostalServiceId": "c1c774b4-8622-40b7-97c0-1cfde7bb50e4",
  "PostalServiceName": "sample string 12",
  "CategoryId": "7134f02d-be33-4f20-bafe-f6f9e0cfd710",
  "CategoryName": "sample string 14",
  "PackageGroupId": "0febf4f2-840a-4dab-bb63-4788d1e7b6d7",
  "PackageGroupName": "sample string 16",
  "Height": 17.1,
  "Width": 18.1,
  "Depth": 19.1,
  "Weight": 20.1,
  "InventoryTrackingType": 21,
  "BatchNumberScanRequired": true,
  "SerialNumberScanRequired": true,
  "StockItemId": "3598f620-f423-445d-8f1d-bb841ca3e423"
}

Response

This is an example response. Results may vary depending on your data.

null