Update Inventory

This method updates inventory. The client makes a POST 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 UPDATE INVENTORY
HTTP METHOD POST
RESPONSE TYPE XML
URL https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/updateinventory.json/{BusinessChannelID}/{LangID}https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/updateinventory.xml/{BusinessChannelID}/{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
POST
REQUEST BODY
                                    
                                        <Inventory>
	<InventoryId>{InventoryId}</InventoryId>
	<InventoryFieldValues>
		<InventoryFieldValue>
			<InventoryFieldId>{InventoryFieldId}</InventoryFieldId>
			<Value>{Value}</Value>
		</InventoryFieldValue>
	</InventoryFieldValues>
	<InventoryTypeId>{InventoryTypeId}</InventoryTypeId>
</Inventory>                                    
                                
                                                                        
                                        {
    "InventoryId": "{InventoryId}",
    "InventoryFieldValues": {
        "InventoryFieldValue": {
            "InventoryFieldId": "{InventoryFieldId}",
            "Value": "{Value}"
        }
    },
    "InventoryTypeId": "{InventoryTypeId}"
}                                    
                                                                    
RESPONSE BODY
                                    
                                        <?xml version="1.0" encoding="utf-8"?>
<string>Success</string>                                    
                                
                                                                        
                                        {
    "0": "Success"
}