Create Insurance Rating Action
Create a runtime context that contains the details to create a quote.
This action is available in API version 66.0 and later.
URI: /services/data/vXX.X/actions/standard/createInsuranceRating
Where XX.X is the latest API version.
Formats: JSON
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
| Input | Type | Description |
|---|---|---|
additionalFields | String | Additional fields to include in the rating context. |
effectiveDate | Date | Required. Date from which the insurance policy coverage becomes effective. |
executeRating | String | Indicates whether rating must be executed ( true ) or not ( false ). The default value is true . |
ratingDate | Date | Date that’s used for rating calculations and rule evaluations. If not specified, the current date is used. |
ratingInputs | Map<String, Object> | Required. JSON string that contains the rating input nodes with product codes and attributes. |
ratingOptions | Apex-defined | An Apex runtime_industries_insurance.CreateInsuranceRatingOptions record that contains rating execution options to create insurance rating. |
rootProductCodes | String | Array of root product codes to include in the rating process. |
salesTransactionTypeId | String | ID of the sales transaction type. |
transactionType | String | Type of insurance transaction, such as NewBusiness, Renewal, and Endorsement. |
| Output | Details |
|---|---|
contextId | Type String Description Context ID of the insurance quote. |
pricingResults | Type Map<String, Object> Description Recalculated pricing details of the insurance product. |
productRatingOutput | Type Apex-defined Description An Apex ConnectApi__ProductRatingOutputRepresentation record that contains the product rating details. |
Sample Request
This is a sample request to call this invocable action from Apex code.
Sample Response