API2024-04
Optional Address Validation in Storefront API
As of Storefront API's 2024-04 release, you can use (accepted values
or
) to enable address validation on the passed
for any cart mutations that accept a buyer identity as input (like
or
).
Passing will perform a full validation on the address fields, and will raise
s for invalid addresses. Invalid addresses will not be stored on the cart.
Passing or omitting the field will only validate the presence of a valid country in the address (unchanged behavior from previous version).
Was this section helpful?