House number required

Shopify house number required: what the checkout settings can and can't do, why there is no house-number field, and how to block addresses without one.

Shopify has no setting that makes the house number required. The house number sits in address line 1, together with the street, and the checkout settings can't check that line for a number. This guide covers the native options, their limits, and how to block checkout when the house number is missing, without code.

Why there's no house-number field

ReasonWhat Shopify says
Street and number share a lineShopify defines address line 1 as the first line of the street address, including the street number and name. Address line 2 is for an apartment, floor or unit.
The settings cover a fixed listUnder Settings → Checkout you can change the fields for the full name, company name, company VAT number, address line 2 and shipping phone number. Shopify says not all checkout fields can be edited.
Separate fields only in some countriesShopify splits the address into separate fields only in Brazil, Kuwait, Panama, Peru and the Philippines, and only Brazil gets a building number field. You can't change which fields these countries show, and express checkouts such as Apple Pay use the standard fields.
Your own field needs Shopify PlusApps that add to the information, shipping and payment pages of checkout work only on Shopify Plus.

What the checkout settings can do

OptionWhat to know
Make address line 2 requiredUnder Settings → Checkout, set Address line 2 (apartment, unit, etc.) to Required. Shopify says this line is for an apartment, floor or unit, and that requiring it can stop some buyers from checking out, depending on their type of residence. The setting applies to every country you sell to, and it requires a second line, not a number in it.
Rename the address labelUnder Settings → Checkout, select Edit checkout content in Checkout language and change the label, for example to "Street and house number". The label asks for the number but doesn't check it. If your store has several languages, update each translation too. If you sell to Brazil, note that Shopify turns off its regional address fields when the default address labels have been renamed.
Different fields per countryNeeds an app that customizes the information, shipping and payment pages of checkout. Those apps work only on Shopify Plus.
Address rules in Checkout BlocksCheckout Blocks is Shopify's own checkout app. Its address rules need Shopify Plus, and Shopify says requiring a street number isn't supported there.

Block checkout without a house number

A checkout validation function can do what the settings can't: it checks the address and stops checkout until the buyer adds the house number. Apps from the Shopify App Store with Functions work from the Basic plan up. See Shopify address validation.

With Address Validator, you make the house number required in Shopify checkout without code and without Shopify Plus. When it's missing, the buyer sees a message at address line 1 in the checkout's language. Once the buyer adds the number, checkout continues.

What counts as a house number

The address passes when address line 1 or address line 2 contains at least one digit. Digits in other scripts count too, such as Arabic or Thai digits. The check doesn't know which number is the house number, so any digit passes.

Address line 1Address line 2Result
HauptstraßeBlocked
Hauptstraße 5Passes
Hauptstraße3. OGPasses, the digit is in line 2
Calle Mayor s/nPasses, "s/n" marks an address without a number

See House-number check for all the details.

Where a house number is required

By default, every country requires a house number except these 16, where addresses often have none:

RegionCountries
British IslesUnited Kingdom, Ireland, Jersey, Guernsey, Isle of Man
Asia and the Middle EastHong Kong, Macao, India, United Arab Emirates
Central AmericaBelize, Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua, Panama

You can change this for any country, or replace the check with your own pattern. See Country rules.

Packstation and P.O. boxes

Some valid addresses have no house number. When address line 1 or 2 contains a recognised word, the house-number check is skipped. Capital letters don't matter, and the postal code is still checked.

Kind of addressWords
Parcel lockers and pickup pointsPackstation, Postfiliale, Paketshop, Paczkomat, InPost, Point Relais, Mondial Relay, Pickup point and more.
P.O. boxesP.O. Box, PO Box, Postfach, Boîte postale, Apartado, Caixa postal and more.
Addresses marked without a numbers/n, sin número, senza numero, sans numéro, ohne Hausnummer and more.

See Parcel lockers and P.O. boxes for every word.

Express checkouts

With Shop Pay, PayPal, Apple Pay and Google Pay, the house number is checked as soon as an address line has text. If both lines are still empty, for example because the wallet hasn't shared them yet, the app checks the house number when the buyer pays. See Express checkouts.

Set it up

It takes three steps and no code. The app sets up the check in your checkout itself, so your theme stays as it is.

  1. 1

    Install the app

    Install Address Validator from the Shopify App Store and choose a plan. The check starts as soon as the plan is active.

  2. 2

    Review your country rules

    The app lists the countries you sell to with their rule. Change a country if you need to, then select Save. See Country rules.

  3. 3

    Test a few addresses

    Run addresses from your real orders through Test an address to see which ones checkout would block. See Test an address.

For every step, see Getting started.

En esta página