Skip to main content
Anchor to DeliveryAddressValidationStrategy

DeliveryAddressValidationStrategy

enum

Controls how delivery addresses are validated during cart operations. The default validation checks only the country code, while strict validation verifies all address fields against Shopify's checkout rules and rejects invalid addresses.

Used by DeliveryAddressInput when setting buyer identity preferences, and by CartSelectableAddressInput and CartSelectableAddressUpdateInput when managing cart delivery addresses.

Only the country code is validated.

Strict validation is performed, i.e. all fields in the address are validated according to Shopify's checkout rules. If the address fails validation, the cart will not be updated.


Was this section helpful?

•INPUT OBJECT

The input fields for a selectable delivery address to present to the buyer. Used by CartDeliveryInput when creating a cart with the cartCreate mutation.

You can pre-select an address for the buyer, mark it as one-time use so it isn't saved after checkout, and specify how strictly the address should be validated.


Was this section helpful?