GET api/Customer/GetDetails?customerId={customerId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerDetailsName | Description | Type | Additional information |
---|---|---|---|
MarketingContactByEmail | boolean |
None. |
|
MarketingContactByPhone | boolean |
None. |
|
MarketingContactByPost | boolean |
None. |
|
MarketingContactBySMS | boolean |
None. |
|
PolicyContactByEmail | boolean |
None. |
|
PolicyContactByPhone | boolean |
None. |
|
PolicyContactByPost | boolean |
None. |
|
PolicyContactBySMS | boolean |
None. |
|
AddressLine1 | string |
None. |
|
AddressLine2 | string |
None. |
|
AddressLine3 | string |
None. |
|
CountryId | globally unique identifier |
None. |
|
County | string |
None. |
|
DateOfBirth | date |
None. |
|
DaytimeNumber | string |
None. |
|
EmailAddress | string |
Required |
|
EveningNumber | string |
None. |
|
FirstName | string |
None. |
|
HouseName | string |
None. |
|
HouseNumber | string |
None. |
|
Id | globally unique identifier |
None. |
|
IsLocked | boolean |
None. |
|
LastName | string |
None. |
|
MobileNumber | string |
None. |
|
PostCode | string |
None. |
|
TitleId | globally unique identifier |
None. |
|
Town | string |
None. |
|
Policies | Collection of LoyaltyPolicyResponse |
None. |
Response Formats
application/json, text/json
Sample:
{ "MarketingContactByEmail": true, "MarketingContactByPhone": true, "MarketingContactByPost": true, "MarketingContactBySMS": true, "PolicyContactByEmail": true, "PolicyContactByPhone": true, "PolicyContactByPost": true, "PolicyContactBySMS": true, "AddressLine1": "sample string 9", "AddressLine2": "sample string 10", "AddressLine3": "sample string 11", "CountryId": "7cc05c50-616b-448a-8be7-740996fe9fbb", "County": "sample string 12", "DateOfBirth": "2025-08-27T03:34:55.7331737+01:00", "DaytimeNumber": "sample string 13", "EmailAddress": "sample string 14", "EveningNumber": "sample string 15", "FirstName": "sample string 16", "HouseName": "sample string 17", "HouseNumber": "sample string 18", "Id": "08d120ce-97dd-4727-8b40-41b05a713c79", "IsLocked": true, "LastName": "sample string 20", "MobileNumber": "sample string 21", "PostCode": "sample string 22", "TitleId": "843101c7-0ba9-495b-9653-4d3af28c5064", "Town": "sample string 23", "Policies": [ { "PolicyId": "df71fccb-c658-4354-9d2a-3607766e2aca", "PolicyNumber": "sample string 2", "PolicyEffectiveFrom": "2025-08-27T03:34:55.7331737+01:00", "PolicyEffectiveTo": "2025-08-27T03:34:55.7331737+01:00", "Brand": "sample string 3", "Product": "sample string 4", "PetSpecies": "sample string 5", "PetDOB": "2025-08-27T03:34:55.7331737+01:00", "PetBreed": "sample string 6", "PetName": "sample string 7", "PetPhoto": { "Id": "9dea6643-6a83-4848-ab6f-a4e9dd425022", "FileExtension": "sample string 2", "Size": 3, "Data": "QEA=" } }, { "PolicyId": "df71fccb-c658-4354-9d2a-3607766e2aca", "PolicyNumber": "sample string 2", "PolicyEffectiveFrom": "2025-08-27T03:34:55.7331737+01:00", "PolicyEffectiveTo": "2025-08-27T03:34:55.7331737+01:00", "Brand": "sample string 3", "Product": "sample string 4", "PetSpecies": "sample string 5", "PetDOB": "2025-08-27T03:34:55.7331737+01:00", "PetBreed": "sample string 6", "PetName": "sample string 7", "PetPhoto": { "Id": "9dea6643-6a83-4848-ab6f-a4e9dd425022", "FileExtension": "sample string 2", "Size": 3, "Data": "QEA=" } } ] }
application/xml, text/xml
Sample:
<CustomerDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tss.Eitr.Customer.Agria.WebApi.Models"> <AddressLine1>sample string 9</AddressLine1> <AddressLine2>sample string 10</AddressLine2> <AddressLine3>sample string 11</AddressLine3> <CountryId>7cc05c50-616b-448a-8be7-740996fe9fbb</CountryId> <County>sample string 12</County> <DateOfBirth>2025-08-27T03:34:55.7331737+01:00</DateOfBirth> <DaytimeNumber>sample string 13</DaytimeNumber> <EmailAddress>sample string 14</EmailAddress> <EveningNumber>sample string 15</EveningNumber> <FirstName>sample string 16</FirstName> <HouseName>sample string 17</HouseName> <HouseNumber>sample string 18</HouseNumber> <Id>08d120ce-97dd-4727-8b40-41b05a713c79</Id> <IsLocked>true</IsLocked> <LastName>sample string 20</LastName> <MarketingContactByEmail>false</MarketingContactByEmail> <MarketingContactByPhone>false</MarketingContactByPhone> <MarketingContactByPost>false</MarketingContactByPost> <MarketingContactBySMS>false</MarketingContactBySMS> <MobileNumber>sample string 21</MobileNumber> <Policies> <LoyaltyPolicyResponse> <Brand>sample string 3</Brand> <PetBreed>sample string 6</PetBreed> <PetDOB>2025-08-27T03:34:55.7331737+01:00</PetDOB> <PetName>sample string 7</PetName> <PetPhoto> <Data>QEA=</Data> <FileExtension>sample string 2</FileExtension> <Id>9dea6643-6a83-4848-ab6f-a4e9dd425022</Id> <Size>3</Size> </PetPhoto> <PetSpecies>sample string 5</PetSpecies> <PolicyEffectiveFrom>2025-08-27T03:34:55.7331737+01:00</PolicyEffectiveFrom> <PolicyEffectiveTo>2025-08-27T03:34:55.7331737+01:00</PolicyEffectiveTo> <PolicyId>df71fccb-c658-4354-9d2a-3607766e2aca</PolicyId> <PolicyNumber>sample string 2</PolicyNumber> <Product>sample string 4</Product> </LoyaltyPolicyResponse> <LoyaltyPolicyResponse> <Brand>sample string 3</Brand> <PetBreed>sample string 6</PetBreed> <PetDOB>2025-08-27T03:34:55.7331737+01:00</PetDOB> <PetName>sample string 7</PetName> <PetPhoto> <Data>QEA=</Data> <FileExtension>sample string 2</FileExtension> <Id>9dea6643-6a83-4848-ab6f-a4e9dd425022</Id> <Size>3</Size> </PetPhoto> <PetSpecies>sample string 5</PetSpecies> <PolicyEffectiveFrom>2025-08-27T03:34:55.7331737+01:00</PolicyEffectiveFrom> <PolicyEffectiveTo>2025-08-27T03:34:55.7331737+01:00</PolicyEffectiveTo> <PolicyId>df71fccb-c658-4354-9d2a-3607766e2aca</PolicyId> <PolicyNumber>sample string 2</PolicyNumber> <Product>sample string 4</Product> </LoyaltyPolicyResponse> </Policies> <PostCode>sample string 22</PostCode> <TitleId>843101c7-0ba9-495b-9653-4d3af28c5064</TitleId> <Town>sample string 23</Town> <MarketingContactByEmail>true</MarketingContactByEmail> <MarketingContactByPhone>true</MarketingContactByPhone> <MarketingContactByPost>true</MarketingContactByPost> <MarketingContactBySMS>true</MarketingContactBySMS> <PolicyContactByEmail>true</PolicyContactByEmail> <PolicyContactByPhone>true</PolicyContactByPhone> <PolicyContactByPost>true</PolicyContactByPost> <PolicyContactBySMS>true</PolicyContactBySMS> </CustomerDetails>