This method deletes inventory. The client makes a PUT request providing input parameters CompanyID and LanguageID. The output will be either in json or xml format depending on the request type.
| Name | Value | |
|---|---|---|
| REST-API METHOD | DELETE INVENTORY | |
| HTTP METHOD | PUT | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/deleteinventory.json/{LangID} | https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/deleteinventory.xml/{LangID} |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+json,application/json;q=0.9,*/*;q=0.8 Content-Type: application/json | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
<Inventory>
<InventoryId>{InventoryId}</InventoryId>
<InventoryTypeId>{InventoryTypeId}</InventoryTypeId>
<InventoryUniqueValue>{InventoryUniqueValue}</InventoryUniqueValue>
</Inventory>
{
"InventoryId": "{InventoryId}",
"InventoryTypeId": "{InventoryTypeId}",
"InventoryUniqueValue": "{InventoryUniqueValue}"
}
<?xml version="1.0" encoding="utf-8"?>
<string>Success</string>
{
"0": "Success"
}