---
schema_version: "1"
id: 497b2e5fbe149c8c264885a9a18d3b7ec3ac47d4d2f46675e7b5b0e237ca8376
title: Configuring Cart Item Refresh Levels
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_configuring_cart_item_refresh_levels.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_configuring_cart_item_refresh_levels.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bcec1d1aebda6402c229c90b14002471b5c9c34cc502461881f51c678f649085
description: As you add items to the cart, the cart contents increase. When the cart page refreshes, the getCartsItems API is called. The call can fail due to the heap size or an exceeded time limit. To support a large number of items when returning responses from getCartsItems and addToCart, a level-based approach to refreshing the cart is supported. This approach creates a smaller response to optimize performance. Use the level-based approach when you find that response times are excessive.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Configuring Cart Item Refresh Levels

As you add items to the cart, the cart contents increase. When the cart page refreshes, the getCartsItems API is called. The call can fail due to the heap size or an exceeded time limit. To support a large number of items when returning responses from getCartsItems and addToCart, a level-based approach to refreshing the cart is supported. This approach creates a smaller response to optimize performance. Use the level-based approach when you find that response times are excessive.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)

Note

LevelBasedInterface can additionally be used to control the API responses.

When you add an item to the cart or when you refresh the cart, instead of returning the complete product bundles, the level-based approach sends only the root along with the first level children. For example:

- Root
    
    - Parent 1
    
    - Parent 2
    
    - Parent 3

When you click the expand icon, the next level of child product is returned through a subsequent API call.

- **[Required Settings for Configuring Cart Item Refresh Levels](https://help.salesforce.com/s/articleView?id=ind.comms_required_settings_for_configuring_cart_item_refresh_levels.htm&release=264.0.0&type=5)**  
    The following CPQ configuration settings control the level-based approach to cart item refreshing.