# 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 ```graphql type CartDiscountCodesUpdatePayload { cart: Cart userErrors: [UserError]! } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | cart | Cart | The 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 provides UserError details for any validation or processing issues that occurred during the discount codes update operation. ## Example ```graphql { cartDiscountCodesUpdate(cartId: "eyJhbGciOiJIUzI1NiJ9...", discountCodes: ["SUMMER20"]) { cart { id totalQuantity } userErrors { field message } } } ``` ## Implements This type does not implement any interfaces. ## Related Types - [Cart](/reference/storefront/1.3.0/objects/cart) - [UserError](/reference/storefront/1.3.0/objects/user-error)