Some orders cost you money the moment they come in. A cash on delivery order with no house number goes out, the courier can’t find the door, and the parcel comes back at your expense. A buyer types a PO box, but your courier only delivers to street addresses. A $6 order comes in when your packing cost alone is $5. Someone buys 40 units of your launch product to resell it.
Each of these orders passed checkout because nothing told the buyer to stop and fix it. Checkout validation does that. It checks the cart and the address before payment and shows the buyer a message that tells them what to change.
This guide explains what Shopify checks on its own, where those checks stop, and how to set up the rules that fill the gap. If you want the wider picture first, see our guide on how to customize your Shopify checkout.
What is Shopify checkout validation?
Checkout validation is a rule that blocks checkout when a cart or address doesn’t meet your conditions, and shows the buyer an error message. The buyer stays at checkout, fixes the problem, and continues.
Shopify runs these rules through cart and checkout validation Functions. In plain terms:
- They run on Shopify’s servers, not in the buyer’s browser, so buyers can’t get around them.
- They can point at one field (for example, Address line 1) or the whole cart (for example, an order total that’s too low).
- They work on every Shopify plan when they come from an app on the Shopify App Store. Shopify’s developer docs say stores on any plan can use public apps that contain Functions. Only custom-built apps with Functions need Shopify Plus.
There is a second kind of validation that you may read about: checks built into checkout UI extensions on the information, shipping and payment steps. Those extensions are Shopify Plus only, and Shopify now points developers to validation Functions instead. For most stores, Functions are the route that matters.
What does Shopify validate natively?
Shopify already checks some things without any app. Knowing them helps you avoid building rules you don’t need.
| Native setting | Where to find it | What it does | Limit |
|---|---|---|---|
| Field checks (required fields, format, length) | Always on | Stops obviously broken entries | Can’t judge whether an address is deliverable |
| State/province and postal code matching | Always on | Makes buyers fix a postcode that doesn’t match the state | Can only be turned off on Shopify Plus |
| Validate shipping address | Settings > Checkout > Advanced preferences > Address collection | Shows issues and suggestions so buyers can correct their address | Only in 20 countries (including the US, Canada, Australia and France). Elsewhere, buyers check out as usual |
| Address autocompletion | Checkout and accounts editor | Suggests addresses as buyers type | Only in supported countries |
| Address line 2, Company name, Shipping address phone | Settings > Checkout > Customer information | Don’t include, Optional or Required | Makes a field required, but can’t check what’s in it |

Turn on Validate shipping address if you sell in a supported country. It’s free and catches a lot of typos.
What Shopify’s checkout settings don’t give you:
- No way to block PO boxes.
- No check that a street address contains a house number.
- No list of ZIP or pin codes you refuse to deliver to.
- No minimum order value or maximum quantity at checkout.
- Weaker address checks in markets like India, Indonesia, Vietnam or the UAE. They are not on the supported list, and Shopify says addresses there may get fewer specific suggestions.
That last point hurts most in cash on delivery markets, where a bad address means a returned parcel and two-way shipping you pay for. Those are the gaps validation rules fill.
Which orders should you stop at checkout?
Here are the cases merchants ask about most, written as rule recipes. Each one is a condition plus the message buyers see.
| Goal | Condition | Message buyers see |
|---|---|---|
| Require a house number | Address line 1 doesn’t contain a number | Please add a house or building number to your shipping address. |
| Block PO boxes | Address line 1 or 2 contains “PO Box”, “P.O. Box” or “Post Office Box” | We can’t deliver to PO boxes. Please enter a street address. |
| Block ZIP codes you don’t serve | ZIP/postal code starts with your excluded prefixes | We don’t deliver to this postcode yet. Please use a different delivery address. |
| Minimum order value | Cart subtotal is less than $15 | Orders start at $15. Add a few more items to continue. |
| Maximum quantity per order | Cart contains [launch product] and Cart quantity is greater than 3 | You can buy up to 3 of this item per order. Please lower the quantity. |
| Maximum order weight | Order weight is greater than 30 kg | Orders over 30 kg need a freight quote. Please split your order or contact us. |
| Wholesale minimum (B2B) | Customer tag is “wholesale” and Cart subtotal is less than $500 | Wholesale orders start at $500. Add more items to continue. |
A few notes on these recipes.
Missing house numbers and failed COD deliveries
This is the most common cause of failed deliveries in COD markets. A buyer types only a building name or a street, the courier calls a phone that doesn’t answer, and the parcel returns. A house number rule is cheap insurance. If you only sell COD in one country, add a Country condition so the rule only runs there. Pair it with rules that control who can pay with cash on delivery for the strongest protection.
PO boxes
Buyers in the US and Australia often use PO boxes. Some carriers deliver there and some don’t. If only some of your rates can reach a PO box, you have two options: block PO boxes outright with a validation rule, or hide shipping methods that can’t deliver there and let the buyer pick one that can. Write the condition with several spellings, matched with ANY, because buyers type it in different ways.
Minimum order value and quantity caps
A minimum protects your margin on tiny orders. A quantity cap keeps resellers from buying out a limited drop. One honest limit: a cap like this works per order. It doesn’t count what the same person bought last week. If you know who your resellers are, tag them in Shopify and add a Customer tag condition, which works for buyers who are signed in.
Validation vs blocking a customer
Validation asks the buyer to change something, then lets them continue. It’s for good buyers with a fixable cart. If you want to stop a specific person, email or phone number from ordering at all, you need a blocklist instead. See how to block known bad buyers.
How do you set up validation rules without code?
Since Shopify’s own settings stop at the address check, you need an app that ships validation Functions. SP Checkout Customizer has ready-made templates for the recipes above, works on every Shopify plan, and has a free plan.
Step 1: Pick a template or start from scratch
In the app, go to Rules → Add rule → Checkout validation. For the common cases, use the two template groups on the Rules page:
| Group | Templates |
|---|---|
| Order limits | Minimum order value, Maximum quantity per order, Maximum order weight |
| Address | Block PO boxes, Require a house number, Block specific ZIP codes |
Click Use a template on the card, or Start from scratch.

