GET api/Customers/{id}

Returns a single customer. If the customer is not found, an empty customer record will be returned.

Request Information

Parameters

NameDescriptionAdditional information
id
The id of the customer to retrieve.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Name": "sample string 2",
  "ApiKey": "sample string 3",
  "Role": "sample string 4"
}

text/javascript

Sample:
{"CustomerId":1,"Name":"sample string 2","ApiKey":"sample string 3","Role":"sample string 4"}

text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaseTeam.AddressApi.Domain.Entities">
  <ApiKey>sample string 3</ApiKey>
  <CustomerId>1</CustomerId>
  <Name>sample string 2</Name>
  <Role>sample string 4</Role>
</Customer>