# 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 includes UserError objects that detail any validation or processing errors that occurred during the discount code update operation. ## Example ```graphql 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. ## Related Types - [Cart](/reference/storefront/v1/objects/cart) - [UserError](/reference/storefront/v1/objects/user-error)