How to block ZIP codes at Shopify checkout
This is not legal advice. A ZIP list is a list you type. Harbor Gate does not supply a map of restricted places, and it does not store the address a buyer enters.
A whole state is sometimes wider than the route you actually refuse. A plant seller may skip a cluster of ZIP codes. A chemical or aerosol product may skip a city. A wine club may allow a state and still exclude a few codes. You put those codes on the rule.
Exact codes, prefixes, and ranges
On a destination row, every field you fill in has to match. You can combine a country, a state, and ZIP codes. You can also use:
- Exact codes, separated when you paste more than one.
- A prefix such as
902**or902. It matches 90210 and 90210-1234. - An inclusive range such as
10001-10282.
Keep leading zeros. 01001, 02108, and 00601 are five-digit codes. If a spreadsheet stores 01001 as the number 1001, the code is no longer the same place. Harbor Gate pads a short numeric ZIP back to five digits on import and in checkout so 1001 is read as 01001. A ZIP+4 such as 02108-1234 still matches a rule for 02108.
Saved lists
On the Free plan, paste the codes on the one rule. On Standard ($9.99 a month or $99 a year, 14-day trial), save a named list such as "Boston ZIPs" and attach it to a rule. Checkout receives the codes, not the list name. CSV import of rules and lists is part of Standard. Export works on every plan.
There is a storage limit at checkout. Each value the function reads stays under 9,500 bytes, across three fields. A very large list should use a prefix when the area shares one. The app refuses a save that still does not fit.
Test the code, not a guess
Run Test checkout with a code inside the list and a code outside it. Then test 02108-1234 if the rule is for 02108. Change the ZIP and run the test again. Each run is a new check. The address is not saved.
The cart page stays quiet before an address exists. The block appears once checkout knows the ZIP the rule needs. Shop Pay and other express buttons are included when the checkout reaches that address. See what is not covered, including POS and subscription renewals.
If you also sell items that can ship to those ZIPs, the message names the blocked item so the rest of the cart can proceed. That case is covered in mixed carts.