Back

Search

Search

Methods

Inventory

Orders

Inventory /CreateStockSupplierStat

Response: Void



Use this call to create item supplier stat

Parameters

NameTypeDescription
itemSuppliersList<StockItemSupplierStat>List of StockItemSupplierStat

HTTP Endpoint

Server /Inventory / CreateStockSupplierStat

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/CreateStockSupplierStat 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": "a845c6cf-deba-4da0-871c-453233568df7",
    "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": "c0d211d2-2939-4d7b-9105-f460def11c8a"
  },
  {
    "IsDefault": true,
    "Supplier": "sample string 2",
    "SupplierID": "a845c6cf-deba-4da0-871c-453233568df7",
    "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": "c0d211d2-2939-4d7b-9105-f460def11c8a"
  }
]

Response

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

null