> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commerce.jolly.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CartCreateInput

> The input fields to create a cart.

## Fields

***

<ParamField path="attributes" type={<><a href="/api-reference/attributeinput">[AttributeInput!]</a></>}>
  An array of key-value pairs that contains additional information about the cart.

  Limited to 10 entries. If duplicate keys are provided, the last value will be used.
</ParamField>

<ParamField path="items" type={<><a href="/api-reference/cartitemsinput">CartItemsInput!</a></>} required>
  [`CartItemsInput`](/api-reference/cartitemsinput) object representing the items to be added to the cart.
</ParamField>

<ParamField path="buyerIdentity" type={<><a href="/api-reference/buyeridentityinput">BuyerIdentityInput</a></>}>
  [`BuyerIdentityInput`](/api-reference/buyeridentityinput) object representing the buyer's identity (optional).
</ParamField>

<ParamField path="isEmailMarketingAllowed" type={<>Boolean</>}>
  If set to true, the emails associated with the cart will receive emails if cart is abandoned.
</ParamField>

<ParamField path="cartSettings" type={<><a href="/api-reference/cartsettingsinput">CartSettingsInput</a></>}>
  Field to set cart settings on cart creation.
</ParamField>

***

## Mutations

* [`createCart`](/api-reference/createcart)

***

## Related types

* [`CartItemsInput`](/api-reference/cartitemsinput)
* [`BuyerIdentityInput`](/api-reference/buyeridentityinput)
* [`CartResponse`](/api-reference/cartresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.