Delete Inventory
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.
If InventoryId field’s value on request body is smaller than zero or empty, you have to filled InventoryTypeId and InventoryUniqueValue fields.
| Name | Value |
|---|---|
| REST-API METHOD | DELETE INVENTORY |
| HTTP METHOD | PUT |
| RESPONSE TYPE | XML |
| URL | https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/deleteinventory.xml/{LangID} |
| REQUEST HEAD | Authorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml |
REQUEST BODY
<?xml version="1.0" encoding="utf-8"?>
<Inventory>
<InventoryId>{InventoryId}</InventoryId>
<!-- If InventoryId field's value is smaller than zero or empty, you have to filled following field -->
<InventoryTypeId>{InventoryTypeId}</InventoryTypeId>
<InventoryUniqueValue>{InventoryUniqueValue}</InventoryUniqueValue>
</Inventory>
RESPONSE BODY
<?xml version="1.0" encoding="utf-8"?>
<string>Success</string>