POST v2/Customers
Create a customer
Request Information
URI Parameters
None.
Body Parameters
Lhp.EquipmentIntelligence.WebApi.Client.Models.CustomerCreateName | Description | Type | Additional information |
---|---|---|---|
ParentCustomerId |
Gets or sets the parent customer ID |
integer |
None. |
WebPortalMasterRoleId |
Gets or sets the master administrator web portal role ID. Creates a new master role if NULL. |
integer |
None. |
CustomerTypeId |
Gets or sets the customer type |
integer |
None. |
Name |
Gets or sets the customer name |
string |
None. |
AddressStreet |
Gets or sets the address street. |
string |
None. |
AddressCity |
Gets or sets the address city. |
string |
None. |
AddressStateId |
Gets or sets the address state identifier. |
string |
None. |
AddressStateProvince |
Gets or sets the address state province. |
string |
None. |
AddressPostalCode |
Gets or sets the address postal code. |
string |
None. |
AddressCountryId |
Gets or sets the address country identifier. |
string |
None. |
MainContactName |
Gets or sets the name of the main contact. |
string |
None. |
MainContactPhone |
Gets or sets the main contact phone. |
string |
None. |
MainContactFax |
Gets or sets the main contact fax. |
string |
None. |
MainContactEmail |
Gets or sets the main contact email. |
string |
None. |
ExternalReferenceKey |
Gets or sets the external reference key used by external agency to identify the customer. |
string |
None. |
Request Formats
application/json, text/json
{ "ParentCustomerId": 1, "WebPortalMasterRoleId": 1, "CustomerTypeId": 2, "Name": "sample string 3", "AddressStreet": "sample string 4", "AddressCity": "sample string 5", "AddressStateId": "sample string 6", "AddressStateProvince": "sample string 7", "AddressPostalCode": "sample string 8", "AddressCountryId": "sample string 9", "MainContactName": "sample string 10", "MainContactPhone": "sample string 11", "MainContactFax": "sample string 12", "MainContactEmail": "sample string 13", "ExternalReferenceKey": "sample string 14" }
application/xml, text/xml
<CustomerCreate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ParentCustomerId>1</ParentCustomerId> <WebPortalMasterRoleId>1</WebPortalMasterRoleId> <CustomerTypeId>2</CustomerTypeId> <Name>sample string 3</Name> <AddressStreet>sample string 4</AddressStreet> <AddressCity>sample string 5</AddressCity> <AddressStateId>sample string 6</AddressStateId> <AddressStateProvince>sample string 7</AddressStateProvince> <AddressPostalCode>sample string 8</AddressPostalCode> <AddressCountryId>sample string 9</AddressCountryId> <MainContactName>sample string 10</MainContactName> <MainContactPhone>sample string 11</MainContactPhone> <MainContactFax>sample string 12</MainContactFax> <MainContactEmail>sample string 13</MainContactEmail> <ExternalReferenceKey>sample string 14</ExternalReferenceKey> </CustomerCreate>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |