This method gets the customer inventory types with customer relation. The client makes a GET request providing input parameters CompanyID, BusinessChannelID and LanguageID. The output will be either in json or xml format depending on the request type.
| Name | Value | |
|---|---|---|
| REST-API METHOD | GET CUSTOMER INVENTORY TYPES | |
| HTTP METHOD | GET | |
| RESPONSE TYPE | XML | |
| URL | https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/customerinventorytype.json/{businessChannelID}/{LangID} | https://api.csm.next4biz.net/services/InventoryService/{CompanyID}/customerinventorytype.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/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 |
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfInventoryType>
<InventoryType>
<CompanyId>{CompanyId}</CompanyId>
<InventoryTypeId>{InventoryTypeId}</InventoryTypeId>
<InventoryTypeName>{InventoryTypeName}</InventoryTypeName>
<IsRelatedToCustomer>{IsRelatedToCustomer}</IsRelatedToCustomer>
<LangID>{LangID}</LangID>
<IsMandatory>{TrueOrFalse}</IsMandatory>
<ShowInPrintout xsi:nil="true"/>
<ProviderId>{ProviderId}</ProviderId>
<IsInitialize>{TrueOrFalse}</IsInitialize>
<MergeOption>{MergeOption}</MergeOption>
</InventoryType>
</ArrayOfInventoryType>
{
"InventoryType": {
"CompanyId": "{CompanyId}",
"InventoryTypeId": "{InventoryTypeId}",
"InventoryTypeName": "{InventoryTypeName}",
"IsRelatedToCustomer": "{IsRelatedToCustomer}",
"LangID": "{LangID}",
"IsMandatory": "{TrueOrFalse}",
"ShowInPrintout": {},
"ProviderId": "{ProviderId}",
"IsInitialize": "{TrueOrFalse}",
"MergeOption": "{MergeOption}"
}
}