---
schema_version: "1"
id: e3666e00f592bc6c8295bcf6d302a27fd0d50a63bacd0eb79ecdb51fffd78d9b
title: Performance-Optimized getCartsItems API Trim Mode
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_performance_optimized_getcartsitems_api_trim_mode.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_performance_optimized_getcartsitems_api_trim_mode.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7bc644ab7c861b72f77c170b6a592c50bae0a9f3f6bb3ce6e44dd001fd035ad6
description: The getCartsItems API now includes Trim Mode to support high-scale transactions involving complex product bundles (200+ items). This feature optimizes the Industries Cart by delivering lightweight data payloads, preventing performance bottlenecks and system failures.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Performance-Optimized getCartsItems API Trim Mode

The getCartsItems API now includes Trim Mode to support high-scale transactions involving complex product bundles (200+ items). This feature optimizes the Industries Cart by delivering lightweight data payloads, preventing performance bottlenecks and system failures.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions for CME managed package</td></tr></tbody></table>

Trim Mode optimizes data delivery for high-performance use cases by focusing on essential information and reducing overhead. It streamlines the rendering of cart summaries through targeted data fetching, facilitates efficient external integrations by extracting key identifiers without unnecessary CPQ metadata, and ensures a responsive experience for mobile users or those on low-bandwidth networks.

## Benefits

Implementing Trim Mode enhances the stability and speed of enterprise-grade deployments:

- **High reliability:** Reduces Apex Governor Limit failures (heap size/CPU) by up to 90%.
- **Payload efficiency:** Decreases average response sizes by over 70% by stripping non-essential logs.
- **System scalability:** Handles increasing product complexity without degrading the user experience.
- **Network Performance:** Minimizes traffic by allowing precise control over returned data nodes. For more information, see the links shared here, [Trim Mode](https://developer.salesforce.com/docs/industries/cme/guide/std_comms-get-cart-items.html#get-cart-items-trim-mode).

- **[GetCartItems Trim Mode: Root-Level Fields Configuration](https://help.salesforce.com/s/articleView?id=ind.comms_getcartitems_trim_mode_root_level_fields_configuration.htm&release=264.0.0&type=5)**  
    A dedicated field set restores 14 root level fields on each line item in the GetCartItems API response. This implementation gives API integrations the performance benefits of Trim mode without losing the standard field shape.