You are here:
InsQuoteService:getAccountQuotes
Use this service to retrieve quote records associated with an
accountId.
Method: getAccountQuotes
Description
This service is intended for Experience Site users who don’t have access to quotes and the default quote list.
How It Works
-
If the user is an authenticated Experience Site User:
-
The service decrypts the provided
accountId. If theaccountIdprovided is not encrypted and can't be decrypted, the service throws an exception. -
The service decrypts the provided
accountId. If theaccountIdprovided is not encrypted and can't be decrypted, the service throws an exception. -
The quote fields returned are based on the QuoteDetail field set and exclude the fields not in CustomerCommunityFLSCheckFields.
ObjectIdsare encrypted.
-
-
If the user is a Guest User, an IllegalArgumentException error message displays: "Method
getAccountQuotesis not supported for Guest User." -
For other user types:
-
The service queries for quotes where
Quote.AccountId= <accountId> LIMIT 10000. -
The quote fields returned are based on the QuoteDetail field set.
-
Remote Options
Remote Option |
Description |
|---|---|
|
Required. The |
Output JSON
The service returns a quote list in the output JSON.
{
"error": "OK",
"quoteList": [
{
"Id": "cfqsBqZvLizhq97-3uhwCPPAdOk2JUvR7WoUHsuSMUw.R0wt7dIpwjaoYN46iO6-5vtTWy2JMfMxHEHlWnOc9NYQTYXsaUa7wKM9_rVBSZgR",
"<namespace>__TotalFeeAmount__c": 0,
"<namespace>__TotalTaxAmount__c": 0,
"<namespace>__TotalAmount__c": 20,
"<namespace>__GroupCensusId__c": "a4f5w000000yIixAAE",
"<namespace>__Type__c": "New Business",
"<namespace>__RecordTypeName__c": "Quote",
"<namespace>__RatingType__c": "Composite",
"<namespace>__RootItemTotal__c": 20,
"AccountId": "8SjtZ9HRDSZwNMblhy1VZKjj5J20HJXhYAQ75iwd_Ns.GC1PAoy2IUb1uvWCth0ycEVvgP_iWUgOTA1O9uqTJIos70elovNXQV5DWlpc9I4T",
"<namespace>__TotalPremiumforTerm__c": 20,
"<namespace>__TotalSumInsured__c": 0,
"<namespace>__Term__c": "Annual",
"<namespace>__TotalTaxTermDifference__c": 0,
"<namespace>__TotalPremiumTermDifference__c": 20,
"<namespace>__TotalFeeTermDifference__c": 0,
"<namespace>__TotalAmountTermDifference__c": 20,
"<namespace>__EndDate__c": "2022-04-15",
"<namespace>__EffectiveDate__c": "2021-04-16",
"<namespace>__DaysRemaining__c": 365
}
]
}
