--- title: Optional Address Validation in Storefront API - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/optional-address-validation-in-storefront-api md: https://shopify.dev/changelog/optional-address-validation-in-storefront-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) December 19, 2023 Tags: * API * 2024-04 # Optional Address Validation in Storefront API As of Storefront API's 2024-04 release, you can use `buyerIdentity.deliveryAddressPreferences.deliveryAddressValidationStrategy` (accepted values `STRICT` or `COUNTRY_CODE_ONLY`) to enable address validation on the passed `deliveryAddress` for any cart mutations that accept a buyer identity as input (like `cartCreate`or `cartBuyerIdentityUpdate`). Passing `STRICT` will perform a full validation on the address fields, and will raise `CartUserError`s for invalid addresses. Invalid addresses will not be stored on the cart. Passing `COUNTRY_CODE_ONLY` or omitting the field will only validate the presence of a valid country in the address (unchanged behavior from previous version).