Anchor to DeliveryAddressValidationStrategyDelivery
enumDelivery Address Validation Strategy
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 when setting buyer identity preferences, and by and when managing cart delivery addresses.
Anchor to Valid valuesValid values
- COUNTRY_CODE_ONLY
- STRICT
- Anchor to COUNTRY_CODE_ONLYCOUNTRY_
CODE_ ONLY Only the country code is validated.
- Anchor to STRICTSTRICT
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?
Anchor to FieldsFields
- Anchor to CartSelectableAddressInput.validationStrategyCart•INPUT OBJECT
Selectable Address Input.validationStrategy - Anchor to CartSelectableAddressUpdateInput.validationStrategyCart•INPUT OBJECT
Selectable Address Update Input.validationStrategy The input fields to update a line item on a cart.
- Anchor to DeliveryAddressInput.deliveryAddressValidationStrategyDelivery•INPUT OBJECT
Address Input.deliveryAddressValidationStrategy The input fields for delivery address preferences.
Was this section helpful?