GET v2/CustomerTypes/ForCustomer/{customerId}
Get the list of customer types that the requested customer ID may create as child customers.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Lhp.EquipmentIntelligence.WebApi.Client.Models.CustomerTypeName | Description | Type | Additional information |
---|---|---|---|
CustomerTypeId |
Uniquely identifies this customer type. |
integer |
None. |
ParentCustomerTypeId |
Unique identifier of the customer type that is a parent to this customer type. Customer types may describe a hierarchy such as OEM->Distributor->Reseller. |
integer |
None. |
CustomerId |
Unique identifier of the customer that created and owns control of this customer type definition. |
integer |
None. |
Name |
Name of this customer type. |
string |
None. |
IsFleetOwner |
Indicates if a customer of this type may own a fleet of assets. |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CustomerTypeId": 1, "ParentCustomerTypeId": 2, "CustomerId": 3, "Name": "sample string 4", "IsFleetOwner": true }, { "CustomerTypeId": 1, "ParentCustomerTypeId": 2, "CustomerId": 3, "Name": "sample string 4", "IsFleetOwner": true } ]
application/xml, text/xml
Sample:
<ArrayOfCustomerType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CustomerType> <CustomerTypeId>1</CustomerTypeId> <ParentCustomerTypeId>2</ParentCustomerTypeId> <CustomerId>3</CustomerId> <Name>sample string 4</Name> <IsFleetOwner>true</IsFleetOwner> </CustomerType> <CustomerType> <CustomerTypeId>1</CustomerTypeId> <ParentCustomerTypeId>2</ParentCustomerTypeId> <CustomerId>3</CustomerId> <Name>sample string 4</Name> <IsFleetOwner>true</IsFleetOwner> </CustomerType> </ArrayOfCustomerType>