# CartWarning - storefront - OBJECT Version: 2024-10 ## Description A warning that occurred during a cart mutation. ### Access Scopes ## Fields * [code](/docs/api/storefront/2024-10/enums/CartWarningCode): CartWarningCode! - The code of the warning. * [message](/docs/api/storefront/2024-10/scalars/String): String! - The message text of the warning. * [target](/docs/api/storefront/2024-10/scalars/ID): ID! - The target of the warning. ## Connections ## Related queries ## Related mutations * [cartAttributesUpdate](/docs/api/storefront/2024-10/mutations/cartAttributesUpdate) Updates the attributes on a cart. * [cartBuyerIdentityUpdate](/docs/api/storefront/2024-10/mutations/cartBuyerIdentityUpdate) Updates customer information associated with a cart. Buyer identity is used to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing) and should match the customer's shipping address. * [cartCreate](/docs/api/storefront/2024-10/mutations/cartCreate) Creates a new cart. * [cartDiscountCodesUpdate](/docs/api/storefront/2024-10/mutations/cartDiscountCodesUpdate) Updates the discount codes applied to the cart. * [cartGiftCardCodesUpdate](/docs/api/storefront/2024-10/mutations/cartGiftCardCodesUpdate) Updates the gift card codes applied to the cart. * [cartLinesAdd](/docs/api/storefront/2024-10/mutations/cartLinesAdd) Adds a merchandise line to the cart. * [cartLinesRemove](/docs/api/storefront/2024-10/mutations/cartLinesRemove) Removes one or more merchandise lines from the cart. * [cartLinesUpdate](/docs/api/storefront/2024-10/mutations/cartLinesUpdate) Updates one or more merchandise lines on a cart. * [cartNoteUpdate](/docs/api/storefront/2024-10/mutations/cartNoteUpdate) Updates the note on the cart. * [cartSelectedDeliveryOptionsUpdate](/docs/api/storefront/2024-10/mutations/cartSelectedDeliveryOptionsUpdate) Update the selected delivery options for a delivery group. ## Related Unions ## Examples