---
schema_version: "1"
id: a54b44b0adfeeb336fe48f3265fc8030e75347bd78c0b9b04943d6ff05e6c4c5
title: ConnectApi.PreserveCart
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_preserve_cart_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_preserve_cart_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9167c8fc9db20abb40f2d3b58074a8b9f5252e0ae7437d6c6e03b3cdcf8683e0
description: Represents a preserved cart.
---
# ConnectApi.PreserveCart

Represents a preserved cart.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| cartId | String | ID of the authenticated cart. | 60.0 |
| currencyIsoCode | String | Currency ISO code for the authenticated cart. | 60.0 |
| failedCartItems | [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.CartItem​BasicResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_item_basic_result.htm "Represents the result of a cart request.")\> | List of products that weren’t successfully transferred from the guest cart to the authenticated cart. | 60.0 |
| numberOfProducts | Integer | Total number of products in the guest cart. | 60.0 |
| numberOfProductsWithError | Integer | Total number of products that weren’t successfully transferred from the guest cart to the authenticated cart. | 60.0 |
| numberOfProductsWithSuccess | Integer | Total number of products successfully transferred from the guest cart to the authenticated cart. | 60.0 |
| succeededCartItems | [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.CartItem​BasicResult](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_item_basic_result.htm "Represents the result of a cart request.")\> | List of products successfully transferred from the guest cart to the authenticated cart. | 60.0 |