Skip to content

Address Validation

Address Validation lets you define rules that check the customer’s shipping address before an order is placed. If the address matches your rule’s conditions, checkout is blocked and the customer sees your custom error message.

This is useful for stores that ship to restricted areas, need to prevent orders to PO boxes, or want to enforce address format requirements.


SettingDescription
Validation nameInternal label for this rule
StatusActive or Inactive
ConditionsAddress field conditions that trigger the block
Condition logicBlock when any condition matches or all conditions match
Error messageMessage shown to the customer when checkout is blocked

Conditions are evaluated against the shipping address. The condition builder supports address fields (city, province, country, zip, address lines, company, first/last name) as well as customer attributes.


  1. Go to Address Validations and click Create validation.
  2. Give the rule a name.
  3. Build your conditions: define which address values should trigger the block.
  4. Choose the condition logic (any or all must match).
  5. Enter the error message the customer will see.
  6. Toggle the rule active.
  7. Click Save.

  • The listing shows all rules with their active/inactive status.
  • Toggle rules on/off without deleting them.
  • Delete a rule to remove it permanently.

  • Maximum of 25 validation rules per store across address and order validation combined.
  • Works on checkout, thank-you page, and order status page.

ScenarioConditions to set
Block PO Box deliveriesAddress line 1 contains PO Box OR Address line 1 contains P.O. Box (use “Any” logic)
Restrict to specific countries onlyCountry is not your list of served countries
Block specific zip code rangesZip starts with restricted prefix
Require a company name for B2B shippingCompany is empty (block if no company entered)
  • Write error messages that tell customers what to do next: “We don’t ship to PO Boxes. Please enter a home or business address.”
  • Use “Any” logic when blocking as one match is enough to catch variations.
  • Test both a matching address (should be blocked) and a valid address (should proceed) before going live.
  • Name rules clearly (e.g. “Block PO Box”) so you can audit them without opening each one.

Address ValidationOrder Validation
Blocks based on where the order ships: address fields (city, zip, country, address lines)Blocks based on what is in the cart or who the customer is: cart total, product tags, customer tags
Use for shipping restrictions (regions, PO boxes, unsupported countries)Use for cart-level rules (minimum order, restricted product combos, fraud signals)