Newer Version Available

This content describes an older version of this product. View Latest

Change Item Fee Input

Input representation for Change Item Fee Input
Root XML tag
<changeItemFeeInput>
JSON example
1{
2  "amount": "10",
3  "amountType": "AmountWithoutTax",
4  "description": "Restocking Fee",
5  "product2Id": "10uxx0000004GKbAAM",
6  "reason": "Other"
7}
Properties
Name Type Description Required or Optional Available Version
amount Double Positive value used to calculate the fee amount, as described by the amountType. Required 57.0
amountType String Describes how the fee amount is calculated. Valid values are:
  • AmountWithTax—Value of amount is the fee amount, including tax.
  • AmountWithoutTax—Value of amount is the fee amount, not including tax. Tax is calculated on the value and added.
  • Percentage—Value of amount is a percentage. To determine the fee amount, amount is divided by 100, and then multiplied by the TotalPrice and TotalTaxAmount of the associated OrderItemSummary, prorated for the quantity being returned.
  • PercentageGross—Value of amount is a percentage. To determine the fee amount, amount is divided by 100, and then multiplied by the TotalLineAmountWithTax of the associated OrderItemSummary, prorated for the quantity being returned.
Required 57.0
description String Description of the fee. Required 57.0
priceBookEntryId String ID of the price book entry associated with the fee product. Required unless price books are optional in the org 57.0
product2Id String ID of the product representing the fee. Required 57.0
reason String Reason for the fee. The value must match an entry in the OrderProductSummaryChange object’s Reason picklist. Required 57.0