# CartCreatePayload Payload returned by the cartCreate mutation. Contains the newly created cart and any errors that occurred during the creation process. ## Type Definition ```graphql type CartCreatePayload { cart: Cart userErrors: [UserError]! } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | cart | Cart | The created cart | | userErrors | [UserError]! | List of errors that occurred during cart creation | ## Relationships CartCreatePayload is the return type for the cartCreate mutation. It encapsulates the result of a cart creation operation, including the newly instantiated Cart object (if creation was successful) and any UserError objects that describe validation failures or other issues encountered during the operation. ## Example ```graphql mutation { cartCreate(input: { lines: [] }) { cart { id checkoutUrl } userErrors { field message } } } ``` ## Implements This type does not implement any interfaces. ## Related Types - [Cart](/reference/storefront/1.3.0/objects/cart) - [UserError](/reference/storefront/1.3.0/objects/user-error)