POST Customer/get
Request Information
URI Parameters
None.
Body Parameters
GetCustomerRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| customerID | integer |
Required |
|
| token | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"customerID": 1,
"token": "a2cf9fc0-ca24-4243-bcf1-d5214c755bda"
}
application/xml, text/xml
Sample:
<GetCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.Customer"> <token xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models">a2cf9fc0-ca24-4243-bcf1-d5214c755bda</token> <customerID>1</customerID> </GetCustomerRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetCustomerResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| error | string |
None. |
|
| Customer | CustomerItem |
None. |
|
| APIVersion | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Customer": {
"CustomerID": 1,
"FirstName": "sample string 2",
"MiddleName": "sample string 3",
"LastName": "sample string 4",
"CompanyName": "sample string 5",
"Address": "sample string 6",
"Address2": "sample string 7",
"City": "sample string 8",
"State": "sample string 9",
"ZipCode": "sample string 10",
"HomePhone": "sample string 11",
"WorkPhone": "sample string 12",
"CellPhone": "sample string 13",
"Email": "sample string 14"
},
"APIVersion": 1,
"code": 200,
"error": "sample string 1"
}
application/xml, text/xml
Sample:
<GetCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.Customer">
<APIVersion xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">1</APIVersion>
<error xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">sample string 1</error>
<Customer>
<Address>sample string 6</Address>
<Address2>sample string 7</Address2>
<CellPhone>sample string 13</CellPhone>
<City>sample string 8</City>
<CompanyName>sample string 5</CompanyName>
<CustomerID>1</CustomerID>
<Email>sample string 14</Email>
<FirstName>sample string 2</FirstName>
<HomePhone>sample string 11</HomePhone>
<LastName>sample string 4</LastName>
<MiddleName>sample string 3</MiddleName>
<State>sample string 9</State>
<WorkPhone>sample string 12</WorkPhone>
<ZipCode>sample string 10</ZipCode>
</Customer>
</GetCustomerResponse>