Newer Version Available
Insurance Product Rating (POST, PATCH)
Rate products or update product ratings for use in Insurance quoting
processes.
- Resource
-
1/connect/insurance/product-rating - Resource example
-
1https://yourInstance.salesforce.com/services/data/v64.0/connect/insurance/product-rating - Available version
- 63.0
- HTTP methods
- PATCH, POST
- Request body for PATCH
-
- JSON example
-
1{ 2 "contextId": "a49103b233638b918217c74eced69220e534e160c3d3d35bc8cf6608515aeab3", 3 "ratingOptions": { 4 "executePricing": true, 5 "executeConfigurationRules": false 6 }, 7 "updatedNodes": [ 8 { 9 "instanceKeys": [ 10 "AutoSilver", 11 "BMW", 12 "Tim1" 13 ], 14 "productCode": "driver", 15 "attributes": { 16 "DriverAccidentPoints": 1, 17 "AgeFirstLicensed": 50, 18 "DriverMVRPoints": 1 19 }, 20 "targetRecords": [ 21 "003DR000002ov8NYAQ", 22 "001DR000003avQCYAY" 23 ] 24 } 25 ], 26 "addedNodes": [ 27 { 28 "instanceKeys": [ 29 "AutoSilver", 30 "Tesla" 31 ], 32 "productCode": "auto", 33 "attributes": { 34 "Year": "2022", 35 "Model": "Y" 36 } 37 }, 38 { 39 "instanceKeys": [ 40 "AutoSilver", 41 "Tesla", 42 "collision1" 43 ], 44 "productCode": "collision", 45 "attributes": { 46 "Limit": 500, 47 "Deductible": 1000 48 } 49 }, 50 { 51 "instanceKeys": [ 52 "AutoSilver", 53 "Tesla", 54 "Driver1" 55 ], 56 "productCode": "driver", 57 "attributes": { 58 "DriverAccidentPoints": 5, 59 "AgeFirstLicensed": 30, 60 "DriverMVRPoints": 1 61 }, 62 "targetRecords": [ 63 "003DR000002oxCfYAI", 64 "001DR000003azdpYAA" 65 ] 66 }, 67 { 68 "instanceKeys": [ 69 "AutoSilver", 70 "Audi", 71 "Collision2" 72 ], 73 "productCode": "collision", 74 "attributes": { 75 "Limit": 500, 76 "Deductible": 1000 77 } 78 } 79 ] 80} - Properties
-
Name Type Description Required or Optional Available Version addedNodes Rating Input Node[] List of added nodes. Optional 63.0 additionalFields Map<String, Object> Map of additional fields that must be updated in the quote context. Optional 63.0 contextId String Context ID. Required 63.0 deletedNodes Rating Input Node[] List of deleted nodes. Optional 63.0 effectiveDate String Date used to find the active pricing procedure for pricing. The default value is the current date. Optional 63.0 ratingDate String Date that's used to find the active pricing procedure. Optional 63.0 ratingOptions Rating Options Input[] Options for rating. Optional 63.0 updatedNodes Rating Input Node[] List of updated nodes. Optional 63.0
- Response body for PATCH
- Product Rating
- Request body for POST
-
- JSON example
-
1{ 2 "transactionType": "AutoTransactionType", 3 "ratingOptions": { 4 "executeConfigurationRules": false 5 }, 6 "ratingInputs": [ 7 { 8 "productCode": "autoSilver", 9 "instanceKeys": [ 10 "AutoSilver" 11 ] 12 }, 13 { 14 "productCode": "auto", 15 "instanceKeys": [ 16 "AutoSilver", 17 "Auto1" 18 ], 19 "attributes": { 20 "Make": "BMW", 21 "AutoValue": "20000", 22 "Year": "2024", 23 "Model": "SUV" 24 } 25 }, 26 { 27 "productCode": "comprehensive", 28 "instanceKeys": [ 29 "AutoSilver", 30 "Auto1", 31 "Comprehensive" 32 ], 33 "attributes": { 34 "Limit": "2000", 35 "Deductible": "100" 36 } 37 } 38 ] 39} - Properties
-
Name Type Description Required or Optional Available Version additionalFields Map<String, Object> Map of additional fields that must be updated in the quote context. Optional 63.0 effectiveDate String Date used to find the active pricing procedure for pricing. The default value is the current date. Optional 63.0 ratingInputs Rating Input Node[] The input JSON that contains the attribute values of each context node. Required 63.0 ratingOptions Rating Options Input[] The options for rating. Optional 63.0 transactionType String Name of the transaction processing type. Required 63.0
- Response body for POST
- Product Rating Output