--- title: CartWarningCode - Storefront API description: The code for the cart warning. api_version: 2025-01 api_name: storefront type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/2025-01/enums/cartwarningcode md: https://shopify.dev/docs/api/storefront/2025-01/enums/cartwarningcode.md --- # Cart​Warning​Code enum The code for the cart warning. ## Valid values * DUPLICATE\_​DELIVERY\_​ADDRESS A delivery address with the same details already exists on this cart. * 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/2025-01/objects/CartWarning#field-CartWarning.fields.code) OBJECT A warning that occurred during a cart mutation. *** ## Map ### Fields with this enum * <-|[Cart​Warning.code](https://shopify.dev/docs/api/storefront/2025-01/objects/CartWarning#field-CartWarning.fields.code)