# CartInput - storefront - INPUT_OBJECT Version: 2024-07 ## Description The input fields to create a cart. ### Access Scopes ## Fields * [attributes](/docs/api/storefront/2024-07/input-objects/AttributeInput): AttributeInput - An array of key-value pairs that contains additional information about the cart. The input must not contain more than `250` values. * [buyerIdentity](/docs/api/storefront/2024-07/input-objects/CartBuyerIdentityInput): CartBuyerIdentityInput - The customer associated with the cart. Used to determine [international pricing] (https://shopify.dev/custom-storefronts/internationalization/international-pricing). Buyer identity should match the customer's shipping address. * [discountCodes](/docs/api/storefront/2024-07/scalars/String): String - The case-insensitive discount codes that the customer added at checkout. The input must not contain more than `250` values. * [giftCardCodes](/docs/api/storefront/2024-07/scalars/String): String - The case-insensitive gift card codes. The input must not contain more than `250` values. * [lines](/docs/api/storefront/2024-07/input-objects/CartLineInput): CartLineInput - A list of merchandise lines to add to the cart. The input must not contain more than `250` values. * [metafields](/docs/api/storefront/2024-07/input-objects/CartInputMetafieldInput): CartInputMetafieldInput - The metafields to associate with this cart. The input must not contain more than `250` values. * [note](/docs/api/storefront/2024-07/scalars/String): String - A note that's associated with the cart. For example, the note can be a personalized message to the buyer. ## Input objects with this input object * [cartCreate](/docs/api/storefront/2024-07/mutations/cartCreate) ## Examples