---
schema_version: "1"
id: 230c9150bda2e43342ea1e2ebdf972f4de2fea2a105610e6348731addf6b634d
title: Unit of Work (UOW) Support for Cart APIs
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-unit-of-work-uow-support-for-cart-apis.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-unit-of-work-uow-support-for-cart-apis.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b948162e0001574f8c5402642d5e29a1fdbf22b4cc8f680548956830d7bee5e6
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Unit of Work (UOW) Support for Cart APIs

The Unit of Work (UOW) is a design pattern that reduces repetitive code when implementing transaction management and the coding overheads of adhering to DML bulkification. 

The `UOWMode = true` setting in CPQ configuration enables UOW performance enhancements that save data manipulation language (DML) and Salesforce Object Query Language (SOQL) statements when making Cart-Based API calls. 


**note:** If UOWMode is set to false, these performance enhancements aren’t enabled. Starting with CME Summer '22, `UOWMode = false` is discontinued and not supported. See [CPQ Configuration Settings Reference](https://help.salesforce.com/s/articleView?id=ind.comms_t_cpq_configuration_settings_reference_148927.htm&type=5).

## UOW Supported Cart APIs

Here’s the list of Cart APIs that support UOW mode:

 - postCartsItems
 - putCartsItems
 - deleteCartsItems
 - getCartsItems
 - postCartsPromoItems
 - getExpandedItems
 - replaceOffers
 - deleteAppliedPromoItems
 - cloneItems
 - runCartValidation
 - compareOffers
 - getCartsItemsById
 - getAllAssets



**important:** CART APIs with UOW support must be chained only with UOW-supported APIs. A problem occurs if you string a UOW-supported API with a non-supported UOW API in the same Salesforce execution context.
