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": "a978a43b-a0b0-481c-b360-878569ca80a8",
"County": "sample string 4",
"DateOfBirth": "2026-08-15T10:50:42.7141213+01: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": "d4753bc7-874b-485d-9d67-4e440d058c1d",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "67a262b8-75e7-4594-af02-6b3b9f5d64f5",
"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>a978a43b-a0b0-481c-b360-878569ca80a8</CountryId> <County>sample string 4</County> <DateOfBirth>2026-08-15T10:50:42.7141213+01: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>d4753bc7-874b-485d-9d67-4e440d058c1d</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>67a262b8-75e7-4594-af02-6b3b9f5d64f5</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. |
|
| AutoRenew | boolean |
None. |
|
| AllowFollowUp | boolean |
None. |
|
| TotalBasketPrice | decimal number |
None. |
|
| SelectedExtras | Collection of ExtraEquine |
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": "6ba129e3-d658-421d-bfc3-fc34f5b09fea",
"CustomerId": "40eaa4bb-e6d5-4af6-ae04-3b6545a0517a",
"DateFrom": "2026-08-15T10:50:42.7141213+01:00",
"DateOfBirth": "2026-08-15T10:50:42.7141213+01:00",
"DateTo": "2026-08-15T10:50:42.7141213+01:00",
"FirstName": "sample string 2",
"Id": "7436f84c-0cb1-494d-b07a-c719086bec7b",
"LastName": "sample string 3",
"PolicyId": "43ea5e14-908a-4af9-8c16-25512c6c69e0",
"PolicyNo": "sample string 4",
"RelationshipId": "c74067b5-c837-4b51-b047-1f5d8988f610",
"TitleId": "4fe5d74f-70b9-45fa-b8d9-1afa1cf1e737"
},
{
"AuthorityTypeId": "6ba129e3-d658-421d-bfc3-fc34f5b09fea",
"CustomerId": "40eaa4bb-e6d5-4af6-ae04-3b6545a0517a",
"DateFrom": "2026-08-15T10:50:42.7141213+01:00",
"DateOfBirth": "2026-08-15T10:50:42.7141213+01:00",
"DateTo": "2026-08-15T10:50:42.7141213+01:00",
"FirstName": "sample string 2",
"Id": "7436f84c-0cb1-494d-b07a-c719086bec7b",
"LastName": "sample string 3",
"PolicyId": "43ea5e14-908a-4af9-8c16-25512c6c69e0",
"PolicyNo": "sample string 4",
"RelationshipId": "c74067b5-c837-4b51-b047-1f5d8988f610",
"TitleId": "4fe5d74f-70b9-45fa-b8d9-1afa1cf1e737"
}
],
"AffiliateId": "859b5b2f-f60e-4609-9307-7cc6e6753fca",
"AnnualRate": 1.0,
"AvailableCollectionDays": [
1,
2
],
"BasketId": "f44f0c45-8916-4181-8d26-9a79e7b4a274",
"BrandId": "1596af57-0d39-452f-92bd-1efea44570d8",
"CampaignId": "93a02bce-4924-4e91-99f4-e3e7934f8661",
"Customer": {
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "8a1fa790-f9cd-4bd0-a18c-b312d71b1aed",
"County": "sample string 4",
"DateOfBirth": "2026-08-15T10:50:42.7141213+01: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": "616fbeae-c0e5-4875-a0d1-3bc59adc8bb7",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "755cc656-0022-4d6e-a6a0-a6aad2a41d65",
"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": "006d9049-d3dc-4edd-9701-7046d0b7481d",
"IsPercentage": true,
"Monthly": true,
"NumberOfMonths": 9
},
"DiscountedRate": 1.0,
"Id": "5e7deadd-27a0-45c6-8bdd-102856d5ced5",
"InsurancePremiumTaxPercentage": 1.0,
"InsurancePremiumTaxValue": 1.0,
"IsRenewalQuote": true,
"MonthlyRate": 1.0,
"MultipetPercentage": 1.0,
"MultipetAmount": 1.0,
"PaymentSchedule": [
{
"Amount": 1.0,
"CollectionDate": "2026-08-15T10:50:42.7141213+01:00"
},
{
"Amount": 1.0,
"CollectionDate": "2026-08-15T10:50:42.7141213+01:00"
}
],
"Pet": {
"IsNextVacVetChecked": true,
"BreedId": "b2df630a-564b-43fa-83ed-520ed6a8b37e",
"Cost": 1.0,
"DateOfBirth": "2026-08-15T10:50:42.7141213+01:00",
"DateOfBirthExact": true,
"GenderId": "6ac25edd-d525-46ea-bf58-8b53ed771669",
"HadPriorThirdPartyLiabilityClaim": true,
"Id": "ad7414c6-84ed-45fc-bd88-50053784e89a",
"IllnessOrInjury": true,
"LastVaccinatedDate": "2026-08-15T10:50:42.7141213+01:00",
"MicrochipNumber": "sample string 7",
"Name": "sample string 8",
"PolicyStartDate": "2026-08-15T10:50:42.7141213+01:00",
"PetSizeId": "fbed296c-1998-4776-8970-d32e2010931c",
"SpeciesId": "41c670d5-7fd4-4342-89f1-95f3eae95392",
"Vaccinated": true,
"VetId": "13b00ead-31a6-4316-9659-f6838f9c37c4",
"VetChecked": true
},
"PolicyNumber": "sample string 4",
"PolicyStartDate": "2026-08-15T10:50:42.7141213+01:00",
"ProductId": "f3db7297-329d-43ca-a3ff-25a7fd49ef5c",
"PromoCode": "sample string 6",
"QuoteNotificationSent": true,
"QuoteReference": "sample string 8",
"SelectedCoverOptionId": "e1f0b3a9-326e-4ce6-ba4d-746662ce6a80",
"TermsAgreed": true,
"AutoRenew": true,
"AllowFollowUp": true,
"TotalBasketPrice": 1.0,
"SelectedExtras": [
{
"Id": "87ed0c84-60f0-40e8-8f12-e717c9e052bf",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
},
{
"Id": "87ed0c84-60f0-40e8-8f12-e717c9e052bf",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
}
],
"SelectedFixedExcessId": "cac0027f-f943-4bf4-b24b-f2c462f39bf3",
"SelectedVariableExcessId": "5d803782-aefa-4959-9feb-8c77d8af1ed4",
"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>6ba129e3-d658-421d-bfc3-fc34f5b09fea</AuthorityTypeId>
<CustomerId>40eaa4bb-e6d5-4af6-ae04-3b6545a0517a</CustomerId>
<DateFrom>2026-08-15T10:50:42.7141213+01:00</DateFrom>
<DateOfBirth>2026-08-15T10:50:42.7141213+01:00</DateOfBirth>
<DateTo>2026-08-15T10:50:42.7141213+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>7436f84c-0cb1-494d-b07a-c719086bec7b</Id>
<LastName>sample string 3</LastName>
<PolicyId>43ea5e14-908a-4af9-8c16-25512c6c69e0</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>c74067b5-c837-4b51-b047-1f5d8988f610</RelationshipId>
<TitleId>4fe5d74f-70b9-45fa-b8d9-1afa1cf1e737</TitleId>
</AuthorityToDeal>
<AuthorityToDeal>
<AuthorityTypeId>6ba129e3-d658-421d-bfc3-fc34f5b09fea</AuthorityTypeId>
<CustomerId>40eaa4bb-e6d5-4af6-ae04-3b6545a0517a</CustomerId>
<DateFrom>2026-08-15T10:50:42.7141213+01:00</DateFrom>
<DateOfBirth>2026-08-15T10:50:42.7141213+01:00</DateOfBirth>
<DateTo>2026-08-15T10:50:42.7141213+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>7436f84c-0cb1-494d-b07a-c719086bec7b</Id>
<LastName>sample string 3</LastName>
<PolicyId>43ea5e14-908a-4af9-8c16-25512c6c69e0</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>c74067b5-c837-4b51-b047-1f5d8988f610</RelationshipId>
<TitleId>4fe5d74f-70b9-45fa-b8d9-1afa1cf1e737</TitleId>
</AuthorityToDeal>
</AdditionalPolicyHolder>
<AffiliateId>859b5b2f-f60e-4609-9307-7cc6e6753fca</AffiliateId>
<AllowFollowUp>true</AllowFollowUp>
<AnnualRate>1</AnnualRate>
<AutoRenew>true</AutoRenew>
<AvailableCollectionDays xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</AvailableCollectionDays>
<BasketId>f44f0c45-8916-4181-8d26-9a79e7b4a274</BasketId>
<BrandId>1596af57-0d39-452f-92bd-1efea44570d8</BrandId>
<CampaignId>93a02bce-4924-4e91-99f4-e3e7934f8661</CampaignId>
<Customer>
<AddressLine1>sample string 1</AddressLine1>
<AddressLine2>sample string 2</AddressLine2>
<AddressLine3>sample string 3</AddressLine3>
<CountryId>8a1fa790-f9cd-4bd0-a18c-b312d71b1aed</CountryId>
<County>sample string 4</County>
<DateOfBirth>2026-08-15T10:50:42.7141213+01: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>616fbeae-c0e5-4875-a0d1-3bc59adc8bb7</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>755cc656-0022-4d6e-a6a0-a6aad2a41d65</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>006d9049-d3dc-4edd-9701-7046d0b7481d</Id>
<IsPercentage>true</IsPercentage>
<Monthly>true</Monthly>
<NumberOfMonths>9</NumberOfMonths>
</Discount>
<DiscountedRate>1</DiscountedRate>
<HasErrored>true</HasErrored>
<Id>5e7deadd-27a0-45c6-8bdd-102856d5ced5</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-08-15T10:50:42.7141213+01:00</CollectionDate>
</PaymentScheduleItem>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-08-15T10:50:42.7141213+01:00</CollectionDate>
</PaymentScheduleItem>
</PaymentSchedule>
<Pet>
<BreedId>b2df630a-564b-43fa-83ed-520ed6a8b37e</BreedId>
<Cost>1</Cost>
<DateOfBirth>2026-08-15T10:50:42.7141213+01:00</DateOfBirth>
<DateOfBirthExact>true</DateOfBirthExact>
<GenderId>6ac25edd-d525-46ea-bf58-8b53ed771669</GenderId>
<HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
<Id>ad7414c6-84ed-45fc-bd88-50053784e89a</Id>
<IllnessOrInjury>true</IllnessOrInjury>
<IsNextVacVetChecked>true</IsNextVacVetChecked>
<LastVaccinatedDate>2026-08-15T10:50:42.7141213+01:00</LastVaccinatedDate>
<MicrochipNumber>sample string 7</MicrochipNumber>
<Name>sample string 8</Name>
<PetSizeId>fbed296c-1998-4776-8970-d32e2010931c</PetSizeId>
<PolicyStartDate>2026-08-15T10:50:42.7141213+01:00</PolicyStartDate>
<SpeciesId>41c670d5-7fd4-4342-89f1-95f3eae95392</SpeciesId>
<Vaccinated>true</Vaccinated>
<VetChecked>true</VetChecked>
<VetId>13b00ead-31a6-4316-9659-f6838f9c37c4</VetId>
</Pet>
<PolicyNumber>sample string 4</PolicyNumber>
<PolicyStartDate>2026-08-15T10:50:42.7141213+01:00</PolicyStartDate>
<ProductId>f3db7297-329d-43ca-a3ff-25a7fd49ef5c</ProductId>
<PromoCode>sample string 6</PromoCode>
<QuoteNotificationSent>true</QuoteNotificationSent>
<QuoteReference>sample string 8</QuoteReference>
<SelectedCoverOptionId>e1f0b3a9-326e-4ce6-ba4d-746662ce6a80</SelectedCoverOptionId>
<SelectedExtras>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>87ed0c84-60f0-40e8-8f12-e717c9e052bf</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>87ed0c84-60f0-40e8-8f12-e717c9e052bf</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
</SelectedExtras>
<SelectedFixedExcessId>cac0027f-f943-4bf4-b24b-f2c462f39bf3</SelectedFixedExcessId>
<SelectedVariableExcessId>5d803782-aefa-4959-9feb-8c77d8af1ed4</SelectedVariableExcessId>
<TermsAgreed>true</TermsAgreed>
<TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>