Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Cost Calculation (PATCH)

Calculate the premium, fee, or premium-equivalent amount at InsuranceRatePlanLineItem based on the underlying rate plan. The InsuranceRatePlanLineItem premium, fees, or premium equivalent amount is rolled up to the Insurance Rate Plan, Insurance Coverage, and Insurance Policy Premium Amount.
Resource
1/connect/insurance/brokerage/policies/policyId/expected-rates
Resource example
1https://yourInstance.salesforce.com/services/data/v68.0/connect/insurance/brokerage/policies/0YTSG0000000o9h4AA/expected-rates?businessSObjectType=InsuranceRatePlan&recordId=1CcSG00000000fx0AA
Available version
63.0
HTTP methods
PATCH
Path parameter for PATCH
Name Type Description Required or Optional Available Version
policyId String

ID of parent policy for which the expected cost is calculated.

Required 63.0
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
businessSObjectType String Name of business SObject to calculate premium. Possible values are:
  • InsurancePolicy
  • InsurancePolicyCoverage
  • InsuranceRatePlan
  • InsuranceRatePlanLineItem
Optional 63.0
recordId String ID of business SObject for which premium calculation is done. Optional 63.0
Request body for PATCH
JSON example
1{
2 "action": "rollup",
3 "expressionSetName": "expressionSetName",
4 "ratePlanLineItems": [
5  {
6   "id": "xxxxxx",
7   "rate": 100,
8   "enrollmentCount": 1000,
9   "custom_field_1": "xxxxxx"
10  },
11  {
12   "id": "yyyyy",
13   "rate": 50,
14   "enrollmentCount": 200,
15   "custom_field_1": "xxxxxx"
16  }
17 ]
18}
Properties
Name Type Description Required or Optional Available Version
action String Course of action for processing RatePlanLineItems. Valid values:
  • rollup: Calculates premium and roll ups it to Insurance Policy level.
  • calculate: Calculates premium and returns it in the output.
Optional 63.0
expressionSet​Name String Name of the expression set for cost calculation. If not specified, the value from the InsPolicyManagementConfig setup object is taken. Optional 63.0
ratePlan​LineItems List<Map<String, Object>> List of insurance rate plan line items. Optional 63.0
Response body for PATCH
Cost Calculation