> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# CreateCartInput

GraphQL input

Create cart input object

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/inputs/create-cart-input

## Fields

- `lineItems` — List of cart line items
- `giftCertificates` — List of gift certificates
- `currencyCode` — ISO-4217 currency code
- `locale` — Locale of the cart
- `externalSource` — The external source that the cart originated from.

## Definition

```graphql
input CreateCartInput {
  lineItems: [CartLineItemInput!]
  giftCertificates: [CartGiftCertificateInput!]
  currencyCode: String
  locale: String
  externalSource: String
}
```