> ## Documentation Index
> Fetch the complete documentation index at: https://docs-test.rye.com/docs/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="/docs/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="/docs/api-reference/cartitemsinput">CartItemsInput!</a></>} required>
  [`CartItemsInput`](/docs/api-reference/cartitemsinput) object representing the items to be added to the cart.
</ParamField>

<ParamField path="buyerIdentity" type={<><a href="/docs/api-reference/buyeridentityinput">BuyerIdentityInput</a></>}>
  [`BuyerIdentityInput`](/docs/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="/docs/api-reference/cartsettingsinput">CartSettingsInput</a></>}>
  Field to set cart settings on cart creation.
</ParamField>

***

## Mutations

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

***

## Related types

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