Skip to main content
Version: 3.x

CheckoutAddressValidationRules

No description

input CheckoutAddressValidationRules {
checkRequiredFields: Boolean
checkFieldsFormat: Boolean
enableFieldsNormalization: Boolean
}

Fields

checkRequiredFields (Boolean)

Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the addressValidationRules query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input.

checkFieldsFormat (Boolean)

Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected.

enableFieldsNormalization (Boolean)

Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters.