Use this call to add up to 200 stock items.
Name | Type | Description |
---|---|---|
request | AddInventoryItemRequest | Request containing the list of items to be added. |
The following request format is required for this method.
POST https://eu-ext.linnworks.net/api/Inventory/AddInventoryItemBulk
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
This is an example of the request structure. Results will vary depending on your data.
request={
"InventoryItems": [
{
"ItemNumber": "sample string 1",
"ItemTitle": "sample string 2",
"BarcodeNumber": "sample string 3",
"MetaData": "sample string 4",
"IsVariationParent": true,
"isBatchedStockType": false,
"PurchasePrice": 6.1,
"RetailPrice": 1.1,
"TaxRate": 7.1,
"PostalServiceId": "d9de638c-61d7-4436-ab40-b6b615d0deb6",
"PostalServiceName": "sample string 9",
"CategoryId": "5ecc23b6-d767-4129-a325-c832ceb34f40",
"CategoryName": "sample string 11",
"PackageGroupId": "0ace5454-9d56-4bab-96a0-37ec97472455",
"PackageGroupName": "sample string 13",
"Height": 14.1,
"Width": 15.1,
"Depth": 16.1,
"Weight": 17.1,
"CreationDate": "2023-01-10T13:49:46.2875846+00:00",
"InventoryTrackingType": 18,
"BatchNumberScanRequired": true,
"SerialNumberScanRequired": true,
"StockItemId": "72ae20bf-9540-4eee-9494-86ed853c24c6",
"StockItemIntId": 22
}
]
}
This is an example of the response JSON. Results will vary depending on your data.
{
"Items": [
{
"Item": "c77f1cdc-1621-4d02-9c02-cd02b7a23ba0",
"Result": 0,
"Message": "sample string 2"
}
],
"TotalItems": 1,
"Result": 1
}