---
schema_version: "1"
id: f60a63db48f6fb271ec332413edf7dde5679b441f0aa3a767abab7d359cc16fe
title: ConnectApi.ChangeItemFee​InputRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_change_item_fee.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_change_item_fee.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4d8634646c7c8e5e258b2cd8ad611acfd898b53ffdef33f52567bfb2b6621509
description: Input representation for Change Item Fee Input
---
# ConnectApi.ChangeItemFee​InputRepresentation

Input representation for Change Item Fee Input

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d597038e47">Property</th>

              <th class="featureTableHeader vertical-align-top " id="d597038e50">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d597038e53">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d597038e56">Required or Optional</th>

              <th class="featureTableHeader vertical-align-top " id="d597038e59">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">amount</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">Double</td>

              <td class="entry" headers="d597038e53" data-title="Description"><span class="ph" id="amount"><a name="amount"><!-- --></a>Positive value used to calculate the fee amount, as described
                  by the <samp class="codeph apex_code">amountType</samp>.</span></td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">amountType</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">String</td>

              <td class="entry" headers="d597038e53" data-title="Description">
                <span class="ph" id="amountType"><a name="amountType"><!-- --></a>Describes how the fee amount is calculated. Valid values
                  are:</span><a name="amountTypeValues"><!-- --></a>
                <ul class="ul bulletList" id="amountTypeValues">
                  <li class="li">
                    <samp class="codeph apex_code">AmountWithTax</samp>—Value of <samp class="codeph apex_code">amount</samp> is the fee amount, including tax.
                  </li>

                  <li class="li">
                    <samp class="codeph apex_code">AmountWithoutTax</samp>—Value of
                    <samp class="codeph apex_code">amount</samp> is the fee amount, not
                    including tax. Tax is calculated on the value and added.
                  </li>

                  <li class="li">
                    <samp class="codeph apex_code">Percentage</samp>—Value of <samp class="codeph apex_code">amount</samp> is a percentage. To determine the fee
                    amount, <samp class="codeph apex_code">amount</samp> is divided by 100, and
                    then multiplied by the TotalPrice and TotalTaxAmount of the associated
                    OrderItemSummary, prorated for the quantity being returned.
                  </li>

                  <li class="li">
                    <samp class="codeph apex_code">PercentageGross</samp>—Value of
                    <samp class="codeph apex_code">amount</samp> is a percentage. To determine
                    the fee amount, <samp class="codeph apex_code">amount</samp> is divided by
                    100, and then multiplied by the TotalLineAmountWithTax of the associated
                    OrderItemSummary, prorated for the quantity being returned.
                  </li>

                </ul>
              </td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">description</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">String</td>

              <td class="entry" headers="d597038e53" data-title="Description"><span class="ph" id="description"><a name="description"><!-- --></a>Description of the fee.</span></td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">priceBookEntryId</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">String</td>

              <td class="entry" headers="d597038e53" data-title="Description"><span class="ph" id="priceBookEntryId"><a name="priceBookEntryId"><!-- --></a>ID of the price book entry associated with the fee
                  product.</span></td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required unless price books are optional in the org</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">product2Id</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">String</td>

              <td class="entry" headers="d597038e53" data-title="Description"><span class="ph" id="product2Id"><a name="product2Id"><!-- --></a>ID of the product representing the fee.</span></td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d597038e47 d597038e59" data-title="Property"><samp class="codeph apex_code">reason</samp></td>

              <td class="entry" headers="d597038e50" data-title="Type">String</td>

              <td class="entry" headers="d597038e53" data-title="Description"><span class="ph" id="reason"><a name="reason"><!-- --></a>Reason for the fee. The value must match an entry in the
                  OrderProductSummaryChange object’s Reason picklist.</span></td>

              <td class="entry" headers="d597038e56" data-title="Required or Optional">Required</td>

              <td class="entry" headers="d597038e47 d597038e59" data-title="Property">57.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.ChangeInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_change.htm "A list of changes to OrderItemSummaries that make up an order change, such as a cancel or return.")
- [ConnectApi.ChangeItemInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_change_item.htm "Change to an order item summary, such as a return or cancel. You specify whether to prorate the associated shipping charge based on the price change. The order item summary can’t be a shipping charge.")
- [previewCancel(orderSummaryId, changeInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_OrderSummary_static_methods.htm#apex_ConnectAPI_OrderSummary_previewCancel_1 "Retrieve the expected change order values for canceling one or more OrderItemSummaries from an OrderSummary, without actually executing the cancel.")
- [previewReturn(orderSummaryId, changeInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_OrderSummary_static_methods.htm#apex_ConnectAPI_OrderSummary_previewReturn_1 "Retrieve the expected change order values for a simple return of one or more OrderItemSummaries from an OrderSummary, without actually executing the return.")
- [submitCancel(orderSummaryId, changeInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_OrderSummary_static_methods.htm#apex_ConnectAPI_OrderSummary_submitCancel_1 "Cancel one or more OrderItemSummaries from an OrderSummary, and create a corresponding change order.")
- [submitReturn(orderSummaryId, changeInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_OrderSummary_static_methods.htm#apex_ConnectAPI_OrderSummary_submitReturn_1 "Return one or more OrderItemSummaries from an OrderSummary, and create a corresponding change order. This return is a simple return that creates a change order but not a ReturnOrder.")