Product Surcharge Post Input

Input representation of product surcharge details.

JSON Example 

1{
2  "name": "AutoVehicleTax",
3  "surchargeId": "01cLO000000EMslOKL",
4  "rootProductId": "01tDR000000EMslYAG",
5  "productPath": "01tDR000000EMslYAG/11BDR00000000T72AI",
6  "effectiveFromDate": "2024-05-30T10:30:00",
7  "effectiveToDate": "2024-11-01T10:30:00",
8  "isProrationEligible": true,
9  "isRefundEligible": true,
10  "isActive": true,
11  "ruleApiName": "autoVehicleTaxRule",
12  "ruleCriteria": [
13    {
14      "conditions": [
15        {
16          "contextTagName": "SalesTransactionItemAttribute",
17          "operator": "LessThan",
18          "conditionIndex": 1,
19          "attributeName": "Annual Milage",
20          "attributePicklistValueId": null,
21          "type": "Attribute",
22          "attributeId": "0tjDR00000000VGYAY",
23          "dataType": "Number",
24          "values": [
25            "50000"
26          ]
27        }
28      ],
29      "rootObjectId": "01tDR000000EMslYAG",
30      "productRelatedComponent": "",
31      "criteriaIndex": 1,
32      "sourceContextTagName": "ProductBasedOn",
33      "sourceOperator": "Equals",
34      "sourceDataType": "String",
35      "sourceValues": [
36        "11BDR00000000T72AI"
37      ]
38    }
39  ],
40  "sequenceNumber": 0
41}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
effectiveFromDateStringEffective from date of the product surcharge.Optional63.0
effectiveToDateStringEffective to date of the product surcharge.Optional63.0
isActiveBooleanIndicates whether the product surcharge is active (true) or not (false). Currently, only active product surcharges are supportedOptional63.0
isProrationAllowedBooleanIndicates whether the product surcharge is allowed for proration (true) or not (false).Optional63.0
isRefundAllowedBooleanIndicates whether the product surcharge is allowed for refund (true) or not (false).Optional63.0
nameStringName of the product surcharge.Required63.0
productPathStringA path containing the product IDs that roll up to the parent product.Required63.0
productRelatedComponentIdStringID of the product related component associated with the product surcharge.Optional63.0
rootProductIdStringID of the root product associated with the product surcharge.Required63.0
ruleApiNameStringRule API name associated with product surcharge.Optional63.0
ruleCriteriaInsurance Rule Criteria Input[]Rule criteria of the dynamic rule for the product surcharge.Optional63.0
sequenceNumberIntegerOrder in which surcharges are calculated when multiple surcharges are applied to a product.Optional67.0
surchargeIdStringID of the surcharge associated with the product surcharge.Required63.0