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.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/jsonAuthorization: Basic {base64 encoded username:password} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Content-Type: application/xml
  • XML
  • JSON
ENDPOINT DEFINITION
PUT
REQUEST BODY
                                    
                                        <Inventory>
	<InventoryId>{InventoryId}</InventoryId>
	<InventoryTypeId>{InventoryTypeId}</InventoryTypeId>
	<InventoryUniqueValue>{InventoryUniqueValue}</InventoryUniqueValue>
</Inventory>                                    
                                
                                                                        
                                        {
    "InventoryId": "{InventoryId}",
    "InventoryTypeId": "{InventoryTypeId}",
    "InventoryUniqueValue": "{InventoryUniqueValue}"
}                                    
                                                                    
RESPONSE BODY
                                    
                                        <?xml version="1.0" encoding="utf-8"?>
<string>Success</string>                                    
                                
                                                                        
                                        {
    "0": "Success"
}