---
schema_version: "1"
id: 7da052fd378c5fd3bb2cb5c439af35f74c906e1b64b45c79fffe6fbbd8cf48ff
title: ConnectApi.CartSummary
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_cart_summary.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_summary.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e714c62acf2696d442e4fed931e330cfd6358dc4d3d550474bbabc025d43d369
description: A cart summary.
---
# ConnectApi.CartSummary

A cart summary.

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




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

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

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

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

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">accountId</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">ID of the account for the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">asyncOperation​Status</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Asynchronous processing status of the cart, if asynchronous processing is enabled for the store.
                This property returns <samp class="codeph nolang">Completed</samp> in Apex,
                because Apex operations always run synchronously.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">59.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">cartId</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">ID of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">currencyIsoCode</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Three-letter ISO 4217 currency code associated with the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">customFields</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm#apex_methods_system_sobject" title="Contains methods for the sObject data type."><samp class="codeph apex_code">SObject</samp></a>&gt;
              </td>

              <td class="entry" headers="d849913e42" data-title="Description">Array of sObjects and viewable custom fields for the sObjects. Field-level security rules from the <a class="xref" href="https://help.salesforce.com/s/articleView?id=commerce.comm_create_shopper_profile.htm&amp;type=5&amp;language=en_US" target="_blank">shopper profile</a> are applied to the custom fields. The rules are applied for registered shoppers and for the guest shopper profile. If no custom fields were specified, returns an empty collection.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">61.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">firstPymtGrand​TotalAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">First payment amount for subscription products, plus the total payment amount for non-subscription products. Includes taxes.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">60.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">firstPymt​TotalAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">The total amount on the first payment of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">63.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">firstPymt​TotalListPrice</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">The total list price on the first payment of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">63.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">firstPymtTotal​TaxAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Tax amount on the first payment for any subscription products, plus the total tax amount on non-subscription products.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">60.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">grandTotal​Amount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Grand total amount including shipping and tax for items in the cart, in the currency of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">hasGift</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type">Boolean</td>

              <td class="entry" headers="d849913e42" data-title="Description">Specifies whether the cart contains a gift (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">64.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">isSecondary</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type">Boolean</td>

              <td class="entry" headers="d849913e42" data-title="Description">Specifies whether the cart is secondary (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">53.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">name</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Name of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">ownerId</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">ID of the owner of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">ownerOrderId</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">ID of the owner of the order.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">58.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">purchaseOrder​Number</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Purchase order for the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">50.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">status</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#cartStatusEnum"><samp class="codeph apex_code">ConnectApi.​CartStatus</samp></a></td>

              <td class="entry" headers="d849913e42" data-title="Description">Status of the cart. Values are:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">Active—</samp>Cart is created and available for modifications, like adding or removing products or promotions.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Checkout—</samp>Cart is in checkout. If the customer modifies the cart, the current checkout session is canceled.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Closed—</samp>Checkout is complete and an order was created. The cart cannot be modified.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">PendingClosed—</samp>Cart is marked to be closed, but the request isn't completed yet. The cart can’t be modified. This value is available in API version 57.0 and later.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">PendingDelete—</samp>Cart is marked for delete, but the request isn't completed yet. The cart can’t be modified.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Processing—</samp>Cart is processing. For example, taxes are being calculated. The cart can’t be modified.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">taxType</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Tax type of the cart.<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Automatic</samp>—Automatic taxation policy.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">Gross</samp>—Gross taxation policy.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">Net</samp>—Net taxation policy.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d849913e45" data-title="Available Version">55.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalAmount​WithItem​Adjustment</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description"><span class="ph" id="totalAmountWithItemAdjustment"><a name="totalAmountWithItemAdjustment"><!-- --></a>Total amount, including both tier and
                  item level discounts but excluding cart level discounts, for all items in the
                  cart.</span></td>

              <td class="entry" headers="d849913e45" data-title="Available Version">61.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalCartLevel​Adjustment​Amount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description"><span class="ph" id="totalCartLevelAdjustmentAmount"><a name="totalCartLevelAdjustmentAmount"><!-- --></a>Total cart level discount amount for
                  the cart.</span></td>

              <td class="entry" headers="d849913e45" data-title="Available Version">61.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalChargeAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total amount for shipping and other charges in the currency of the cart. Includes adjustments from shipping promotions.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalListPrice</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total list price for all cart items plus shipping adjustments.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalProduct​Amount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total amount including discounts, but excluding shipping and tax, for product items in the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalProductAmount​AfterAdjustments</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total product amount, including promotions.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">52.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalProduct​Count</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total count of items in the cart. This field may not be accurate when <a class="xref" href="https://help.salesforce.com/s/articleView?id=commerce.comm_faster_add_to_cart.htm&amp;type=5&amp;language=en_US" target="_blank">faster add-to-cart</a> is turned on and quantity rules are enabled for products in the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalProduct​LineItemCount</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type">Integer</td>

              <td class="entry" headers="d849913e42" data-title="Description">Total count of line items, of the type Product, in the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">60.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalProduct​ListAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total list price for all products in the cart without any adjustments.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">59.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">total​Promotional​AdjustmentAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description"><span class="ph" id="totalAdjustmentAmount"><a name="totalAdjustmentAmount"><!-- --></a>Total promotional adjustment amount for items in
                  the cart.</span></td>

              <td class="entry" headers="d849913e45" data-title="Available Version">52.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalSubProduct​Count</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total quantity of all cart items with the selling model type Evergreen or Term-Defined.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">60.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">totalTaxAmount</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">Total tax amount for the cart, including tax on shipping, if applicable.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">type</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#cartTypeEnum"><samp class="codeph apex_code">ConnectApi.​CartType</samp></a></td>

              <td class="entry" headers="d849913e42" data-title="Description">Type of cart. Values are:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Cart</samp>—Cart created by a customer.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">PayNowReadOnly</samp>—Clone of a Template cart that the customer can check out with using the Pay Now feature.
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">Template</samp>—Cart created by an internal user.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">uniqueProduct​Count</samp></td>

              <td class="entry" headers="d849913e39" data-title="Type">Integer</td>

              <td class="entry" headers="d849913e42" data-title="Description">Total count of unique items, or SKUs, in the cart. This field is supported when <a class="xref" href="https://help.salesforce.com/s/articleView?id=commerce.comm_faster_add_to_cart.htm&amp;type=5&amp;language=en_US" target="_blank">faster add-to-cart</a> is turned off.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d849913e36" data-title="Property Name"><samp class="codeph apex_code">webstoreId</samp></td>

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

              <td class="entry" headers="d849913e42" data-title="Description">ID of the webstore of the cart.</td>

              <td class="entry" headers="d849913e45" data-title="Available Version">49.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.CartItemCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_item_collection.htm "A collection of items in a cart.")