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": "fbe18213-6ced-4b92-9cca-98cd65640110",
"County": "sample string 4",
"DateOfBirth": "2026-03-23T08:57:02.1292673+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": "857d81d5-5b6e-4de1-9506-e28e9500c9fd",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "2130cb34-e7f4-45a4-a4fe-0b748372afe9",
"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>fbe18213-6ced-4b92-9cca-98cd65640110</CountryId> <County>sample string 4</County> <DateOfBirth>2026-03-23T08:57:02.1292673+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>857d81d5-5b6e-4de1-9506-e28e9500c9fd</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>2130cb34-e7f4-45a4-a4fe-0b748372afe9</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": "cf7ce4f9-5b63-462b-8625-47955df793f1",
"CustomerId": "16dd9d96-3e48-4e80-ab1b-87500125711a",
"DateFrom": "2026-03-23T08:57:02.1292673+00:00",
"DateOfBirth": "2026-03-23T08:57:02.1292673+00:00",
"DateTo": "2026-03-23T08:57:02.1292673+00:00",
"FirstName": "sample string 2",
"Id": "28d99b78-d90f-4137-9e3a-6430e8ae9698",
"LastName": "sample string 3",
"PolicyId": "772e5918-4d27-48e4-bc17-1adfcab624b5",
"PolicyNo": "sample string 4",
"RelationshipId": "1fd806c7-0ab9-4fb6-96d1-f8a3b3205f23",
"TitleId": "6ee22aed-723a-4b78-88e2-cbce1d893e4a"
},
{
"AuthorityTypeId": "cf7ce4f9-5b63-462b-8625-47955df793f1",
"CustomerId": "16dd9d96-3e48-4e80-ab1b-87500125711a",
"DateFrom": "2026-03-23T08:57:02.1292673+00:00",
"DateOfBirth": "2026-03-23T08:57:02.1292673+00:00",
"DateTo": "2026-03-23T08:57:02.1292673+00:00",
"FirstName": "sample string 2",
"Id": "28d99b78-d90f-4137-9e3a-6430e8ae9698",
"LastName": "sample string 3",
"PolicyId": "772e5918-4d27-48e4-bc17-1adfcab624b5",
"PolicyNo": "sample string 4",
"RelationshipId": "1fd806c7-0ab9-4fb6-96d1-f8a3b3205f23",
"TitleId": "6ee22aed-723a-4b78-88e2-cbce1d893e4a"
}
],
"AffiliateId": "69ced9ee-cdf6-4362-8734-32c7cc8a92a4",
"AnnualRate": 1.0,
"AvailableCollectionDays": [
1,
2
],
"BasketId": "cec72430-147d-4f2b-8359-876b81f7fb82",
"BrandId": "1c9f1700-d748-4933-a3f5-8d0ca83705d6",
"CampaignId": "75b71e58-3a8d-4c3c-a7cd-fabd0f59579e",
"Customer": {
"AddressLine1": "sample string 1",
"AddressLine2": "sample string 2",
"AddressLine3": "sample string 3",
"CountryId": "364aab3f-28bf-4ed8-9003-8456b13bad09",
"County": "sample string 4",
"DateOfBirth": "2026-03-23T08:57:02.1292673+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": "debdeeb6-2a29-4753-818a-ed5b5a51ddf3",
"IsLocked": true,
"LastName": "sample string 12",
"MobileNumber": "sample string 13",
"PostCode": "sample string 14",
"TitleId": "fd3c357e-6c21-4ac8-9cc9-6dc1c59e558e",
"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": "516bccdd-65b0-4f66-abc3-cc2715ca4757",
"IsPercentage": true,
"Monthly": true,
"NumberOfMonths": 9
},
"DiscountedRate": 1.0,
"Id": "7e7dfc4c-a8e1-452b-b80d-940c36b5f576",
"InsurancePremiumTaxPercentage": 1.0,
"InsurancePremiumTaxValue": 1.0,
"IsRenewalQuote": true,
"MonthlyRate": 1.0,
"MultipetPercentage": 1.0,
"MultipetAmount": 1.0,
"PaymentSchedule": [
{
"Amount": 1.0,
"CollectionDate": "2026-03-23T08:57:02.1292673+00:00"
},
{
"Amount": 1.0,
"CollectionDate": "2026-03-23T08:57:02.1292673+00:00"
}
],
"Pet": {
"IsNextVacVetChecked": true,
"BreedId": "a3cf770f-2b81-40f9-a344-1ca42078e41c",
"Cost": 1.0,
"DateOfBirth": "2026-03-23T08:57:02.1292673+00:00",
"DateOfBirthExact": true,
"GenderId": "1acaeae8-b998-4416-aab2-e07e3c41ddfa",
"HadPriorThirdPartyLiabilityClaim": true,
"Id": "18f65ac5-a095-4500-8be7-8fa2331aa927",
"IllnessOrInjury": true,
"LastVaccinatedDate": "2026-03-23T08:57:02.1292673+00:00",
"MicrochipNumber": "sample string 7",
"Name": "sample string 8",
"PolicyStartDate": "2026-03-23T08:57:02.1292673+00:00",
"PetSizeId": "407a3f62-83b3-4a78-b2df-59795b0e50cf",
"SpeciesId": "9405ee18-b5b6-467e-a29a-8b06fea0dc02",
"Vaccinated": true,
"VetId": "26466553-9959-4540-b46c-88c49dfab396",
"VetChecked": true
},
"PolicyNumber": "sample string 4",
"PolicyStartDate": "2026-03-23T08:57:02.1292673+00:00",
"ProductId": "bf28165f-a7bd-4029-8d6c-6ca03305b4ab",
"PromoCode": "sample string 6",
"QuoteNotificationSent": true,
"QuoteReference": "sample string 8",
"SelectedCoverOptionId": "11ec536d-83e9-426d-840e-d4591678a173",
"TermsAgreed": true,
"AutoRenew": true,
"AllowFollowUp": true,
"TotalBasketPrice": 1.0,
"SelectedExtras": [
{
"Id": "f23335f4-66c8-4e65-aaf7-3cd0c01a36f6",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
},
{
"Id": "f23335f4-66c8-4e65-aaf7-3cd0c01a36f6",
"Amount": 1.0,
"AnnualOptionalBenefit": 1.0,
"MonthlyOptionalBenefit": 1.0
}
],
"SelectedFixedExcessId": "581bf05a-eb2b-415c-93f7-6ceb8468c5b5",
"SelectedVariableExcessId": "6d2bfadf-d400-4f0d-9b2b-c7ecf83ac4a2",
"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>cf7ce4f9-5b63-462b-8625-47955df793f1</AuthorityTypeId>
<CustomerId>16dd9d96-3e48-4e80-ab1b-87500125711a</CustomerId>
<DateFrom>2026-03-23T08:57:02.1292673+00:00</DateFrom>
<DateOfBirth>2026-03-23T08:57:02.1292673+00:00</DateOfBirth>
<DateTo>2026-03-23T08:57:02.1292673+00:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>28d99b78-d90f-4137-9e3a-6430e8ae9698</Id>
<LastName>sample string 3</LastName>
<PolicyId>772e5918-4d27-48e4-bc17-1adfcab624b5</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>1fd806c7-0ab9-4fb6-96d1-f8a3b3205f23</RelationshipId>
<TitleId>6ee22aed-723a-4b78-88e2-cbce1d893e4a</TitleId>
</AuthorityToDeal>
<AuthorityToDeal>
<AuthorityTypeId>cf7ce4f9-5b63-462b-8625-47955df793f1</AuthorityTypeId>
<CustomerId>16dd9d96-3e48-4e80-ab1b-87500125711a</CustomerId>
<DateFrom>2026-03-23T08:57:02.1292673+00:00</DateFrom>
<DateOfBirth>2026-03-23T08:57:02.1292673+00:00</DateOfBirth>
<DateTo>2026-03-23T08:57:02.1292673+00:00</DateTo>
<FirstName>sample string 2</FirstName>
<Id>28d99b78-d90f-4137-9e3a-6430e8ae9698</Id>
<LastName>sample string 3</LastName>
<PolicyId>772e5918-4d27-48e4-bc17-1adfcab624b5</PolicyId>
<PolicyNo>sample string 4</PolicyNo>
<RelationshipId>1fd806c7-0ab9-4fb6-96d1-f8a3b3205f23</RelationshipId>
<TitleId>6ee22aed-723a-4b78-88e2-cbce1d893e4a</TitleId>
</AuthorityToDeal>
</AdditionalPolicyHolder>
<AffiliateId>69ced9ee-cdf6-4362-8734-32c7cc8a92a4</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>cec72430-147d-4f2b-8359-876b81f7fb82</BasketId>
<BrandId>1c9f1700-d748-4933-a3f5-8d0ca83705d6</BrandId>
<CampaignId>75b71e58-3a8d-4c3c-a7cd-fabd0f59579e</CampaignId>
<Customer>
<AddressLine1>sample string 1</AddressLine1>
<AddressLine2>sample string 2</AddressLine2>
<AddressLine3>sample string 3</AddressLine3>
<CountryId>364aab3f-28bf-4ed8-9003-8456b13bad09</CountryId>
<County>sample string 4</County>
<DateOfBirth>2026-03-23T08:57:02.1292673+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>debdeeb6-2a29-4753-818a-ed5b5a51ddf3</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>fd3c357e-6c21-4ac8-9cc9-6dc1c59e558e</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>516bccdd-65b0-4f66-abc3-cc2715ca4757</Id>
<IsPercentage>true</IsPercentage>
<Monthly>true</Monthly>
<NumberOfMonths>9</NumberOfMonths>
</Discount>
<DiscountedRate>1</DiscountedRate>
<HasErrored>true</HasErrored>
<Id>7e7dfc4c-a8e1-452b-b80d-940c36b5f576</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-03-23T08:57:02.1292673+00:00</CollectionDate>
</PaymentScheduleItem>
<PaymentScheduleItem>
<Amount>1</Amount>
<CollectionDate>2026-03-23T08:57:02.1292673+00:00</CollectionDate>
</PaymentScheduleItem>
</PaymentSchedule>
<Pet>
<BreedId>a3cf770f-2b81-40f9-a344-1ca42078e41c</BreedId>
<Cost>1</Cost>
<DateOfBirth>2026-03-23T08:57:02.1292673+00:00</DateOfBirth>
<DateOfBirthExact>true</DateOfBirthExact>
<GenderId>1acaeae8-b998-4416-aab2-e07e3c41ddfa</GenderId>
<HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
<Id>18f65ac5-a095-4500-8be7-8fa2331aa927</Id>
<IllnessOrInjury>true</IllnessOrInjury>
<IsNextVacVetChecked>true</IsNextVacVetChecked>
<LastVaccinatedDate>2026-03-23T08:57:02.1292673+00:00</LastVaccinatedDate>
<MicrochipNumber>sample string 7</MicrochipNumber>
<Name>sample string 8</Name>
<PetSizeId>407a3f62-83b3-4a78-b2df-59795b0e50cf</PetSizeId>
<PolicyStartDate>2026-03-23T08:57:02.1292673+00:00</PolicyStartDate>
<SpeciesId>9405ee18-b5b6-467e-a29a-8b06fea0dc02</SpeciesId>
<Vaccinated>true</Vaccinated>
<VetChecked>true</VetChecked>
<VetId>26466553-9959-4540-b46c-88c49dfab396</VetId>
</Pet>
<PolicyNumber>sample string 4</PolicyNumber>
<PolicyStartDate>2026-03-23T08:57:02.1292673+00:00</PolicyStartDate>
<ProductId>bf28165f-a7bd-4029-8d6c-6ca03305b4ab</ProductId>
<PromoCode>sample string 6</PromoCode>
<QuoteNotificationSent>true</QuoteNotificationSent>
<QuoteReference>sample string 8</QuoteReference>
<SelectedCoverOptionId>11ec536d-83e9-426d-840e-d4591678a173</SelectedCoverOptionId>
<SelectedExtras>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>f23335f4-66c8-4e65-aaf7-3cd0c01a36f6</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
<ExtraEquine>
<Amount>1</Amount>
<AnnualOptionalBenefit>1</AnnualOptionalBenefit>
<Id>f23335f4-66c8-4e65-aaf7-3cd0c01a36f6</Id>
<MonthlyOptionalBenefit>1</MonthlyOptionalBenefit>
</ExtraEquine>
</SelectedExtras>
<SelectedFixedExcessId>581bf05a-eb2b-415c-93f7-6ceb8468c5b5</SelectedFixedExcessId>
<SelectedVariableExcessId>6d2bfadf-d400-4f0d-9b2b-c7ecf83ac4a2</SelectedVariableExcessId>
<TermsAgreed>true</TermsAgreed>
<TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>