# cartCreate Creates a new cart for customers to add products and proceed to checkout. ## Authentication > **Public Access**: Accessible with the public API key ## Mutation Structure ```graphql mutation { cartCreate(input: CartInput!) { cart { id createdAt updatedAt } userErrors { field message } } } ``` ## Input Arguments | Argument | Type | Required | Description | |----------|------|----------|-------------| | input | [CartInput](/reference/storefront/1.3.0/inputs/cart-input) | Yes | The input object containing cart creation details such as line items and attributes | ## Return Type [CartCreatePayload](/reference/storefront/1.3.0/objects/cart-create-payload) - The payload returned by the cartCreate mutation, containing the newly created cart and any validation errors that occurred during creation. ## Example ```graphql mutation { cartCreate(input: { lines: [ { quantity: 1 merchandiseId: "12345" } ] }) { cart { id createdAt updatedAt } userErrors { field message } } } ``` ## Related Types - [CartCreatePayload](/reference/storefront/1.3.0/objects/cart-create-payload) - [CartInput](/reference/storefront/1.3.0/inputs/cart-input)