---
schema_version: "1"
id: 9b966d0f4720850202db5326b82379513493c2f727d2b92ba3c313f2fc12e1c5
title: ConnectApi.OrderToCartInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_order_to_cart.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_order_to_cart.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 128c2b7e1fe3d82ca3123d5ff09da7434c8ea41d914587e9f58c5af40c82e051
description: Input for action adding an order to a cart.
---
# ConnectApi.OrderToCartInput

Input for action adding an order to a cart.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| cartStateOrId | String | Cart state (active or current) or the ID of the cart to which the products from an order are to be copied. | Required | 57.0 |