You are here:
InsProductAsyncRatingService:fetchRepriceProductPrice
Use this service to fetch asynchronous rating results for a reprice product request.
Class: InsProductAsyncRatingService
Method: fetchRepriceProductPrice
This service is built for group benefits large group quoting use cases.
How It Works
- This service takes the ID of an insurance rating request as input.
- The service queries the stored rating request and retrieves
info including the status, rated product IDs, rating options, rating inputs,
rating outputs and the
prodResultJsonassociated with theinsuranceRatingRequestId.Note Prices for rated products are provided by the service only if the rating request has a status of Completed or Rated. - The service calculates the total prices for the product
associated with the submitted
repriceProductrequest. - The service returns the updated
prodResultJson.
Inputs
| Input | Description |
|---|---|
requestId
|
Required. The ID of the insurance rating request. This ID is generated when the service is called. |
Remote Options
| Option | Description |
|---|---|
includeMemberPrices
|
Indicates whether or not to include the member-level prices in the output. The default
value is |
Input JSON
Here's the sample input JSON:
{
"requestId": "8zkRO000000004D",
}Options JSON
Here's the sample options JSON:
{
"includeMemberPrices": false
} Output JSON
Here's the sample output JSON:
{
"Status": "Completed",
"result":
{
"totalSize": 2,
"records": [
{
"nameResult": {
"childProducts": {},
"attributeCategories": {}
},
"fields": {
"Price": 325.0,
"currencySymbol": "$",
"currencyCode": "USD",
"productId": "01t8c00000P49yeAAB",
"ParentClassCode__c": null,
"ParentClassId__c": null,
"TotalInsuredFormula__c": null,
"Term__c": null,
"PricingFormula__c": "aggTotalPrem",
"IsConfigurable__c": true,
"RecordTypeName__c": "Product",
"PricingSource__c": null,
"ImageId__c": null,
"Tier__c": null,
"IsRecommended__c": false,
"RateBandId__c": null,
"SubType__c": null,
"Type__c": null,
"MarketSegment__c": null,
"LineOfBusiness__c": "Group Benefits",
"ProductCode": "dentalPremium",
"Family": null,
"Description": null,
"Name": "dentalPremium",
"Id": "01t8c00000P49yeAAB",
"CalculatedPriceData": {
"aggTotalPrem": 325.0,
"DentalPremiumCalcMatrixAgeBased__QuotePremium": 325.0
}
},
"displaySequence": -1
},
{
"nameResult": {
"childProducts": {},
"attributeCategories": {}
},
"fields": {
"Price": 1020.0,
"currencySymbol": "$",
"currencyCode": "USD",
"productId": "01t8c00000PLIiEAAX",
"ParentClassCode__c": null,
"ParentClassId__c": null,
"TotalInsuredFormula__c": null,
"Term__c": null,
"PricingFormula__c": "aggTotalPrem",
"IsConfigurable__c": true,
"RecordTypeName__c": "Product",
"PricingSource__c": null,
"ImageId__c": null,
"Tier__c": null,
"IsRecommended__c": false,
"RateBandId__c": null,
"SubType__c": null,
"Type__c": "Medical",
"MarketSegment__c": null,
"LineOfBusiness__c": "Group Benefits",
"ProductCode": "MEDICAL",
"Family": null,
"Description": null,
"Name": "Medical",
"Id": "01t8c00000PLIiEAAX",
"CalculatedPriceData": {
"aggTotalPrem": 325.0,
"MedicalCalcMatrixAgeBased__QuotePremium": 325.0
}
},
"displaySequence": -1
}
]
}
}

