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 provides UserError details for any validation or processing issues that occurred during the discount codes update operation.
Example
{
cartDiscountCodesUpdate(cartId: "eyJhbGciOiJIUzI1NiJ9...", discountCodes: ["SUMMER20"]) {
cart {
id
totalQuantity
}
userErrors {
field
message
}
}
}Implements
This type does not implement any interfaces.