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

Available in: Classic and Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions for CME managed package

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.
  • GetCartItems Trim Mode: Root-Level Fields Configuration
    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.