Last active
October 11, 2015 06:58
-
-
Save cox-auto-inc-codeweavers/3820487 to your computer and use it in GitHub Desktop.
Insurance SOAP Response With Quotes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<QuotesResponse xmlns="http://www.codeweavers.net/webservices/Insurance/">; | |
<QuotesResult> | |
<CustomerDetailsForm> | |
<Url>http://www.ycmi2.co.uk/[Access Point ID]/Integration/ForCustomer/[Unique Customer Reference]</Url> | |
<DisplayText>Update insurance details</DisplayText> | |
</CustomerDetailsForm> | |
<Calculations> | |
<Calculation> <!-- Example result with 2 valid quotes with the best quote specified for given vehicle --> | |
<Id>Your Unique Vehicle Identifier</Id> | |
<Vehicle> | |
<Identifier>12345</Identifier> | |
<IdentifierType>CapShortCode</IdentifierType> | |
<Value>12000</Value> | |
<DateOfRegistration>2009</DateOfRegistration> | |
</Vehicle> | |
<Companies> | |
<Company> | |
<CampaignId>5</CampaignId> | |
<Name>Insurer Name</Name> | |
<AnnualPremium>274.12</AnnualPremium> | |
<MonthlyPremium>24.90</MonthlyPremium> | |
<MonthlyPremiumDetails> | |
<Deposit>45.69</Deposit> | |
<NumberOfPayments>10</NumberOfPayments> | |
<TotalAmountPayable>294.69</TotalAmountPayable> | |
<Apr>21.0</Apr> | |
</MonthlyPremiumDetails> | |
<RestrictionApplies>false</RestrictionApplies> | |
<LogoUrl>DEPRECATED</LogoUrl> <!-- use <Urls><Logo> instead --> | |
<Urls> | |
<Logo>URL for company logo will be returned here</Logo> | |
<ReviewAndBuy>URL for the review and buy page</ReviewAndBuy> | |
<EmailMe>URL to send an email containing the quote details</EmailMe> | |
<KeyFacts>URL to the keyfacts PDF document</KeyFacts> | |
</Urls> | |
<IsBestQuote>false</IsBestQuote> | |
</Company> | |
<Company> | |
<CampaignId>7</CampaignId> | |
<Name>Insurer Name</Name> | |
<AnnualPremium>357.66</AnnualPremium> | |
<MonthlyPremium>32.49</MonthlyPremium> | |
<MonthlyPremiumDetails> | |
<Deposit>59.61</Deposit> | |
<NumberOfPayments>10</NumberOfPayments> | |
<TotalAmountPayable>384.51</TotalAmountPayable> | |
<Apr>21.0</Apr> | |
</MonthlyPremiumDetails> | |
<RestrictionApplies>False</RestrictionApplies> | |
<Urls> | |
<Logo>URL for company logo will be returned here</Logo> | |
<ReviewAndBuy>URL for the review and buy page</ReviewAndBuy> | |
<EmailMe>URL to send an email containing the quote details</EmailMe> | |
<KeyFacts>URL to the keyfacts PDF document</KeyFacts> | |
</Urls> | |
<IsBestQuote>true</IsBestQuote> | |
</Company> | |
</Companies> | |
</Calculation> | |
<Calculation> <!-- Example result with no valid quotes for given vehicle --> | |
<Id>Your Unique Vehicle Identifier</Id> | |
<Vehicle> | |
<Identifier>42034</Identifier> | |
<IdentifierType>CapShortCode</IdentifierType> | |
<Value>12000</Value> | |
<DateOfRegistration>2009</DateOfRegistration> | |
</Vehicle> | |
<Companies /> | |
</Calculation> | |
<Calculation> <!-- Example result with vehicle lookup error --> | |
<Id>Your Unique Vehicle Identifier</Id> | |
<Vehicle> | |
<Identifier>999999</Identifier> | |
<IdentifierType>CapShortCode</IdentifierType> | |
<Value>12000</Value> | |
<DateOfRegistration>2009</DateOfRegistration> | |
</Vehicle> | |
<Companies /> | |
<Error> | |
<Message>Vehicle could not be found for CapId: 999999</Message> | |
</Error> | |
</Calculation> | |
</Calculations> | |
</QuotesResult> | |
</QuotesResponse> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment