Skip to main content

CheckoutAddressValidationRules

No description

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

Fields

CheckoutAddressValidationRules.checkRequiredFields ● Boolean scalar miscellaneous

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 miscellaneous

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 miscellaneous

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

Member Of

checkoutBillingAddressUpdate mutation ● checkoutShippingAddressUpdate mutation ● CheckoutValidationRules input