Blog

Address validation for Shopify stores: what to check at checkout

DoorCheck Team ·

Address checks at checkout: PO boxes, no house number, military addresses, postal codes you don't ship to, emoji, and remote areas

Every store owner has a folder of these: the parcel that came back because the house number was missing, the order to a country you don’t ship to, the address written entirely in emoji. Each one is small. Together they’re returned parcels, second shipments, refund requests and hours of email.

Address validation is the practice of catching those problems before the order exists. This guide covers what it means for a Shopify store, what Shopify already does, and which checks are worth adding.

Two kinds of address validation

“Address validation” covers two different jobs, and it helps to keep them apart.

  • Verification asks: does this address exist? It compares what the buyer typed with a postal database and suggests a corrected version.
  • Rules ask: is this an address you can deliver to? A perfectly real address can still be a PO box your courier can’t reach, a country you don’t ship to, or an island that costs more to reach than the order is worth.

Shopify does a fair amount of the first. The second depends on your carriers, products and policies, so no one can do it for you without your rules.

What Shopify checks on its own

Shopify’s checkout already helps:

  • It requires the fields a country needs, like a postal code or a state.
  • It checks that postal codes look right for many countries.
  • In some countries it suggests a corrected address (“Did you mean…?”) as the buyer types.
  • Its address autocomplete fills in real addresses as the buyer types.

What it doesn’t do is apply your rules. Shopify will happily accept a PO box, an address with no house number, or a postal code you’ve decided you won’t ship to.

The checks worth adding

PO boxes

Couriers like UPS, FedEx and DHL can’t deliver to PO boxes. If any of your orders ship by courier, this is usually the first rule to turn on. See how to block PO boxes in Shopify checkout.

A house or building number

“Main Street” isn’t an address a driver can find. Requiring a number in the address catches the most common incomplete address. Some countries and rural areas don’t use house numbers, so the check should let you make exceptions.

Military addresses

APO, FPO and DPO addresses can only be reached by USPS and can’t receive some products. Decide whether you ship to them, then block them, flag them, or hide the rates that won’t work. See shipping to APO, FPO and DPO addresses.

Places you don’t deliver

Shopify’s shipping zones decide which countries can check out. They don’t easily cover finer exceptions: one state, an island group, or a list of postal codes your carrier won’t serve. A rule that blocks those postal codes, states or regions keeps the rest of the country open.

DoorCheck delivery settings with a list of blocked postal codes
Postal codes you don’t deliver to, blocked in one list.

Characters your carrier can’t print

Emoji and decorative symbols break label printing, and some carriers need addresses in Latin characters. Blocking these, with a message that tells the buyer what to type instead, saves a manual fix later.

Things only you know about

Every store has its own list: parcel lockers you can’t deliver to, a freight forwarder you’ve had problems with, a company name you don’t sell to. These need rules you can write yourself, from conditions on any field of the address. The features page shows what a custom rule can check.

Block, flag, or hide?

Not every problem should stop the sale. A good setup uses three tools:

  • Block when the order can’t ship as it is, like a PO box for a courier-only product. The buyer fixes the address and pays.
  • Flag when you want to look first. The order goes through, gets a tag, and its fulfillment is held until you’ve checked it.
  • Hide an option when the address is fine but a shipping rate or payment method isn’t. For example, hide express shipping for remote postal codes, or hide cash on delivery for PO boxes. See hiding cash on delivery by address.

Where the check should happen

The cheapest moment to fix an address is while the buyer is still in checkout. They know their address, they’re paying attention, and the fix takes seconds. After the order, the same fix needs an email, a reply and a delayed shipment.

Shopify checkout showing a message under the address field: We can't deliver to PO boxes
In checkout, the buyer can still fix the address. After the order, only you can.

Shopify lets apps add rules to checkout through checkout validation. The rules run inside Shopify’s checkout, including Shop Pay and other express checkouts, and show a message under the field that needs fixing. Nothing is added to your theme, and nothing slows your store down.

Common questions

Does Shopify validate addresses at checkout?

Partly. Shopify checks that the required fields are filled in and that postal codes look right, and in some countries it suggests a corrected address. It doesn’t apply your own delivery rules, so a PO box or an address with no house number is accepted.

What is the difference between address validation and address verification?

Verification checks that an address exists, against a postal database. Validation rules check that it’s an address you can deliver to: no PO box for a courier order, a house number, a postal code you serve. Most stores need both.

Does address validation slow down checkout?

No. The rules run on Shopify’s servers as part of checkout, and nothing is added to your theme.

Getting started

DoorCheck adds these rules to Shopify checkout. Install it, switch on the rules that match how you ship, write the messages your buyers see, and test any address before you save. The setup guide walks through it in about five minutes.

DoorCheck rules page in the Shopify admin, with an address being tested against the rules
DoorCheck’s rules in the Shopify admin, with an address being tested.

Check every address before the buyer pays

DoorCheck runs inside Shopify checkout. Install it, turn on the rules you need, and you’re done.

Install DoorCheck free

Free to install. No credit card.