Insurance Product Surcharge Bulk (POST)

Create one or more product surcharges to associate with a root product.

Resource 

1/connect/insurance/product-surcharges/bulk

Resource Example 

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

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/insurance/product-surcharges/bulk

Available Version 

63.0

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2    "records": [
3        {
4            "name": "AutoVehicleTax",
5            "surchargeId": "01cLO000000EMslOKL",
6            "rootProductId": "01tDR000000EMslYAG",
7            "productPath": "01tDR000000EMslYAG/11BDR00000000T72AI",
8            "effectiveFromDate": "2024-05-30T10:30:00",
9            "effectiveToDate": "2024-11-01T10:30:00",
10            "isProrationEligible": true,
11            "isRefundEligible": true,
12            "isActive": true,
13            "ruleApiName": "autoVehicleTaxRule",
14            "ruleCriteria": [
15                {
16                    "conditions": [
17                        {
18                            "contextTagName": "SalesTransactionItemAttribute",
19                            "operator": "LessThan",
20                            "conditionIndex": 1,
21                            "attributeName": "Annual Milage",
22                            "attributePicklistValueId": null,
23                            "type": "Attribute",
24                            "attributeId": "0tjDR00000000VGYAY",
25                            "dataType": "Number",
26                            "values": [
27                                "50000"
28                            ]
29                        }
30                    ],
31                    "rootObjectId": "01tDR000000EMslYAG",
32                    "productRelatedComponent": "",
33                    "criteriaIndex": 1,
34                    "sourceContextTagName": "ProductBasedOn",
35                    "sourceOperator": "Equals",
36                    "sourceDataType": "String",
37                    "sourceValues": [
38                        "11BDR00000000T72AI"
39                    ]
40                },
41                {
42                    "conditions": [
43                        {
44                            "contextTagName": "SalesTransactionItemAttribute",
45                            "operator": "LessThan",
46                            "conditionIndex": 1,
47                            "attributeName": "Comprehensive Deductible",
48                            "type": "Attribute",
49                            "attributePicklistValueId": null,
50                            "attributeId": "0tjDR00000000UaYAI",
51                            "dataType": "Number",
52                            "values": [
53                                "$5000"
54                            ]
55                        }
56                    ],
57                    "rootObjectId": "01tDR000000EMslYAG",
58                    "productRelatedComponent": "",
59                    "criteriaIndex": 2,
60                    "sourceContextTagName": "Product",
61                    "sourceOperator": "Equals",
62                    "sourceDataType": "String",
63                    "sourceValues": [
64                        "01tDR000000EMsoYAG"
65                    ]
66                }
67            ]
68        }
69    ]
70}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
recordsProduct Surcharge Post Input[]List of the product surcharges.Required63.0

Response Body for POST 

Product Surcharge List