Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /AddInventoryItemBulk

Allows 150 calls per minute

Response: BatchResult<Guid>



Use this call to add up to 200 stock items.

Parameters

NameTypeDescription
requestAddInventoryItemRequestRequest containing the list of items to be added.

Permissions

GlobalPermissions.Inventory.MyInventoryNode

Example Request

The following request format is required for this method.

Endpoint URL

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

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.

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": "9f0477fe-cddd-4a31-8b2c-b7257a321a57",
      "PostalServiceName": "sample string 9",
      "CategoryId": "27036a4a-99fe-401f-a36b-bcafd6237839",
      "CategoryName": "sample string 11",
      "PackageGroupId": "f28e2a13-a2da-4bcf-a7ce-aa6046f22042",
      "PackageGroupName": "sample string 13",
      "Height": 14.1,
      "Width": 15.1,
      "Depth": 16.1,
      "Weight": 17.1,
      "CreationDate": "2022-09-05T15:10:02.2269409+03:00",
      "InventoryTrackingType": 18,
      "BatchNumberScanRequired": true,
      "SerialNumberScanRequired": true,
      "StockItemId": "83f802da-e72e-404d-a2eb-14f389409dbd",
      "StockItemIntId": 22
    }
  ]
}

Response

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

{
  "Items": [
    {
      "Item": "dda8a0b2-bdaa-4280-8dbf-ff3de5580eea",
      "Result": 0,
      "Message": "sample string 2"
    }
  ],
  "TotalItems": 1,
  "OverallResult": 1
}