POST api/Customer/UpdateDetails
Request Information
URI Parameters
None.
Body Parameters
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. |
Request 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": "93a846df-d624-4ac1-8381-175bfe1aaf1d", "County": "sample string 12", "DateOfBirth": "2025-08-27T03:32:50.6228343+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": "30760f44-2339-4914-9463-a1fcc0c5a67a", "IsLocked": true, "LastName": "sample string 20", "MobileNumber": "sample string 21", "PostCode": "sample string 22", "TitleId": "0b0ee996-9042-4b49-a6e5-5abe8a1564d5", "Town": "sample string 23", "Policies": [ { "PolicyId": "a02f94da-dda3-4f35-ae6d-1994b464bd07", "PolicyNumber": "sample string 2", "PolicyEffectiveFrom": "2025-08-27T03:32:50.6228343+01:00", "PolicyEffectiveTo": "2025-08-27T03:32:50.6228343+01:00", "Brand": "sample string 3", "Product": "sample string 4", "PetSpecies": "sample string 5", "PetDOB": "2025-08-27T03:32:50.6228343+01:00", "PetBreed": "sample string 6", "PetName": "sample string 7", "PetPhoto": { "Id": "08ea96ad-770d-4ef0-a6c1-35f1b247279b", "FileExtension": "sample string 2", "Size": 3, "Data": "QEA=" } }, { "PolicyId": "a02f94da-dda3-4f35-ae6d-1994b464bd07", "PolicyNumber": "sample string 2", "PolicyEffectiveFrom": "2025-08-27T03:32:50.6228343+01:00", "PolicyEffectiveTo": "2025-08-27T03:32:50.6228343+01:00", "Brand": "sample string 3", "Product": "sample string 4", "PetSpecies": "sample string 5", "PetDOB": "2025-08-27T03:32:50.6228343+01:00", "PetBreed": "sample string 6", "PetName": "sample string 7", "PetPhoto": { "Id": "08ea96ad-770d-4ef0-a6c1-35f1b247279b", "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>93a846df-d624-4ac1-8381-175bfe1aaf1d</CountryId> <County>sample string 12</County> <DateOfBirth>2025-08-27T03:32:50.6228343+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>30760f44-2339-4914-9463-a1fcc0c5a67a</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:32:50.6228343+01:00</PetDOB> <PetName>sample string 7</PetName> <PetPhoto> <Data>QEA=</Data> <FileExtension>sample string 2</FileExtension> <Id>08ea96ad-770d-4ef0-a6c1-35f1b247279b</Id> <Size>3</Size> </PetPhoto> <PetSpecies>sample string 5</PetSpecies> <PolicyEffectiveFrom>2025-08-27T03:32:50.6228343+01:00</PolicyEffectiveFrom> <PolicyEffectiveTo>2025-08-27T03:32:50.6228343+01:00</PolicyEffectiveTo> <PolicyId>a02f94da-dda3-4f35-ae6d-1994b464bd07</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:32:50.6228343+01:00</PetDOB> <PetName>sample string 7</PetName> <PetPhoto> <Data>QEA=</Data> <FileExtension>sample string 2</FileExtension> <Id>08ea96ad-770d-4ef0-a6c1-35f1b247279b</Id> <Size>3</Size> </PetPhoto> <PetSpecies>sample string 5</PetSpecies> <PolicyEffectiveFrom>2025-08-27T03:32:50.6228343+01:00</PolicyEffectiveFrom> <PolicyEffectiveTo>2025-08-27T03:32:50.6228343+01:00</PolicyEffectiveTo> <PolicyId>a02f94da-dda3-4f35-ae6d-1994b464bd07</PolicyId> <PolicyNumber>sample string 2</PolicyNumber> <Product>sample string 4</Product> </LoyaltyPolicyResponse> </Policies> <PostCode>sample string 22</PostCode> <TitleId>0b0ee996-9042-4b49-a6e5-5abe8a1564d5</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>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.