Back

Search

Search

Methods

Inventory

Orders

Inventory /ArchiveInventoryItems

Response: Void



Use this call to archive inventory items. Send only list of IDs and empty list of regions.

Parameters

NameTypeDescription
parametersInventoryParametersRequestInventoryParameters object

HTTP Endpoint

Server /Inventory / ArchiveInventoryItems

Permissions


Example Code

Example Request

The following request format is required for this method.

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

parameters={
  "InventoryItemIds": [
    "c9d9c3f9-9e44-4863-9457-cc41092dcd46",
    "fb1ab54b-992b-4d6f-accf-492d796acd3e"
  ],
  "SelectedRegions": [
    {
      "Item1": 1,
      "Item2": 2
    },
    {
      "Item1": 1,
      "Item2": 2
    }
  ],
  "Token": "5f0c1892-54c1-4b83-9edd-052b390d8e8e"
}

Response

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

null