Expected Revenue (PATCH)

Calculate the expected revenue, derived both from an Insurance Rate Plan Commission object, such as a flat fee and percentage premium, and the premium, fee, or premium equivalent amount on Insurance Rate Plan. The expected revenue amount is rolled up from Insurance Rate Plan to Insurance Coverage and Insurance Policy expected revenue amount.

Resource 

{policyId} is a placeholder.

1/connect/insurance/brokerage/policies/{policyId}/expected-revenue

Resource Example 

Replace {yourInstance} with the My Domain name of your Salesforce org.

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/brokerage/policies/0YTSG0000000o9h4AA/expected-revenue?businessSObjectType=InsuranceRatePlan&recordId=1CcSG00000000fx0AA

Available Version 

63.0

HTTP Methods 

PATCH

Path Parameter for PATCH 

NameTypeDescriptionRequired or OptionalAvailable Version
policyIdStringID of parent policy for which the expected revenue is calculated.Required63.0

Request Parameters for PATCH 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
businessSObjectTypeStringName of the business sObject to calculate expected revenue. Possible values are:
  • InsurancePolicy
  • InsurancePolicyCoverage
  • InsuranceRatePlan
Optional63.0
recordIdStringID of the business sObject for which expected revenue must be calculated.Optional63.0

Request Body for PATCH 

JSON Example 

1{
2  "expressionSetName": "expressionSetName",
3  "ratePlanCommissions": [
4    {
5      "Name": "RPC-1",
6      "Type": "GradedPercent",
7      "amountStartRange": 0,
8      "amountEndRange": 1000
9    },
10    {
11      "Name": "RPC-1",
12      "Type": "GradedPercent",
13      "amountStartRange": 1001,
14      "amountEndRange": 100000
15    }
16  ]
17}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
expressionSetNameStringName of expression set to be used for expected revenue calculation. If unspecified, a value from the InsPolicyManagementConfig setup object is taken.Optional63.0
ratePlanCommissionsListList of rate plan commissions to be used for expected revenue calculation. This is a valid input only when businessSObjectType is InsuranceRatePlan.Optional63.0

Response Body for PATCH 

Expected Revenue