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": "ebd1cbd3-e07a-4224-b200-56b89d31f54b",
"County": "sample string 4",
"DateOfBirth": "2026-06-24T20:25:32.8125185+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": "53edbb99-3f28-4f6e-877f-e93cab21fcac",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "9e1d915e-4065-4d98-8f46-1e111acdb5a7",
"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>ebd1cbd3-e07a-4224-b200-56b89d31f54b</CountryId> <County>sample string 4</County> <DateOfBirth>2026-06-24T20:25:32.8125185+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>53edbb99-3f28-4f6e-877f-e93cab21fcac</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>9e1d915e-4065-4d98-8f46-1e111acdb5a7</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": "8712f9f7-8955-4a23-8506-7efd0227cab3",
"CustomerId": "c08a5181-51ed-40ec-8809-4182b90d49fb",
"DateFrom": "2026-06-24T20:25:32.8125185+01:00",
"DateOfBirth": "2026-06-24T20:25:32.8125185+01:00",
"DateTo": "2026-06-24T20:25:32.8125185+01:00",
"FirstName": "sample string 2",
"Id": "9210ff06-8d29-49d9-a6fd-9ef6dcf7837a",
"LastName": "sample string 3",
"PolicyId": "cbd08b5d-49de-4b81-91d9-f7d2a47ecdfd",
"PolicyNo": "sample string 4",
"RelationshipId": "220a9d8e-5585-4a84-a2e8-c512fad7da8f",
"TitleId": "535d1a43-e3bd-4dd3-8bd8-d5e4dbc1be9d"
},
{
"AuthorityTypeId": "8712f9f7-8955-4a23-8506-7efd0227cab3",
"CustomerId": "c08a5181-51ed-40ec-8809-4182b90d49fb",
"DateFrom": "2026-06-24T20:25:32.8125185+01:00",
"DateOfBirth": "2026-06-24T20:25:32.8125185+01:00",
"DateTo": "2026-06-24T20:25:32.8125185+01:00",
"FirstName": "sample string 2",
"Id": "9210ff06-8d29-49d9-a6fd-9ef6dcf7837a",
"LastName": "sample string 3",
"PolicyId": "cbd08b5d-49de-4b81-91d9-f7d2a47ecdfd",
"PolicyNo": "sample string 4",
"RelationshipId": "220a9d8e-5585-4a84-a2e8-c512fad7da8f",
"TitleId": "535d1a43-e3bd-4dd3-8bd8-d5e4dbc1be9d"
}
],
"AffiliateId": "ac7e37d1-9f76-48d9-827e-5bbd9fd3d6c9",
"AnnualRate": 1.0,
"AvailableCollectionDays": [
1,
2
],
"BasketId": "0509539c-7432-4dfb-8667-692061a2c423",
"BrandId": "a7765201-e88f-4b98-99ec-8e6789d0cf28",
"CampaignId": "b80facff-0164-45ea-a78f-205b9161ccc6",
"Customer": {
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "c8403eff-4bd4-4640-9256-7f4534d53845",
"County": "sample string 4",
"DateOfBirth": "2026-06-24T20:25:32.8125185+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": "c22d3f61-8480-4f15-91dd-144ebfb4cda1",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "eebf54c3-3917-452b-9ecc-0fa39fe795ac",
"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": "5187f1c7-6d32-41d8-8c0f-fa74e7c031e9",
"IsPercentage": true,
"Monthly": true,
"NumberOfMonths": 9
},
"DiscountedRate": 1.0,
"Id": "7c099b08-8d81-4f2b-8551-de437ea102ca",
"InsurancePremiumTaxPercentage": 1.0,
"InsurancePremiumTaxValue": 1.0,
"IsRenewalQuote": true,
"MonthlyRate": 1.0,
"MultipetPercentage": 1.0,
"MultipetAmount": 1.0,
"PaymentSchedule": [
{
"Amount": 1.0,
"CollectionDate": "2026-06-24T20:25:32.8125185+01:00"
},
{
"Amount": 1.0,
"CollectionDate": "2026-06-24T20:25:32.8125185+01:00"
}
],
"Pet": {
"IsNextVacVetChecked": true,
"BreedId": "3cb64fc6-a0e4-4339-874c-140d02d5d14f",
"Cost": 1.0,
"DateOfBirth": "2026-06-24T20:25:32.8125185+01:00",
"DateOfBirthExact": true,
"GenderId": "16a9fb74-3347-4e54-81fa-3f142ca70ec2",
"HadPriorThirdPartyLiabilityClaim": true,
"Id": "2efd11f5-386a-41fb-ab82-c4c931ad069c",
"IllnessOrInjury": true,
"LastVaccinatedDate": "2026-06-24T20:25:32.8125185+01:00",
"MicrochipNumber": "sample string 7",
"Name": "sample string 8",
"PolicyStartDate": "2026-06-24T20:25:32.8125185+01:00",
"PetSizeId": "a2e5eeb7-f15e-41b3-a2e0-5dd0829897ac",
"SpeciesId": "b1ad9bd5-98dc-4ab8-8796-b7872a0b636c",
"Vaccinated": true,
"VetId": "7fecdeb9-0397-489b-8668-e2955860c214",
"VetChecked": true
},
"PolicyNumber": "sample string 4",
"PolicyStartDate": "2026-06-24T20:25:32.8125185+01:00",
"ProductId": "9c2a0653-25e8-4406-a6cf-21480af4bc7a",
"PromoCode": "sample string 6",
"QuoteNotificationSent": true,
"QuoteReference": "sample string 8",
"SelectedCoverOptionId": "c8cb7cbf-f54a-4c0e-b852-11446baee033",
"TermsAgreed": true,
"AutoRenew": true,
"AllowFollowUp": true,
"TotalBasketPrice": 1.0,
"SelectedExtras": [
{
"Id": "f8919ebc-7ccb-4c61-827c-7d392782e250",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
},
{
"Id": "f8919ebc-7ccb-4c61-827c-7d392782e250",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
}
],
"SelectedFixedExcessId": "c8ac989c-af00-4f7c-80be-7f8b57059974",
"SelectedVariableExcessId": "f2d70327-5322-4f81-88ac-52157a342b35",
"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>8712f9f7-8955-4a23-8506-7efd0227cab3</AuthorityTypeId>
<CustomerId>c08a5181-51ed-40ec-8809-4182b90d49fb</CustomerId>
<DateFrom>2026-06-24T20:25:32.8125185+01:00</DateFrom>
<DateOfBirth>2026-06-24T20:25:32.8125185+01:00</DateOfBirth>
<DateTo>2026-06-24T20:25:32.8125185+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>9210ff06-8d29-49d9-a6fd-9ef6dcf7837a</Id>
<LastName>sample string 3</LastName>
<PolicyId>cbd08b5d-49de-4b81-91d9-f7d2a47ecdfd</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>220a9d8e-5585-4a84-a2e8-c512fad7da8f</RelationshipId>
<TitleId>535d1a43-e3bd-4dd3-8bd8-d5e4dbc1be9d</TitleId>
</AuthorityToDeal>
<AuthorityToDeal>
<AuthorityTypeId>8712f9f7-8955-4a23-8506-7efd0227cab3</AuthorityTypeId>
<CustomerId>c08a5181-51ed-40ec-8809-4182b90d49fb</CustomerId>
<DateFrom>2026-06-24T20:25:32.8125185+01:00</DateFrom>
<DateOfBirth>2026-06-24T20:25:32.8125185+01:00</DateOfBirth>
<DateTo>2026-06-24T20:25:32.8125185+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>9210ff06-8d29-49d9-a6fd-9ef6dcf7837a</Id>
<LastName>sample string 3</LastName>
<PolicyId>cbd08b5d-49de-4b81-91d9-f7d2a47ecdfd</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>220a9d8e-5585-4a84-a2e8-c512fad7da8f</RelationshipId>
<TitleId>535d1a43-e3bd-4dd3-8bd8-d5e4dbc1be9d</TitleId>
</AuthorityToDeal>
</AdditionalPolicyHolder>
<AffiliateId>ac7e37d1-9f76-48d9-827e-5bbd9fd3d6c9</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>0509539c-7432-4dfb-8667-692061a2c423</BasketId>
<BrandId>a7765201-e88f-4b98-99ec-8e6789d0cf28</BrandId>
<CampaignId>b80facff-0164-45ea-a78f-205b9161ccc6</CampaignId>
<Customer>
<AddressLine1>sample string 1</AddressLine1>
<AddressLine2>sample string 2</AddressLine2>
<AddressLine3>sample string 3</AddressLine3>
<CountryId>c8403eff-4bd4-4640-9256-7f4534d53845</CountryId>
<County>sample string 4</County>
<DateOfBirth>2026-06-24T20:25:32.8125185+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>c22d3f61-8480-4f15-91dd-144ebfb4cda1</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>eebf54c3-3917-452b-9ecc-0fa39fe795ac</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>5187f1c7-6d32-41d8-8c0f-fa74e7c031e9</Id>
<IsPercentage>true</IsPercentage>
<Monthly>true</Monthly>
<NumberOfMonths>9</NumberOfMonths>
</Discount>
<DiscountedRate>1</DiscountedRate>
<HasErrored>true</HasErrored>
<Id>7c099b08-8d81-4f2b-8551-de437ea102ca</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-06-24T20:25:32.8125185+01:00</CollectionDate>
</PaymentScheduleItem>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-06-24T20:25:32.8125185+01:00</CollectionDate>
</PaymentScheduleItem>
</PaymentSchedule>
<Pet>
<BreedId>3cb64fc6-a0e4-4339-874c-140d02d5d14f</BreedId>
<Cost>1</Cost>
<DateOfBirth>2026-06-24T20:25:32.8125185+01:00</DateOfBirth>
<DateOfBirthExact>true</DateOfBirthExact>
<GenderId>16a9fb74-3347-4e54-81fa-3f142ca70ec2</GenderId>
<HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
<Id>2efd11f5-386a-41fb-ab82-c4c931ad069c</Id>
<IllnessOrInjury>true</IllnessOrInjury>
<IsNextVacVetChecked>true</IsNextVacVetChecked>
<LastVaccinatedDate>2026-06-24T20:25:32.8125185+01:00</LastVaccinatedDate>
<MicrochipNumber>sample string 7</MicrochipNumber>
<Name>sample string 8</Name>
<PetSizeId>a2e5eeb7-f15e-41b3-a2e0-5dd0829897ac</PetSizeId>
<PolicyStartDate>2026-06-24T20:25:32.8125185+01:00</PolicyStartDate>
<SpeciesId>b1ad9bd5-98dc-4ab8-8796-b7872a0b636c</SpeciesId>
<Vaccinated>true</Vaccinated>
<VetChecked>true</VetChecked>
<VetId>7fecdeb9-0397-489b-8668-e2955860c214</VetId>
</Pet>
<PolicyNumber>sample string 4</PolicyNumber>
<PolicyStartDate>2026-06-24T20:25:32.8125185+01:00</PolicyStartDate>
<ProductId>9c2a0653-25e8-4406-a6cf-21480af4bc7a</ProductId>
<PromoCode>sample string 6</PromoCode>
<QuoteNotificationSent>true</QuoteNotificationSent>
<QuoteReference>sample string 8</QuoteReference>
<SelectedCoverOptionId>c8cb7cbf-f54a-4c0e-b852-11446baee033</SelectedCoverOptionId>
<SelectedExtras>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>f8919ebc-7ccb-4c61-827c-7d392782e250</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>f8919ebc-7ccb-4c61-827c-7d392782e250</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
</SelectedExtras>
<SelectedFixedExcessId>c8ac989c-af00-4f7c-80be-7f8b57059974</SelectedFixedExcessId>
<SelectedVariableExcessId>f2d70327-5322-4f81-88ac-52157a342b35</SelectedVariableExcessId>
<TermsAgreed>true</TermsAgreed>
<TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>