---
schema_version: "1"
id: e9e801a32342af80a953ce99da6618712a585f7562363cd5311d344d08cfd622
title: ConnectApi.PromotionCartInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_promotion_cart.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_promotion_cart.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ccdc2cddebead55ee862a93392788460baf0eee3eaf46e7adf1394d72d44716b
description: Cart during promotion evaluation.
---
# ConnectApi.PromotionCartInput

Cart during promotion evaluation.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| cartAdjustment​Groups | [ConnectApi.​PromotionCart​AdjustmentGroupInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_cart_adjustment_group.htm#apex_connectapi_input_cart_adjustment_group "Cart adjustment group for a promotion.")\[\] | Collection of cart adjustment groups associated with the items in the cart. | Optional | 60.0 |
| cartDelivery​Groups | [ConnectApi.​PromotionCart​DeliveryGroupInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_cart_delivery_group.htm#apex_connectapi_input_cart_delivery_group "Cart delivery group input.")\[\] | Collection of cart delivery groups associated with the items in the cart. Available if shipping promotions are enabled. | Required when evaluating shipping promotions | 60.0 |
| cartItems | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​PromotionCart​ItemInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_promotion_cart_item.htm "Item in a cart during promotion evaluation.")\> | A collection of items in the cart. | Required | 57.0 |
| currencyIsoCode | String | Three-letter ISO 4217 currency code associated with the cart. | Required for multi-currency orgs | 57.0 |
| id | String | ID of the cart. | Optional | 57.0 |

#### See Also

- [ConnectApi.PromotionEvaluateInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_promotion_evaluate.htm "Find promotions that the customer is eligible for and compute their discounts.")
- [evaluate(salesTransaction)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommercePromotions_static_methods.htm#apex_ConnectAPI_CommercePromotions_evaluate_1 "Determine which promotions the customer is eligible for based on the store and buyer group, and compute the applicable price adjustments based on the coupons and the items in the cart. This API evaluates only the first 50 active manual promotions and first 50 active automatic promotions, based on priority. This API computes and returns applicable price adjustments, but it does not apply those adjustments to the webcart record. If you want to enable promotions based on shipping, contact Salesforce Customer Support.")