Create one or more product surcharges to associate with a root product.
Resource
/connect/insurance/product-surcharges/bulk
Resource Example
Replace {yourInstance} with the My Domain name of your Salesforce org.
https://{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
{
"records": [
{
"name": "AutoVehicleTax",
"surchargeId": "01cLO000000EMslOKL",
"rootProductId": "01tDR000000EMslYAG",
"productPath": "01tDR000000EMslYAG/11BDR00000000T72AI",
"effectiveFromDate": "2024-05-30T10:30:00",
"effectiveToDate": "2024-11-01T10:30:00",
"isProrationEligible": true,
"isRefundEligible": true,
"isActive": true,
"ruleApiName": "autoVehicleTaxRule",
"ruleCriteria": [
{
"conditions": [
{
"contextTagName": "SalesTransactionItemAttribute",
"operator": "LessThan",
"conditionIndex": 1,
"attributeName": "Annual Milage",
"attributePicklistValueId": null,
"type": "Attribute",
"attributeId": "0tjDR00000000VGYAY",
"dataType": "Number",
"values": [
"50000"
]
}
],
"rootObjectId": "01tDR000000EMslYAG",
"productRelatedComponent": "",
"criteriaIndex": 1,
"sourceContextTagName": "ProductBasedOn",
"sourceOperator": "Equals",
"sourceDataType": "String",
"sourceValues": [
"11BDR00000000T72AI"
]
},
{
"conditions": [
{
"contextTagName": "SalesTransactionItemAttribute",
"operator": "LessThan",
"conditionIndex": 1,
"attributeName": "Comprehensive Deductible",
"type": "Attribute",
"attributePicklistValueId": null,
"attributeId": "0tjDR00000000UaYAI",
"dataType": "Number",
"values": [
"$5000"
]
}
],
"rootObjectId": "01tDR000000EMslYAG",
"productRelatedComponent": "",
"criteriaIndex": 2,
"sourceContextTagName": "Product",
"sourceOperator": "Equals",
"sourceDataType": "String",
"sourceValues": [
"01tDR000000EMsoYAG"
]
}
]
}
]
}
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| records | Product Surcharge Post Input[] | List of the product surcharges. | Required | 63.0 |