---
schema_version: "1"
id: 9ff19b0d844d8a47aa59dd46b55f797dc89ab32aaf092d16c0d8ad21791fdb03
title: ConnectApi.CartFromQuoteInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_cart_from_quote.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_cart_from_quote.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a0f4036ea50b2424c4a2ce57c1bc2664e5c7da419a3eaa2a97521de00be38bf7
description: Input representation for creating a cart from a quote.
---
# ConnectApi.CartFromQuoteInput

Input representation for creating a cart from a quote.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d581886e26">Property</th>
              <th class="featureTableHeader vertical-align-top " id="d581886e28">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d581886e30">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d581886e32">Required or Optional</th>
              <th class="featureTableHeader vertical-align-top " id="d581886e34">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d581886e26 d581886e34" data-title="Property"><samp class="codeph apex_code">operationType</samp></td>
              <td class="entry" headers="d581886e28" data-title="Type">String</td>
              <td class="entry" headers="d581886e30" data-title="Description">
                <span class="ph" id="operationType"><a name="operationType"><!-- --></a>Operation type for creating a cart from a quote. </span>
                <p class="p">Valid
                  values:</p>
                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">CONVERT_TO_CART</samp>—Create a cart
                    from a quote only when its status is <samp class="codeph apex_code">Approved</samp> or <samp class="codeph apex_code">Accepted</samp>.
                    <p class="p">When the user completes checkout by converting the quote to a cart, the
                      method sets the <samp class="codeph apex_code">QuoteId</samp> field on the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_order.htm" target="_blank" title="HTML (New Window)">Order</a> object using the quote ID.</p>
                  </li>

                  <li class="li">
                    <samp class="codeph apex_code">DUPLICATE_TO_CART</samp>—Duplicate
                    the quote to a cart.
                  </li>

                </ul>
              </td>
              <td class="entry" headers="d581886e32" data-title="Required or Optional">Required</td>
              <td class="entry" headers="d581886e26 d581886e34" data-title="Property">67.0</td>
            </tr>
          </tbody>
        </table>

#### See Also

- [createCartFromQuote(webstoreId, quoteId, cartFromQuoteInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CommerceCart_static_methods.htm#apex_ConnectAPI_CommerceCart_createCartFromQuote_1 "Create a cart from an approved quote, or duplicate a draft quote into a cart by converting the quote into cart items.")
- [ConnectApi.CartFromQuoteOutput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_from_quote_output.htm "Representation of the response for creating a cart from a quote.")