Skip to Content

CartLinesAddPayload

Payload returned by the cartLinesAdd mutation. This type contains the updated cart information and any errors that occurred during the cart lines addition operation.

Type Definition

type CartLinesAddPayload { cart: Cart userErrors: [UserError]! }

Fields

FieldTypeDescription
cartCartThe updated cart
userErrors[UserError]!List of errors that occurred during cart lines addition

Relationships

CartLinesAddPayload is the return type for the cartLinesAdd mutation. It contains a Cart object representing the updated shopping cart state after line items have been added. The userErrors field provides validation and operation error details as UserError objects.

Example

mutation { cartLinesAdd(cartId: "eyJhbGciOiJIUzI1NiJ9...", lines: [{merchandiseId: "12345", quantity: 1}]) { cart { id lines { edges { node { id quantity } } } } userErrors { field message } } }

Implements

This type does not implement any interfaces.