POST api/Customer/CreateOrUpdate

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional 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": "8ee605b0-6309-4b49-b23d-f413c6aaef02",
  "County": "sample string 4",
  "DateOfBirth": "2025-07-07T14:01:41.8452822+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": "69a8c050-586a-4d78-8029-a0539930574d",
  "IsLocked": true,
  "LastName": "sample string 12",
  "MobileNumber": "sample string 13",
  "PostCode": "sample string 14",
  "TitleId": "ee9ad3e1-5360-40b3-8367-f32e404f9781",
  "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>8ee605b0-6309-4b49-b23d-f413c6aaef02</CountryId>
  <County>sample string 4</County>
  <DateOfBirth>2025-07-07T14:01:41.8452822+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>69a8c050-586a-4d78-8029-a0539930574d</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>ee9ad3e1-5360-40b3-8367-f32e404f9781</TitleId>
  <Town>sample string 15</Town>
</Customer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

QuoteBasketResponse
NameDescriptionTypeAdditional 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": "24d45747-c39b-4a04-a1b1-5a14b9391800",
      "CustomerId": "ab1c89cd-5870-4fe5-9332-56efb05a365c",
      "DateFrom": "2025-07-07T14:01:41.8452822+01:00",
      "DateOfBirth": "2025-07-07T14:01:41.8452822+01:00",
      "DateTo": "2025-07-07T14:01:41.8452822+01:00",
      "FirstName": "sample string 2",
      "Id": "16f9f236-37fb-4b3c-8134-70c33ce94283",
      "LastName": "sample string 3",
      "PolicyId": "cadd1c82-91af-415e-a04d-eca69a9743b7",
      "PolicyNo": "sample string 4",
      "RelationshipId": "b137437d-3e56-4883-95b3-88c5cfaaf11d",
      "TitleId": "f73dbe02-56c9-45e8-9730-36b02d575800"
    },
    {
      "AuthorityTypeId": "24d45747-c39b-4a04-a1b1-5a14b9391800",
      "CustomerId": "ab1c89cd-5870-4fe5-9332-56efb05a365c",
      "DateFrom": "2025-07-07T14:01:41.8452822+01:00",
      "DateOfBirth": "2025-07-07T14:01:41.8452822+01:00",
      "DateTo": "2025-07-07T14:01:41.8452822+01:00",
      "FirstName": "sample string 2",
      "Id": "16f9f236-37fb-4b3c-8134-70c33ce94283",
      "LastName": "sample string 3",
      "PolicyId": "cadd1c82-91af-415e-a04d-eca69a9743b7",
      "PolicyNo": "sample string 4",
      "RelationshipId": "b137437d-3e56-4883-95b3-88c5cfaaf11d",
      "TitleId": "f73dbe02-56c9-45e8-9730-36b02d575800"
    }
  ],
  "AffiliateId": "ae8e3792-c957-4bdb-93a2-e9a90dc15956",
  "AnnualRate": 1.0,
  "AvailableCollectionDays": [
    1,
    2
  ],
  "BasketId": "7df54efe-7851-4bbd-ab7f-3bd2460a7cb0",
  "BrandId": "258f1ce7-179f-465c-91b1-d941e7f90d9d",
  "CampaignId": "bcd9b767-fb7b-4c86-bac6-cfe014bc482f",
  "Customer": {
    "AddressLine1": "sample string 1",
    "AddressLine2": "sample string 2",
    "AddressLine3": "sample string 3",
    "CountryId": "038811f0-3b7f-42cf-8ebd-f22321ad73f8",
    "County": "sample string 4",
    "DateOfBirth": "2025-07-07T14:01:41.8452822+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": "66d31bbe-4d8d-40db-a79e-18141674a03e",
    "IsLocked": true,
    "LastName": "sample string 12",
    "MobileNumber": "sample string 13",
    "PostCode": "sample string 14",
    "TitleId": "8a6a5070-404f-4c57-82c2-bf547f6809a2",
    "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": "6a405ff7-2a87-40b9-9622-c8993448e98b",
    "IsPercentage": true,
    "Monthly": true,
    "NumberOfMonths": 9
  },
  "DiscountedRate": 1.0,
  "Id": "7c5ebebe-416e-4594-a8cf-369ba1a0c183",
  "InsurancePremiumTaxPercentage": 1.0,
  "InsurancePremiumTaxValue": 1.0,
  "IsRenewalQuote": true,
  "MonthlyRate": 1.0,
  "MultipetPercentage": 1.0,
  "MultipetAmount": 1.0,
  "PaymentSchedule": [
    {
      "Amount": 1.0,
      "CollectionDate": "2025-07-07T14:01:41.8452822+01:00"
    },
    {
      "Amount": 1.0,
      "CollectionDate": "2025-07-07T14:01:41.8452822+01:00"
    }
  ],
  "Pet": {
    "IsNextVacVetChecked": true,
    "BreedId": "51572dc1-309c-4562-bb65-b39c510d5a20",
    "Cost": 1.0,
    "DateOfBirth": "2025-07-07T14:01:41.8452822+01:00",
    "DateOfBirthExact": true,
    "GenderId": "785e94b2-a5af-4e58-86e0-607c7c932171",
    "HadPriorThirdPartyLiabilityClaim": true,
    "Id": "226de131-d344-4ce4-9ce1-bc2ca369f781",
    "IllnessOrInjury": true,
    "LastVaccinatedDate": "2025-07-07T14:01:41.8452822+01:00",
    "MicrochipNumber": "sample string 7",
    "Name": "sample string 8",
    "PolicyStartDate": "2025-07-07T14:01:41.8452822+01:00",
    "PetSizeId": "24034c89-4094-4c34-b40f-19817042677c",
    "SpeciesId": "4b2c9540-440f-4ded-bb39-eb1a552f2e20",
    "Vaccinated": true,
    "VetId": "01b53433-0101-4669-bd9d-1f9d92e89387",
    "VetChecked": true
  },
  "PolicyNumber": "sample string 4",
  "PolicyStartDate": "2025-07-07T14:01:41.8452822+01:00",
  "ProductId": "8e54049c-d4f8-4e5c-9c71-82131a473c4e",
  "PromoCode": "sample string 6",
  "QuoteNotificationSent": true,
  "QuoteReference": "sample string 8",
  "SelectedCoverOptionId": "637f228a-35a7-4ca7-afcf-bb56728f71dc",
  "TermsAgreed": true,
  "TotalBasketPrice": 1.0,
  "SelectedExtras": [
    "bcd15036-4054-4a38-bf2c-25996b3d2bc1",
    "480bc044-20c8-4c05-924d-f7899c859229"
  ],
  "SelectedFixedExcessId": "d5e78adb-b02a-42e7-a9ef-47328edd0a8d",
  "SelectedVariableExcessId": "2a53aa2b-0b12-4696-9deb-deba1c06164b",
  "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>24d45747-c39b-4a04-a1b1-5a14b9391800</AuthorityTypeId>
      <CustomerId>ab1c89cd-5870-4fe5-9332-56efb05a365c</CustomerId>
      <DateFrom>2025-07-07T14:01:41.8452822+01:00</DateFrom>
      <DateOfBirth>2025-07-07T14:01:41.8452822+01:00</DateOfBirth>
      <DateTo>2025-07-07T14:01:41.8452822+01:00</DateTo>
      <FirstName>sample string 2</FirstName>
      <Id>16f9f236-37fb-4b3c-8134-70c33ce94283</Id>
      <LastName>sample string 3</LastName>
      <PolicyId>cadd1c82-91af-415e-a04d-eca69a9743b7</PolicyId>
      <PolicyNo>sample string 4</PolicyNo>
      <RelationshipId>b137437d-3e56-4883-95b3-88c5cfaaf11d</RelationshipId>
      <TitleId>f73dbe02-56c9-45e8-9730-36b02d575800</TitleId>
    </AuthorityToDeal>
    <AuthorityToDeal>
      <AuthorityTypeId>24d45747-c39b-4a04-a1b1-5a14b9391800</AuthorityTypeId>
      <CustomerId>ab1c89cd-5870-4fe5-9332-56efb05a365c</CustomerId>
      <DateFrom>2025-07-07T14:01:41.8452822+01:00</DateFrom>
      <DateOfBirth>2025-07-07T14:01:41.8452822+01:00</DateOfBirth>
      <DateTo>2025-07-07T14:01:41.8452822+01:00</DateTo>
      <FirstName>sample string 2</FirstName>
      <Id>16f9f236-37fb-4b3c-8134-70c33ce94283</Id>
      <LastName>sample string 3</LastName>
      <PolicyId>cadd1c82-91af-415e-a04d-eca69a9743b7</PolicyId>
      <PolicyNo>sample string 4</PolicyNo>
      <RelationshipId>b137437d-3e56-4883-95b3-88c5cfaaf11d</RelationshipId>
      <TitleId>f73dbe02-56c9-45e8-9730-36b02d575800</TitleId>
    </AuthorityToDeal>
  </AdditionalPolicyHolder>
  <AffiliateId>ae8e3792-c957-4bdb-93a2-e9a90dc15956</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>7df54efe-7851-4bbd-ab7f-3bd2460a7cb0</BasketId>
  <BrandId>258f1ce7-179f-465c-91b1-d941e7f90d9d</BrandId>
  <CampaignId>bcd9b767-fb7b-4c86-bac6-cfe014bc482f</CampaignId>
  <Customer>
    <AddressLine1>sample string 1</AddressLine1>
    <AddressLine2>sample string 2</AddressLine2>
    <AddressLine3>sample string 3</AddressLine3>
    <CountryId>038811f0-3b7f-42cf-8ebd-f22321ad73f8</CountryId>
    <County>sample string 4</County>
    <DateOfBirth>2025-07-07T14:01:41.8452822+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>66d31bbe-4d8d-40db-a79e-18141674a03e</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>8a6a5070-404f-4c57-82c2-bf547f6809a2</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>6a405ff7-2a87-40b9-9622-c8993448e98b</Id>
    <IsPercentage>true</IsPercentage>
    <Monthly>true</Monthly>
    <NumberOfMonths>9</NumberOfMonths>
  </Discount>
  <DiscountedRate>1</DiscountedRate>
  <HasErrored>true</HasErrored>
  <Id>7c5ebebe-416e-4594-a8cf-369ba1a0c183</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>2025-07-07T14:01:41.8452822+01:00</CollectionDate>
    </PaymentScheduleItem>
    <PaymentScheduleItem>
      <Amount>1</Amount>
      <CollectionDate>2025-07-07T14:01:41.8452822+01:00</CollectionDate>
    </PaymentScheduleItem>
  </PaymentSchedule>
  <Pet>
    <BreedId>51572dc1-309c-4562-bb65-b39c510d5a20</BreedId>
    <Cost>1</Cost>
    <DateOfBirth>2025-07-07T14:01:41.8452822+01:00</DateOfBirth>
    <DateOfBirthExact>true</DateOfBirthExact>
    <GenderId>785e94b2-a5af-4e58-86e0-607c7c932171</GenderId>
    <HadPriorThirdPartyLiabilityClaim>true</HadPriorThirdPartyLiabilityClaim>
    <Id>226de131-d344-4ce4-9ce1-bc2ca369f781</Id>
    <IllnessOrInjury>true</IllnessOrInjury>
    <IsNextVacVetChecked>true</IsNextVacVetChecked>
    <LastVaccinatedDate>2025-07-07T14:01:41.8452822+01:00</LastVaccinatedDate>
    <MicrochipNumber>sample string 7</MicrochipNumber>
    <Name>sample string 8</Name>
    <PetSizeId>24034c89-4094-4c34-b40f-19817042677c</PetSizeId>
    <PolicyStartDate>2025-07-07T14:01:41.8452822+01:00</PolicyStartDate>
    <SpeciesId>4b2c9540-440f-4ded-bb39-eb1a552f2e20</SpeciesId>
    <Vaccinated>true</Vaccinated>
    <VetChecked>true</VetChecked>
    <VetId>01b53433-0101-4669-bd9d-1f9d92e89387</VetId>
  </Pet>
  <PolicyNumber>sample string 4</PolicyNumber>
  <PolicyStartDate>2025-07-07T14:01:41.8452822+01:00</PolicyStartDate>
  <ProductId>8e54049c-d4f8-4e5c-9c71-82131a473c4e</ProductId>
  <PromoCode>sample string 6</PromoCode>
  <QuoteNotificationSent>true</QuoteNotificationSent>
  <QuoteReference>sample string 8</QuoteReference>
  <SelectedCoverOptionId>637f228a-35a7-4ca7-afcf-bb56728f71dc</SelectedCoverOptionId>
  <SelectedExtras xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>bcd15036-4054-4a38-bf2c-25996b3d2bc1</d2p1:guid>
    <d2p1:guid>480bc044-20c8-4c05-924d-f7899c859229</d2p1:guid>
  </SelectedExtras>
  <SelectedFixedExcessId>d5e78adb-b02a-42e7-a9ef-47328edd0a8d</SelectedFixedExcessId>
  <SelectedVariableExcessId>2a53aa2b-0b12-4696-9deb-deba1c06164b</SelectedVariableExcessId>
  <TermsAgreed>true</TermsAgreed>
  <TotalBasketPrice>1</TotalBasketPrice>
</QuoteBasketResponse>