> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "CartCreateInput"
description: "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)


---

*Powered by [holocron.so](https://holocron.so)*
