Skip to Content

CartDiscountCodesUpdatePayload

Payload returned by the cartDiscountCodesUpdate mutation. This type contains the updated cart and any errors that occurred during the discount codes update operation.

Type Definition

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

Fields

FieldTypeDescription
cartCartThe updated cart
userErrors[UserError]!List of errors that occurred during cart discount codes update

Relationships

CartDiscountCodesUpdatePayload is returned by the cartDiscountCodesUpdate mutation. It contains a reference to the updated Cart object and includes UserError objects that detail any validation or processing errors that occurred during the discount code update operation.

Example

mutation UpdateCartDiscountCodes($cartId: String!, $discountCodes: [String!]!) { cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) { cart { id lines(first: 10) { edges { node { id quantity } } } } userErrors { field message } } }

Implements

This type does not implement any interfaces.