# 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

| Reason                                 | What Shopify says                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Street and number share a line         | Shopify defines address line 1 as [the first line of the street address, including the street number and name](https://shopify.dev/docs/api/checkout-ui-extensions/latest/target-apis/checkout-apis/addresses-api). Address line 2 is for an apartment, floor or unit.                                                                                              |
| The settings cover a fixed list        | Under **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](https://help.shopify.com/en/manual/checkout-settings/checkout-form-options).                                                                            |
| Separate fields only in some countries | Shopify splits the address into [separate fields](https://help.shopify.com/en/manual/checkout-settings/address-collection-preferences) 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 Plus      | Apps that add to the information, shipping and payment pages of checkout [work only on Shopify Plus](https://help.shopify.com/en/manual/checkout-settings/checkout-customization).                                                                                                                                                                                  |

## What the checkout settings can do

| Option                           | What to know                                                                                                                                                                                                                                                                                                                                                                                                     |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Make address line 2 required     | Under **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 label         | Under **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 country     | Needs an app that customizes the information, shipping and payment pages of checkout. Those apps work only on Shopify Plus.                                                                                                                                                                                                                                                                                      |
| Address rules in Checkout Blocks | Checkout Blocks is Shopify's own checkout app. Its address rules need Shopify Plus, and Shopify says [requiring a street number isn't supported](https://help.shopify.com/en/manual/checkout-settings/checkout-blocks/customizations/address-format-validation) 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](/docs/address-validator/shopify-address-validation).

With Address Validator, you [make the house number required in Shopify checkout](/address-validator) 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 1  | Address line 2 | Result                                          |
| --------------- | -------------- | ----------------------------------------------- |
| Hauptstraße     |                | Blocked                                         |
| Hauptstraße 5   |                | Passes                                          |
| Hauptstraße     | 3. OG          | Passes, the digit is in line 2                  |
| Calle Mayor s/n |                | Passes, "s/n" marks an address without a number |

See [House-number check](/docs/address-validator/house-numbers) 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:

| Region                   | Countries                                                               |
| ------------------------ | ----------------------------------------------------------------------- |
| British Isles            | United Kingdom, Ireland, Jersey, Guernsey, Isle of Man                  |
| Asia and the Middle East | Hong Kong, Macao, India, United Arab Emirates                           |
| Central America          | Belize, 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](/docs/address-validator/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 address                   | Words                                                                                                       |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Parcel lockers and pickup points  | Packstation, Postfiliale, Paketshop, Paczkomat, InPost, Point Relais, Mondial Relay, Pickup point and more. |
| P.O. boxes                        | P.O. Box, PO Box, Postfach, Boîte postale, Apartado, Caixa postal and more.                                 |
| Addresses marked without a number | s/n, sin número, senza numero, sans numéro, ohne Hausnummer and more.                                       |

See [Parcel lockers and P.O. boxes](/docs/address-validator/parcel-lockers-and-po-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](/docs/address-validator/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.

<Steps>
<Step>
### 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.
</Step>

<Step>
### 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](/docs/address-validator/country-rules).
</Step>

<Step>
### 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](/docs/address-validator/address-tester).
</Step>
</Steps>

For every step, see [Getting started](/docs/address-validator/getting-started).