Step 2: Adjust the conditions
The template opens in the rule editor with conditions filled in. Change the numbers or text to fit your store. You can add more conditions from groups such as Cart (subtotal, quantity, order weight), Products, Customer (tag, order count, language) and Address and contact (country, ZIP/postal code, address lines). Choose Match ALL conditions or Match ANY condition.

Step 3: Write the message on the Action tab
The Action tab has two settings:
- Target placement: show the message under a field as soon as the buyer leaves it, or when the buyer tries to continue. Use the field option for address rules, so buyers see the problem right where they typed it.
- Error message: what the buyer reads. If your store sells in several languages, write one message per language. A language you leave empty uses your main language’s message.

Tip: tell the buyer what to change, not what went wrong. “Add a street number to your address” gets fixed. “Invalid address” gets an abandoned checkout.
Example: require a house number
- On Rules, click Use a template on the Address card and pick Require a house number. The rule checks whether Address line 1 contains a number.
- Set the error message, for example: Please add a house or building number to your shipping address.
- Save the rule with its status set to Active.
The buyer can’t continue until they correct the address.


A safety warning before you go live
An active validation rule with no conditions runs on every cart, which means nobody can check out. The app asks you to confirm before saving one (Save anyway or Keep editing), and Home shows a yellow notice whenever a validation rule is active. Even so, place a test order after every new rule, using a cart that should pass and one that should fail.
FAQ
Does Shopify have built-in checkout validation?
Partly. Shopify checks field formats, matches postcodes to states, and offers Validate shipping address in 20 countries. It has no native setting to block PO boxes, require a house number, refuse certain ZIP codes, or set a minimum order value at checkout. For those you need an app that uses validation Functions.
Do I need Shopify Plus for checkout validation?
No. Validation Functions delivered through a public App Store app work on every plan. Plus is only needed for custom-built apps with Functions and for checkout UI extensions on the information, shipping and payment steps.
Can I limit quantity per customer on Shopify?
You can cap quantity per order with a validation rule. A per-order rule doesn’t remember earlier orders, so a determined buyer could place a second order. For known resellers, tag them and add a Customer tag condition, or block them outright.
How do I block PO boxes on Shopify?
Create a validation rule with an Address line 1 (and line 2) condition that contains “PO Box” and its common spellings, matched with ANY. Show a message such as “We can’t deliver to PO boxes. Please enter a street address.”
Do validation rules apply to Shop Pay and other express checkouts?
Shopify’s documentation for cart and checkout validation Functions lists express checkouts (Shop Pay, PayPal, Google Pay and Apple Pay) among the checkouts it covers. Test your own rule with the express buttons you offer before you rely on it.
Will validation rules hurt my conversion rate?
They stop some checkouts on purpose. Keep the conditions narrow, write messages that say exactly what to fix, and use field placement for address rules. A buyer who corrects an address is a delivered order, not a lost one.
Stop bad orders before they cost you
Shopify’s address check is a good start, but it only covers 20 countries and doesn’t know your delivery rules. Validation rules let you require a house number, refuse PO boxes and postcodes you can’t serve, and set the order limits your margin needs. Start with one template, write a clear message, and test it with a real cart.
Try free on Shopify App Store: set up your first validation rule with SP Checkout Customizer.