# CartLinesAddPayload Payload returned by the cartLinesAdd mutation ## Type Definition ```graphql type CartLinesAddPayload { cart: Cart userErrors: [UserError]! } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | cart | Cart | The updated cart | | userErrors | [UserError]! | List of errors that occurred during cart lines addition | ## Relationships CartLinesAddPayload is returned by the `cartLinesAdd` mutation and contains a reference to the updated Cart object. It also includes a list of UserError objects that detail any validation or processing errors that occurred during the cart lines addition operation. ## Example ```graphql { cartLinesAdd(cartId: "eyJhbGciOiJIUzI1NiJ9...", lines: [{merchandiseId: "12345", quantity: 1}]) { cart { id lines(first: 10) { edges { node { id quantity } } } } userErrors { field message } } } ``` ## Implements None ## Related Types - [Cart](/reference/storefront/v1/objects/cart) - [UserError](/reference/storefront/v1/objects/user-error)