Skip to main content
Version: 3.x

CheckoutAddressValidationRules

No description

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

Fields

CheckoutAddressValidationRules.checkRequiredFields ● Boolean scalar

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.

CheckoutAddressValidationRules.checkFieldsFormat ● Boolean scalar

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.

CheckoutAddressValidationRules.enableFieldsNormalization ● Boolean scalar

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

Member of

checkoutBillingAddressUpdate mutation ● checkoutShippingAddressUpdate mutation ● CheckoutValidationRules input


Was this page helpful?