--- title: CartWarningCode - Storefront API description: The code for the cart warning. api_version: 2024-10 api_name: storefront type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2024-10/enums/CartWarningCode' md: 'https://shopify.dev/docs/api/storefront/2024-10/enums/CartWarningCode.txt' --- # Cart​Warning​Code enum The code for the cart warning. ## Valid values * MERCHANDISE\_​NOT\_​ENOUGH\_​STOCK The merchandise does not have enough stock. * MERCHANDISE\_​OUT\_​OF\_​STOCK The merchandise is out of stock. * PAYMENTS\_​GIFT\_​CARDS\_​UNAVAILABLE Gift cards are not available as a payment method. *** ## Fields * [Cart​Warning.​code](https://shopify.dev/docs/api/storefront/2024-10/objects/CartWarning#field-code) OBJECT A warning that occurred during a cart mutation. *** ## Map ### Fields with this enum * <-|[Cart​Warning.code](https://shopify.dev/docs/api/storefront/2024-10/objects/CartWarning#field-code)