Back

Search

Search

Methods

Inventory

Orders

Inventory /UpdateStockSupplierStat

Response: Void



Use this call to update item supplier stat

Parameters

NameTypeDescription
itemSuppliersList<StockItemSupplierStat>List of StockItemSupplierStat

HTTP Endpoint

Server /Inventory / UpdateStockSupplierStat

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/UpdateStockSupplierStat 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

itemSuppliers=[
  {
    "IsDefault": true,
    "Supplier": "sample string 2",
    "SupplierID": "4c58bb0b-c374-4a5d-ba33-b4d9a81b3be8",
    "Code": "sample string 4",
    "SupplierBarcode": "sample string 5",
    "LeadTime": 6,
    "PurchasePrice": 7.1,
    "MinPrice": 8.1,
    "MaxPrice": 9.1,
    "AveragePrice": 10.1,
    "AverageLeadTime": 11.1,
    "SupplierMinOrderQty": 12,
    "SupplierPackSize": 13,
    "SupplierCurrency": "sample string 14",
    "StockItemId": "f095fbb3-5c18-42e8-8e26-7377008cfc52"
  },
  {
    "IsDefault": true,
    "Supplier": "sample string 2",
    "SupplierID": "4c58bb0b-c374-4a5d-ba33-b4d9a81b3be8",
    "Code": "sample string 4",
    "SupplierBarcode": "sample string 5",
    "LeadTime": 6,
    "PurchasePrice": 7.1,
    "MinPrice": 8.1,
    "MaxPrice": 9.1,
    "AveragePrice": 10.1,
    "AverageLeadTime": 11.1,
    "SupplierMinOrderQty": 12,
    "SupplierPackSize": 13,
    "SupplierCurrency": "sample string 14",
    "StockItemId": "f095fbb3-5c18-42e8-8e26-7377008cfc52"
  }
]

Response

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

null