Validate Shipping Address
Use checkout validation rules to block orders with invalid or unsupported shipping addresses — such as PO Boxes, specific zip codes, or missing address fields.
Block PO Box Addresses
- Click Create rule → Checkout validation.
- Set up the rule:
- Error message: “We cannot ship to PO Box addresses. Please enter a street address.”
- Error position: Address (line 1)
- Validation trigger: On condition
- Add condition: P.O. box address (boolean — no value needed).
- Click Save.
This blocks checkout whenever the shipping address is detected as a PO Box.
Block Specific Zip / Postal Codes
To prevent orders from specific postal codes:
- Condition: Zip / Postal code → Equals to → “90210”
- Error message: “We do not deliver to this postal code.”
- Error position: Zip / Postal code
To block a range, use multiple conditions in separate OR groups:
- Group 1: Zip / Postal code → Starts with → “90”
- Group 2: Zip / Postal code → Starts with → “91”
Require Specific Address Fields
Block orders with missing apartment/suite:
- Condition: Address line 2 → Is empty
- Error message: “Please enter your apartment or suite number.”
- Error position: Address (apartment, suite, etc)
Block orders with missing company name (B2B):
- Condition: Company → Is empty
- Error message: “A company name is required for business orders.”
- Error position: Company
Restrict to Specific Countries
- Condition: Country → Not equals to → your supported country
- Error message: “We currently only ship to the United States.”
- Error position: Country Code
To allow multiple countries, use separate OR groups — one per excluded country — or use Equals to with your supported country.
Validate Address Length
To catch addresses that are too short to be real:
- Condition: Address line 1 → Characters length less than → 5
- Error message: “Please enter a complete street address.”
- Error position: Address (line 1)
Detect Missing House Numbers
The app has a built-in condition for this:
- Condition: Missing house number (boolean — no value needed)
- Error message: “Please include your house or building number in the address.”
- Error position: Address (line 1)
Good to Know
- Match error position to the field. If you’re validating the zip code, place the error under “Zip / Postal code” for the best customer experience.
- PO Box detection checks address fields for common PO Box patterns (PO Box, P.O. Box, Post Office Box, etc.).
- Test with real addresses. Use Test mode to verify your validation catches the addresses you want to block without blocking valid ones.