Newer Version Available
Reprice Insurance Product Action
Recalculate the price of Insurance products based on user inputs.
This action is available in API version 63.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v64.0/actions/standard/repriceInsuranceProduct
- Formats
- JSON
- HTTP Methods
- GET, POST
- Authentication
- Bearer Token
Inputs
| Input | Details |
|---|---|
| contextId |
|
| pricingProcedureApiName |
|
| addedNodes |
|
| updatedNodes |
|
| deletedNodes |
|
| effectiveDate |
|
| ratingDate |
|
| additionalFields |
|
| executeConfigurationRules |
|
Outputs
| Output | Details |
|---|---|
| contextId |
Type String DescriptionThe context ID of the insurance quote. |
| pricingResults |
Type Map<String, Object> DescriptionRecalculated pricing details of the insurance product. |
Example
Sample Request
1{
2 "inputs": [
3 {
4 "contextId": "273e01fdfb6f9f21428869eb784ee756976afb0e9bdc49f2a360be397a10ca12",
5 "pricingProcedureApiName": "InsuranceDefaultPricingProcedure",
6 "effectiveDate": "2024-10-18",
7 "addedNodes": "[{\"instanceKeys\":[\"AutoRoot\",\"AutoBundle\",\"NewDriver\"],\"productCode\":\"autoDriver\",\"attributes\":{\"DriverAccidents\":4},\"targetRecords\":[\"003xx000004WhKhAAK\"]}]"
8 }
9 ]
10}Sample Response
1[
2 {
3 "actionName": "repriceInsuranceProduct",
4 "errors": null,
5 "invocationId": null,
6 "isSuccess": true,
7 "outcome": null,
8 "outputValues": {
9 "contextId": "273e01fdfb6f9f21428869eb784ee756976afb0e9bdc49f2a360be397a10ca12",
10 "pricingResults": {
11 "AutoSilver": {
12 "ProductCode": "autoSilver",
13 "NetUnitPrice": 1949.88,
14 "ProratedQLITaxAmount": 0,
15 "NetTotalPrice": 1949.88,
16 "childNodes": [
17 {
18 "BodilyInjuryCoverage": {
19 "ProductCode": "bipd",
20 "NetUnitPrice": 990.9,
21 "ProratedQLITaxAmount": 0,
22 "NetTotalPrice": 990.9,
23 "Bodily_Injury_Per_Person_Limit": 1000,
24 "Property_Damage_Per_Accident_Limit": 1000,
25 "Bodily_Injury_Per_Accident_Limit": 1000
26 }
27 },
28 {
29 "Auto2": {
30 "ProductCode": "auto",
31 "NetUnitPrice": 372.25,
32 "ProratedQLITaxAmount": 0,
33 "NetTotalPrice": 372.25,
34 "Auto_Value": 100000,
35 "childNodes": [
36 {
37 "Collision2": {
38 "ProductCode": "collision",
39 "NetUnitPrice": 372.25,
40 "ProratedQLITaxAmount": 0,
41 "NetTotalPrice": 372.25,
42 "Deductible": 100,
43 "Limit": 1000
44 }
45 },
46 {
47 "Driver2": {
48 "ProductCode": "driver",
49 "NetUnitPrice": null,
50 "ProratedQLITaxAmount": 0,
51 "NetTotalPrice": 0,
52 "Driver_Accident_Points": 15,
53 "Driver_MVR_Points": 8,
54 "Age_First_Licensed": 15,
55 "Age": 55
56 }
57 }
58 ]
59 }
60 },
61 {
62 "Auto1": {
63 "ProductCode": "auto",
64 "NetUnitPrice": 586.72,
65 "ProratedQLITaxAmount": 0,
66 "NetTotalPrice": 586.72,
67 "childNodes": [
68 {
69 "Collision1": {
70 "ProductCode": "collision",
71 "NetUnitPrice": 286.8,
72 "ProratedQLITaxAmount": 0,
73 "NetTotalPrice": 286.8,
74 "Deductible": 500,
75 "Limit": 2000
76 }
77 },
78 {
79 "925a77d1-949c-485a-b1ed-10351a4e822f": {
80 "ProductCode": "comprehensive",
81 "NetUnitPrice": 299.92,
82 "ProratedQLITaxAmount": 0,
83 "NetTotalPrice": 299.92,
84 "Deductible": 100,
85 "Limit": 1000
86 }
87 },
88 {
89 "Driver1": {
90 "ProductCode": "driver",
91 "NetUnitPrice": null,
92 "ProratedQLITaxAmount": 0,
93 "NetTotalPrice": 0,
94 "Driver_Accident_Points": 10,
95 "Driver_MVR_Points": 6,
96 "Age_First_Licensed": 6,
97 "Age": 34
98 }
99 }
100 ]
101 }
102 }
103 ]
104 }
105 }
106 },
107 "sortOrder": -1,
108 "version": 1
109 }
110]