POST api/Customer/CreateOrUpdate
Request Information
URI Parameters
None.
Body Parameters
Customer| Name | Description | Type | Additional information |
|---|---|---|---|
| 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. |
|
| MarketingContactByEmail | boolean |
None. |
|
| MarketingContactByPhone | boolean |
None. |
|
| MarketingContactBySMS | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "9ed03edf-57e3-4026-9f6c-db9328658e08",
"County": "sample string 4",
"DateOfBirth": "2026-02-04T01:04:54.9939458+00:00",
"DaytimeNumber": "sample string 5",
"EmailAddress": "sample string 6",
"EveningNumber": "sample string 7",
"FirstName": "sample string 8",
"HouseName": "sample string 9",
"HouseNumber": "sample string 10",
"Id": "79baba31-f62b-4206-9c6c-bca2da4fd684",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "e98b3926-955e-4723-8389-0d1b3399cc83",
"Town": "sample string 15",
"MarketingContactByEmail": true,
"MarketingContactByPhone": true,
"MarketingContactBySMS": true
}
application/xml, text/xml
Sample:
<Customer 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 1</AddressLine1> <AddressLine2>sample string 2</AddressLine2> <AddressLine3>sample string 3</AddressLine3> <CountryId>9ed03edf-57e3-4026-9f6c-db9328658e08</CountryId> <County>sample string 4</County> <DateOfBirth>2026-02-04T01:04:54.9939458+00:00</DateOfBirth> <DaytimeNumber>sample string 5</DaytimeNumber> <EmailAddress>sample string 6</EmailAddress> <EveningNumber>sample string 7</EveningNumber> <FirstName>sample string 8</FirstName> <HouseName>sample string 9</HouseName> <HouseNumber>sample string 10</HouseNumber> <Id>79baba31-f62b-4206-9c6c-bca2da4fd684</Id> <IsLocked>true</IsLocked> <LastName>sample string 12</LastName> <MarketingContactByEmail>true</MarketingContactByEmail> <MarketingContactByPhone>true</MarketingContactByPhone> <MarketingContactBySMS>true</MarketingContactBySMS> <MobileNumber>sample string 13</MobileNumber> <PostCode>sample string 14</PostCode> <TitleId>e98b3926-955e-4723-8389-0d1b3399cc83</TitleId> <Town>sample string 15</Town> </Customer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
QuoteBasketResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| AdditionalPolicyHolder | Collection of AuthorityToDeal |
None. |
|
| AffiliateId | globally unique identifier |
None. |
|
| AnnualRate | decimal number |
None. |
|
| AvailableCollectionDays | Collection of integer |
None. |
|
| BasketId | globally unique identifier |
None. |
|
| BrandId | globally unique identifier |
None. |
|
| CampaignId | globally unique identifier |
None. |
|
| Customer | Customer |
None. |
|
| Discount | Discount |
None. |
|
| DiscountedRate | decimal number |
None. |
|
| Id | globally unique identifier |
None. |
|
| InsurancePremiumTaxPercentage | decimal number |
None. |
|
| InsurancePremiumTaxValue | decimal number |
None. |
|
| IsRenewalQuote | boolean |
None. |
|
| MonthlyRate | decimal number |
None. |
|
| MultipetPercentage | decimal number |
None. |
|
| MultipetAmount | decimal number |
None. |
|
| PaymentSchedule | Collection of PaymentScheduleItem |
None. |
|
| Pet | Pet |
None. |
|
| PolicyNumber | string |
None. |
|
| PolicyStartDate | date |
None. |
|
| ProductId | globally unique identifier |
None. |
|
| PromoCode | string |
None. |
|
| QuoteNotificationSent | boolean |
None. |
|
| QuoteReference | string |
None. |
|
| SelectedCoverOptionId | globally unique identifier |
None. |
|
| TermsAgreed | boolean |
None. |
|
| TotalBasketPrice | decimal number |
None. |
|
| SelectedExtras | Collection of globally unique identifier |
None. |
|
| SelectedFixedExcessId | globally unique identifier |
None. |
|
| SelectedVariableExcessId | globally unique identifier |
None. |
|
| MicrochipDiscount | decimal number |
None. |
|
| MultipetDiscountFlatFee | decimal number |
None. |
|
| OnlineDiscount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"AdditionalPolicyHolder": [
{
"AuthorityTypeId": "202eda91-c14c-467c-a0d4-feb279a1d15f",
"CustomerId": "c753268c-e389-4378-9aab-46f5fe1a2b50",
"DateFrom": "2026-02-04T01:04:54.9939458+00:00",
"DateOfBirth": "2026-02-04T01:04:54.9939458+00:00",
"DateTo": "2026-02-04T01:04:54.9939458+00:00",
"FirstName": "sample string 2",
"Id": "9e0592b1-00d6-490e-8981-993343d0dd87",
"LastName": "sample string 3",
"PolicyId": "587b724d-052a-43d2-b432-2dcfd04bf2d9",
"PolicyNo": "sample string 4",
"RelationshipId": "8541812f-1d3b-4dcd-a534-e6651dc45e84",
"TitleId": "947bb06b-f475-4867-b648-182bbf68086f"
},
{
"AuthorityTypeId": "202eda91-c14c-467c-a0d4-feb279a1d15f",
"CustomerId": "c753268c-e389-4378-9aab-46f5fe1a2b50",
"DateFrom": "2026-02-04T01:04:54.9939458+00:00",
"DateOfBirth": "2026-02-04T01:04:54.9939458+00:00",
"DateTo": "2026-02-04T01:04:54.9939458+00:00",
"FirstName": "sample string 2",
"Id": "9e0592b1-00d6-490e-8981-993343d0dd87",
"LastName": "sample string 3",
"PolicyId": "587b724d-052a-43d2-b432-2dcfd04bf2d9",
"PolicyNo": "sample string 4",
"RelationshipId": "8541812f-1d3b-4dcd-a534-e6651dc45e84",
"TitleId": "947bb06b-f475-4867-b648-182bbf68086f"
}
],
"AffiliateId": "7b530ba5-ee81-4f85-9b5a-fd72e3830614",
"AnnualRate": 1.0,
"AvailableCollectionDays": [
1,
2
],
"BasketId": "3846ef5b-1d9e-493a-a60f-162a3d1e6150",
"BrandId": "85768869-171c-4ab3-8bd5-df7b34ea7413",
"CampaignId": "235c7385-c17a-4477-ac91-7e58091b91b6",
"Customer": {
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "0c7134d5-9eaa-460e-81fe-197087a4d0b6",
"County": "sample string 4",
"DateOfBirth": "2026-02-04T01:04:54.9939458+00:00",
"DaytimeNumber": "sample string 5",
"EmailAddress": "sample string 6",
"EveningNumber": "sample string 7",
"FirstName": "sample string 8",
"HouseName": "sample string 9",
"HouseNumber": "sample string 10",
"Id": "a9aa41b5-7af3-49e3-9644-41b0048c6945",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "93dd94eb-c395-44f6-a402-a99298d4ecc1",
"Town": "sample string 15",
"MarketingContactByEmail": true,
"MarketingContactByPhone": true,
"MarketingContactBySMS": true
},
"Discount": {
"Amount": 1.0,
"ApplyAtEnd": true,
"ApplyAtStart": true,
"Code": "sample string 4",
"Description": "sample string 5",
"Id": "02f87d73-b1da-48b0-ab9a-81da47e97cd0",
"IsPercentage": true,
"Monthly": true,
"NumberOfMonths": 9
},
"DiscountedRate": 1.0,
"Id": "f8353d79-75d7-4d0a-bf5e-fe79b78d4c9e",
"InsurancePremiumTaxPercentage": 1.0,
"InsurancePremiumTaxValue": 1.0,
"IsRenewalQuote": true,
"MonthlyRate": 1.0,
"MultipetPercentage": 1.0,
"MultipetAmount": 1.0,
"PaymentSchedule": [
{
"Amount": 1.0,
"CollectionDate": "2026-02-04T01:04:54.9939458+00:00"
},
{
"Amount": 1.0,
"CollectionDate": "2026-02-04T01:04:54.9939458+00:00"
}
],
"Pet": {
"IsNextVacVetChecked": true,
"BreedId": "23bae134-7fb4-41e9-871c-d6860550107b",
"Cost": 1.0,
"DateOfBirth": "2026-02-04T01:04:54.9939458+00:00",
"DateOfBirthExact": true,
"GenderId": "2d9cd103-2ca5-4636-965b-23fdc63cb74d",
"HadPriorThirdPartyLiabilityClaim": true,
"Id": "b2caa3be-96a4-4c78-96a9-0cf4da77294b",
"IllnessOrInjury": true,
"LastVaccinatedDate": "2026-02-04T01:04:54.9939458+00:00",
"MicrochipNumber": "sample string 7",
"Name": "sample string 8",
"PolicyStartDate": "2026-02-04T01:04:54.9939458+00:00",
"PetSizeId": "fce18781-b9e6-4e93-ba10-653fd71fb0f9",
"SpeciesId": "d29ba27d-6172-4ef6-86b4-75acf2fa4266",
"Vaccinated": true,
"VetId": "78852c48-623a-49d6-82cd-51e48b7b66d4",
"VetChecked": true
},
"PolicyNumber": "sample string 4",
"PolicyStartDate": "2026-02-04T01:04:54.9939458+00:00",
"ProductId": "dfc78004-7dcf-4a3e-b1e4-98c09ae4c59f",
"PromoCode": "sample string 6",
"QuoteNotificationSent": true,
"QuoteReference": "sample string 8",
"SelectedCoverOptionId": "2f242d76-7177-451b-a358-2f878545d6d5",
"TermsAgreed": true,
"TotalBasketPrice": 1.0,
"SelectedExtras": [
"914dc442-61e7-48ad-b9ba-73409a7dada8",
"2423c35f-bd13-493b-bc44-bdb9e70e5e97"
],
"SelectedFixedExcessId": "dea5d639-0d83-4f51-88b7-1411d21aeda8",
"SelectedVariableExcessId": "c3b09483-8e6f-4087-8985-0c440c09b170",
"MicrochipDiscount": 1.0,
"MultipetDiscountFlatFee": 1.0,
"OnlineDiscount": 1.0
}
application/xml, text/xml
Sample:
<QuoteBasketResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tss.Eitr.Customer.Agria.WebApi.Models">
<AdditionalPolicyHolder>
<AuthorityToDeal>
<AuthorityTypeId>202eda91-c14c-467c-a0d4-feb279a1d15f</AuthorityTypeId>
<CustomerId>c753268c-e389-4378-9aab-46f5fe1a2b50</CustomerId>
<DateFrom>2026-02-04T01:04:54.9939458+00:00</DateFrom>
<DateOfBirth>2026-02-04T01:04:54.9939458+00:00</DateOfBirth>
<DateTo>2026-02-04T01:04:54.9939458+00:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>9e0592b1-00d6-490e-8981-993343d0dd87</Id>
<LastName>sample string 3</LastName>
<PolicyId>587b724d-052a-43d2-b432-2dcfd04bf2d9</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>8541812f-1d3b-4dcd-a534-e6651dc45e84</RelationshipId>
<TitleId>947bb06b-f475-4867-b648-182bbf68086f</TitleId>
</AuthorityToDeal>
<AuthorityToDeal>
<AuthorityTypeId>202eda91-c14c-467c-a0d4-feb279a1d15f</AuthorityTypeId>
<CustomerId>c753268c-e389-4378-9aab-46f5fe1a2b50</CustomerId>
<DateFrom>2026-02-04T01:04:54.9939458+00:00</DateFrom>
<DateOfBirth>2026-02-04T01:04:54.9939458+00:00</DateOfBirth>
<DateTo>2026-02-04T01:04:54.9939458+00:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>9e0592b1-00d6-490e-8981-993343d0dd87</Id>
<LastName>sample string 3</LastName>
<PolicyId>587b724d-052a-43d2-b432-2dcfd04bf2d9</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>8541812f-1d3b-4dcd-a534-e6651dc45e84</RelationshipId>
<TitleId>947bb06b-f475-4867-b648-182bbf68086f</TitleId>
</AuthorityToDeal>
</AdditionalPolicyHolder>
<AffiliateId>7b530ba5-ee81-4f85-9b5a-fd72e3830614</AffiliateId>
<AnnualRate>1</AnnualRate>
<AvailableCollectionDays xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</AvailableCollectionDays>
<BasketId>3846ef5b-1d9e-493a-a60f-162a3d1e6150</BasketId>
<BrandId>85768869-171c-4ab3-8bd5-df7b34ea7413</BrandId>
<CampaignId>235c7385-c17a-4477-ac91-7e58091b91b6</CampaignId>
<Customer>
<AddressLine1>sample string 1</AddressLine1>
<AddressLine2>sample string 2</AddressLine2>
<AddressLine3>sample string 3</AddressLine3>
<CountryId>0c7134d5-9eaa-460e-81fe-197087a4d0b6</CountryId>
<County>sample string 4</County>
<DateOfBirth>2026-02-04T01:04:54.9939458+00:00</DateOfBirth>
<DaytimeNumber>sample string 5</DaytimeNumber>
<EmailAddress>sample string 6</EmailAddress>
<EveningNumber>sample string 7</EveningNumber>
<FirstName>sample string 8</FirstName>
<HouseName>sample string 9</HouseName>
<HouseNumber>sample string 10</HouseNumber>
<Id>a9aa41b5-7af3-49e3-9644-41b0048c6945</Id>
<IsLocked>true</IsLocked>
<LastName>sample string 12</LastName>
<MarketingContactByEmail>true</MarketingContactByEmail>
<MarketingContactByPhone>true</MarketingContactByPhone>
<MarketingContactBySMS>true</MarketingContactBySMS>
<MobileNumber>sample string 13</MobileNumber>
<PostCode>sample string 14</PostCode>
<TitleId>93dd94eb-c395-44f6-a402-a99298d4ecc1</TitleId>
<Town>sample string 15</Town>
</Customer>
<Discount>
<Amount>1</Amount>
<ApplyAtEnd>true</ApplyAtEnd>
<ApplyAtStart>true</ApplyAtStart>
<Code>sample string 4</Code>
<Description>sample string 5</Description>
<Id>02f87d73-b1da-48b0-ab9a-81da47e97cd0</Id>
<IsPercentage>true</IsPercentage>
<Monthly>true</Monthly>
<NumberOfMonths>9</NumberOfMonths>
</Discount>
<DiscountedRate>1</DiscountedRate>
<HasErrored>true</HasErrored>
<Id>f8353d79-75d7-4d0a-bf5e-fe79b78d4c9e</Id>
<InsurancePremiumTaxPercentage>1</InsurancePremiumTaxPercentage>
<InsurancePremiumTaxValue>1</InsurancePremiumTaxValue>
<IsRenewalQuote>true</IsRenewalQuote>
<Messages i:nil="true" />
<MicrochipDiscount>1</MicrochipDiscount>
<MonthlyRate>1</MonthlyRate>
<MultipetAmount>1</MultipetAmount>
<MultipetDiscountFlatFee>1</MultipetDiscountFlatFee>
<MultipetPercentage>1</MultipetPercentage>
<OnlineDiscount>1</OnlineDiscount>
<PaymentSchedule>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-02-04T01:04:54.9939458+00:00</CollectionDate>
</PaymentScheduleItem>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-02-04T01:04:54.9939458+00:00</CollectionDate>
</PaymentScheduleItem>
</PaymentSchedule>
<Pet>
<BreedId>23bae134-7fb4-41e9-871c-d6860550107b</BreedId>
<Cost>1</Cost>
<DateOfBirth>2026-02-04T01:04:54.9939458+00:00</DateOfBirth>
<DateOfBirthExact>true</DateOfBirthExact>
<GenderId>2d9cd103-2ca5-4636-965b-23fdc63cb74d</GenderId>
<HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
<Id>b2caa3be-96a4-4c78-96a9-0cf4da77294b</Id>
<IllnessOrInjury>true</IllnessOrInjury>
<IsNextVacVetChecked>true</IsNextVacVetChecked>
<LastVaccinatedDate>2026-02-04T01:04:54.9939458+00:00</LastVaccinatedDate>
<MicrochipNumber>sample string 7</MicrochipNumber>
<Name>sample string 8</Name>
<PetSizeId>fce18781-b9e6-4e93-ba10-653fd71fb0f9</PetSizeId>
<PolicyStartDate>2026-02-04T01:04:54.9939458+00:00</PolicyStartDate>
<SpeciesId>d29ba27d-6172-4ef6-86b4-75acf2fa4266</SpeciesId>
<Vaccinated>true</Vaccinated>
<VetChecked>true</VetChecked>
<VetId>78852c48-623a-49d6-82cd-51e48b7b66d4</VetId>
</Pet>
<PolicyNumber>sample string 4</PolicyNumber>
<PolicyStartDate>2026-02-04T01:04:54.9939458+00:00</PolicyStartDate>
<ProductId>dfc78004-7dcf-4a3e-b1e4-98c09ae4c59f</ProductId>
<PromoCode>sample string 6</PromoCode>
<QuoteNotificationSent>true</QuoteNotificationSent>
<QuoteReference>sample string 8</QuoteReference>
<SelectedCoverOptionId>2f242d76-7177-451b-a358-2f878545d6d5</SelectedCoverOptionId>
<SelectedExtras xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>914dc442-61e7-48ad-b9ba-73409a7dada8</d2p1:guid>
<d2p1:guid>2423c35f-bd13-493b-bc44-bdb9e70e5e97</d2p1:guid>
</SelectedExtras>
<SelectedFixedExcessId>dea5d639-0d83-4f51-88b7-1411d21aeda8</SelectedFixedExcessId>
<SelectedVariableExcessId>c3b09483-8e6f-4087-8985-0c440c09b170</SelectedVariableExcessId>
<TermsAgreed>true</TermsAgreed>
<TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>