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
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.