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": "8d45d978-45b6-41e3-b3a5-bfd4907b2cc3",
"County": "sample string 4",
"DateOfBirth": "2026-05-09T12:53:54.9574893+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": "a79148d6-c9cf-4155-b227-d9f9c82e6d80",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "aac30325-55cd-445d-9939-ffc9170a61b2",
"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>8d45d978-45b6-41e3-b3a5-bfd4907b2cc3</CountryId> <County>sample string 4</County> <DateOfBirth>2026-05-09T12:53:54.9574893+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>a79148d6-c9cf-4155-b227-d9f9c82e6d80</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>aac30325-55cd-445d-9939-ffc9170a61b2</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": "338d61b6-c13d-42c8-a4e0-4eeecaef5a24",
"CustomerId": "3bc70a71-f1a7-4921-bbc2-4830c079e9e1",
"DateFrom": "2026-05-09T12:53:54.9574893+01:00",
"DateOfBirth": "2026-05-09T12:53:54.9574893+01:00",
"DateTo": "2026-05-09T12:53:54.9574893+01:00",
"FirstName": "sample string 2",
"Id": "d554ec41-5eeb-4cf8-876b-efbec4f26c93",
"LastName": "sample string 3",
"PolicyId": "74f0fd6b-a7df-45a9-b453-0ae164d494aa",
"PolicyNo": "sample string 4",
"RelationshipId": "1d859042-3d8f-4b3f-b083-6461ea44126c",
"TitleId": "79139d35-23b7-4d9d-a4ee-c6923a6a33db"
},
{
"AuthorityTypeId": "338d61b6-c13d-42c8-a4e0-4eeecaef5a24",
"CustomerId": "3bc70a71-f1a7-4921-bbc2-4830c079e9e1",
"DateFrom": "2026-05-09T12:53:54.9574893+01:00",
"DateOfBirth": "2026-05-09T12:53:54.9574893+01:00",
"DateTo": "2026-05-09T12:53:54.9574893+01:00",
"FirstName": "sample string 2",
"Id": "d554ec41-5eeb-4cf8-876b-efbec4f26c93",
"LastName": "sample string 3",
"PolicyId": "74f0fd6b-a7df-45a9-b453-0ae164d494aa",
"PolicyNo": "sample string 4",
"RelationshipId": "1d859042-3d8f-4b3f-b083-6461ea44126c",
"TitleId": "79139d35-23b7-4d9d-a4ee-c6923a6a33db"
}
],
"AffiliateId": "1329e5e9-b3a5-410d-b929-f0ae4ad36b7e",
"AnnualRate": 1.0,
"AvailableCollectionDays": [
1,
2
],
"BasketId": "81817335-f7b3-4eae-8d9d-d550f54f432a",
"BrandId": "c4461bc2-146c-4163-8ad3-bbf6481c1898",
"CampaignId": "c8bc7c42-ee48-409c-b0e4-604f5acf9214",
"Customer": {
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "dd176939-0c7c-457a-bbf8-c56a45ea2b66",
"County": "sample string 4",
"DateOfBirth": "2026-05-09T12:53:54.9574893+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": "f428ba9c-f1c5-437b-82e4-9e5b4a7cf5b4",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "da43d22c-a25b-42b0-9114-3a212a836c81",
"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": "24375f5a-345c-44ae-abd3-09ec7f5c4415",
"IsPercentage": true,
"Monthly": true,
"NumberOfMonths": 9
},
"DiscountedRate": 1.0,
"Id": "34b5e791-261e-456d-957a-1f8d83a9c8e9",
"InsurancePremiumTaxPercentage": 1.0,
"InsurancePremiumTaxValue": 1.0,
"IsRenewalQuote": true,
"MonthlyRate": 1.0,
"MultipetPercentage": 1.0,
"MultipetAmount": 1.0,
"PaymentSchedule": [
{
"Amount": 1.0,
"CollectionDate": "2026-05-09T12:53:54.9574893+01:00"
},
{
"Amount": 1.0,
"CollectionDate": "2026-05-09T12:53:54.9574893+01:00"
}
],
"Pet": {
"IsNextVacVetChecked": true,
"BreedId": "0066975e-d0d6-4ec6-990b-7d45ea2fa253",
"Cost": 1.0,
"DateOfBirth": "2026-05-09T12:53:54.9574893+01:00",
"DateOfBirthExact": true,
"GenderId": "219c4302-20ef-4f5f-93b6-495a66738ff0",
"HadPriorThirdPartyLiabilityClaim": true,
"Id": "9b09f6ed-ef5c-45fb-97a4-a0a2caee550c",
"IllnessOrInjury": true,
"LastVaccinatedDate": "2026-05-09T12:53:54.9574893+01:00",
"MicrochipNumber": "sample string 7",
"Name": "sample string 8",
"PolicyStartDate": "2026-05-09T12:53:54.9574893+01:00",
"PetSizeId": "1c69d19a-1456-4835-8a07-f55b8c3a6fa8",
"SpeciesId": "78c7742f-01a6-4133-82c3-fd25736e15ad",
"Vaccinated": true,
"VetId": "f6f7224f-4a79-4007-9ea1-182da133706c",
"VetChecked": true
},
"PolicyNumber": "sample string 4",
"PolicyStartDate": "2026-05-09T12:53:54.9574893+01:00",
"ProductId": "50299580-b917-40bc-9970-b3f7658a1936",
"PromoCode": "sample string 6",
"QuoteNotificationSent": true,
"QuoteReference": "sample string 8",
"SelectedCoverOptionId": "e85d3728-7e3e-460d-a742-2e4202d7f36e",
"TermsAgreed": true,
"AutoRenew": true,
"AllowFollowUp": true,
"TotalBasketPrice": 1.0,
"SelectedExtras": [
{
"Id": "1825986f-27cb-4b30-bd67-72586f98b304",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
},
{
"Id": "1825986f-27cb-4b30-bd67-72586f98b304",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
}
],
"SelectedFixedExcessId": "22baa1af-48f6-4520-85b9-35a375d0a7ec",
"SelectedVariableExcessId": "cb14566c-8895-488f-b394-49589e15dc87",
"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>338d61b6-c13d-42c8-a4e0-4eeecaef5a24</AuthorityTypeId>
<CustomerId>3bc70a71-f1a7-4921-bbc2-4830c079e9e1</CustomerId>
<DateFrom>2026-05-09T12:53:54.9574893+01:00</DateFrom>
<DateOfBirth>2026-05-09T12:53:54.9574893+01:00</DateOfBirth>
<DateTo>2026-05-09T12:53:54.9574893+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>d554ec41-5eeb-4cf8-876b-efbec4f26c93</Id>
<LastName>sample string 3</LastName>
<PolicyId>74f0fd6b-a7df-45a9-b453-0ae164d494aa</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>1d859042-3d8f-4b3f-b083-6461ea44126c</RelationshipId>
<TitleId>79139d35-23b7-4d9d-a4ee-c6923a6a33db</TitleId>
</AuthorityToDeal>
<AuthorityToDeal>
<AuthorityTypeId>338d61b6-c13d-42c8-a4e0-4eeecaef5a24</AuthorityTypeId>
<CustomerId>3bc70a71-f1a7-4921-bbc2-4830c079e9e1</CustomerId>
<DateFrom>2026-05-09T12:53:54.9574893+01:00</DateFrom>
<DateOfBirth>2026-05-09T12:53:54.9574893+01:00</DateOfBirth>
<DateTo>2026-05-09T12:53:54.9574893+01:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>d554ec41-5eeb-4cf8-876b-efbec4f26c93</Id>
<LastName>sample string 3</LastName>
<PolicyId>74f0fd6b-a7df-45a9-b453-0ae164d494aa</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>1d859042-3d8f-4b3f-b083-6461ea44126c</RelationshipId>
<TitleId>79139d35-23b7-4d9d-a4ee-c6923a6a33db</TitleId>
</AuthorityToDeal>
</AdditionalPolicyHolder>
<AffiliateId>1329e5e9-b3a5-410d-b929-f0ae4ad36b7e</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>81817335-f7b3-4eae-8d9d-d550f54f432a</BasketId>
<BrandId>c4461bc2-146c-4163-8ad3-bbf6481c1898</BrandId>
<CampaignId>c8bc7c42-ee48-409c-b0e4-604f5acf9214</CampaignId>
<Customer>
<AddressLine1>sample string 1</AddressLine1>
<AddressLine2>sample string 2</AddressLine2>
<AddressLine3>sample string 3</AddressLine3>
<CountryId>dd176939-0c7c-457a-bbf8-c56a45ea2b66</CountryId>
<County>sample string 4</County>
<DateOfBirth>2026-05-09T12:53:54.9574893+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>f428ba9c-f1c5-437b-82e4-9e5b4a7cf5b4</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>da43d22c-a25b-42b0-9114-3a212a836c81</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>24375f5a-345c-44ae-abd3-09ec7f5c4415</Id>
<IsPercentage>true</IsPercentage>
<Monthly>true</Monthly>
<NumberOfMonths>9</NumberOfMonths>
</Discount>
<DiscountedRate>1</DiscountedRate>
<HasErrored>true</HasErrored>
<Id>34b5e791-261e-456d-957a-1f8d83a9c8e9</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-05-09T12:53:54.9574893+01:00</CollectionDate>
</PaymentScheduleItem>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-05-09T12:53:54.9574893+01:00</CollectionDate>
</PaymentScheduleItem>
</PaymentSchedule>
<Pet>
<BreedId>0066975e-d0d6-4ec6-990b-7d45ea2fa253</BreedId>
<Cost>1</Cost>
<DateOfBirth>2026-05-09T12:53:54.9574893+01:00</DateOfBirth>
<DateOfBirthExact>true</DateOfBirthExact>
<GenderId>219c4302-20ef-4f5f-93b6-495a66738ff0</GenderId>
<HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
<Id>9b09f6ed-ef5c-45fb-97a4-a0a2caee550c</Id>
<IllnessOrInjury>true</IllnessOrInjury>
<IsNextVacVetChecked>true</IsNextVacVetChecked>
<LastVaccinatedDate>2026-05-09T12:53:54.9574893+01:00</LastVaccinatedDate>
<MicrochipNumber>sample string 7</MicrochipNumber>
<Name>sample string 8</Name>
<PetSizeId>1c69d19a-1456-4835-8a07-f55b8c3a6fa8</PetSizeId>
<PolicyStartDate>2026-05-09T12:53:54.9574893+01:00</PolicyStartDate>
<SpeciesId>78c7742f-01a6-4133-82c3-fd25736e15ad</SpeciesId>
<Vaccinated>true</Vaccinated>
<VetChecked>true</VetChecked>
<VetId>f6f7224f-4a79-4007-9ea1-182da133706c</VetId>
</Pet>
<PolicyNumber>sample string 4</PolicyNumber>
<PolicyStartDate>2026-05-09T12:53:54.9574893+01:00</PolicyStartDate>
<ProductId>50299580-b917-40bc-9970-b3f7658a1936</ProductId>
<PromoCode>sample string 6</PromoCode>
<QuoteNotificationSent>true</QuoteNotificationSent>
<QuoteReference>sample string 8</QuoteReference>
<SelectedCoverOptionId>e85d3728-7e3e-460d-a742-2e4202d7f36e</SelectedCoverOptionId>
<SelectedExtras>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>1825986f-27cb-4b30-bd67-72586f98b304</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>1825986f-27cb-4b30-bd67-72586f98b304</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
</SelectedExtras>
<SelectedFixedExcessId>22baa1af-48f6-4520-85b9-35a375d0a7ec</SelectedFixedExcessId>
<SelectedVariableExcessId>cb14566c-8895-488f-b394-49589e15dc87</SelectedVariableExcessId>
<TermsAgreed>true</TermsAgreed>
<TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>