Skip to content

Country, postcode and house number rules

Three rules restrict where you ship. All three are on the Pro plan, and each has its own error message.

Blocks checkout when the shipping country is on your list.

  • Enter countries as two letter ISO codes, comma separated, for example RU, BY, KP.
  • It is a blocklist: countries you list are refused, everything else passes. To ship to only a few countries, manage your shipping zones in Shopify and use this rule for the exceptions.

Blocks checkout when the shipping postal code matches your list.

  • Enter codes comma separated, for example 90210, 10001, SW1A 1AA.
  • Matching is exact, ignoring case and spaces. SW1A1AA matches SW1A 1AA; a prefix like SW1 does not match all SW1 codes. List each code you want to block.

For countries you choose, checkout requires at least one digit in the address lines. Useful where an address without a house number is undeliverable, for example the Netherlands, Belgium or Germany.

  • Enter the countries as ISO codes, for example NL, BE, DE. The rule only runs for those countries and ignores the rest.
  • The check is for a digit in the address, not a lookup against a postal database. Use it to catch forgotten house numbers, not to verify that an address exists.
  1. Open Rules → Order Validation.
  2. Turn on the rule, fill in the codes, and write your message.
  3. Save, then test at your own checkout with an address that should be refused.