---
schema_version: "1"
id: 67df38e683fb41c3deb7adf4e78b30afb8d94e75d34d5a6d574abffd21ae3dc9
title: CartItemAttribute
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_cartitemattribute.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_cartitemattribute.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7da1c1cf688cb354b2b5520e3fc32bd10603ad0dfa4756eda2f5887926b7c113
description: Represents the attributes associated with a cart item, stored as key-value pairs. These attributes are derived from the product and carried forward to the order during checkout. This object is available in API version 66.0 and later.
---
# CartItemAttribute

Represents the attributes associated with a cart item, stored as key-value pairs. These attributes are derived from the product and carried forward to the order during checkout. This object is available in API version 66.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()

## Special Access Rules

The CartItemAttribute object is available:only if the B2B Commerce license, the Salesforce CPQ feature, and Commerce Dynamic Bundles are enabled in your Salesforce org.

## Fields

| Field | Details |
| --- | --- |
| AttributeDefinitionId | 
Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the attribute definition associated with the cart item attribute.

This field is a relationship field.

Relationship Name

AttributeDefinition

Relationship Type

Lookup

Refers To

[AttributeDefinition](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_attributedefinition.htm "HTML (New Window)")



 |
| AttributeName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The name of the cart item attribute.



 |
| AttributePicklistValueId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the picklist value associated with the cart item attribute.

This field is a relationship field.

Relationship Name

AttributePicklistValue

Relationship Type

Lookup

Refers To

[AttributePicklistValue](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_attributepicklistvalue.htm "HTML (New Window)")



 |
| AttributeValue | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The value of the cart item attribute, such as Blue or Large.



 |
| CartItemId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the cart item to which this attribute is assigned.

This field is a relationship field.

Relationship Name

CartItem

Relationship Type

Master-detail

Refers To

[CartItem](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_cartitem.htm "HTML (New Window)") (the master object)



 |
| ExternalId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

An auto-generated ID for the attribute record that's stored in an external system, such as the HBase database.



 |
| IsPriceImpacting | 

Type

boolean

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Indicates whether the attribute affects cart pricing (true) or not (false). This field determines whether the Commerce Pricing API calls must be triggered to update the price.



 |
| UnitOfMeasure | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the unit of measure associated with the cart item attribute.

This field is available only if the AttributeUomPilot Org perm is enabled. Contact Salesforce support for assistance.

This field is a relationship field.

Relationship Name

UnitOfMeasure

Relationship Type

Lookup

Refers To

[UnitOfMeasure](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_unitofmeasure.htm "HTML (New Window)")



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[CartItemAttributeChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.

[CartItemAttributeFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[CartItemAttributeHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[CartItemAttributeOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[CartItemAttributeShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.