Articles on: Blockify - Checkout Rules

Validate Customer Address on Checkout

How to Validate Customer Address Formats in Blockify Checkout

Overview

Incorrect or incomplete addresses are one of the most common causes of failed deliveries, refunds, and chargebacks. The Validate Customer Address Format rule in Blockify Checkout lets you enforce specific address requirements at checkout — so that orders only go through when the customer's shipping address matches the format you allow.

This article walks you through what the rule does, when to use it, and how to set it up step by step.

Benefits

  • Reduce shipping errors. Correctly formatted addresses minimize the risk of incorrect deliveries and lost packages, ensuring your products reach the right destination.
  • Lower chargeback rates. Accurate address validation helps prevent chargebacks caused by undelivered or misdelivered orders, saving you time and money.
  • Improve customer satisfaction. A seamless checkout process with accurate address information ensures customers receive their orders promptly, leading to higher satisfaction and repeat business.
  • Enhance store reputation. Reliable deliveries increase customer trust and loyalty, boosting your store's reputation and encouraging positive reviews.

When to Use This Rule

Use the Validate Customer Address Format rule when you need to:

  • Restrict checkout to customers in specific streets, neighborhoods, cities, or regions (for example, local-only delivery zones).
  • Enforce a required keyword in the address (e.g., a building name, complex name, or PO box format).
  • Block addresses that you've previously had delivery issues with.

If you simply want to block entire countries or postal codes, use the Country or Postal Code condition instead — this rule is designed for free-text address matching.

Step-by-Step Guide

Step 1: Open the Blockify Checkout app in your Shopify admin, then click Create rule and select Checkout Validation Rule.

Alt text: Blockify Checkout dashboard with the "Create rule" button clicked and "Checkout Validation Rule" selected from the dropdown.*


Step 2: In the rule configuration, set Condition to Specific Address, then choose how the rule should match and enter the address value:

  • Is — the address must match exactly. Example: 123 Halflington Street, OZ, USA only triggers if the customer enters that exact string.
  • Contains — the address only needs to include the specified text. Example: Halflington Street matches both 123 Halflington Street and 45 Halflington Street, Apt 2.

The match is case-insensitive.

Alt text: Rule configuration form with Condition set to "Specific Address", trigger set to "contains", and an address value entered in the input field.*


Step 3: Set up the Error Message that customers will see when their address does not match, and choose its Message Position on the checkout page (for example, above the address block or below the shipping section). Make the message specific so customers understand what to fix — e.g., "We only deliver to addresses on Halflington Street. Please update your shipping address."

Alt text: Error Message text field filled with a sample message, alongside the Message Position selector showing options for where the error appears on checkout.

Step 4: Click Save to publish the rule. The validation takes effect on your live checkout immediately.

Alt text: Save button at the bottom of the rule configuration screen, ready to activate the rule.*

FAQ

Q: What's the difference between "is" and "contains"? A: "Is" requires the customer's address to match exactly, character for character. "Contains" only checks whether the specified text appears anywhere in the address. Use "contains" if you want to match a street name, neighborhood, or keyword regardless of unit numbers or formatting.

Q: Will the rule still trigger if the customer types the address in a different case (uppercase/lowercase)? A: Yes. The match is case-insensitive — Halflington Street and halflington street are treated the same.

Q: Can I create multiple address rules at the same time? A: Yes. You can stack multiple Checkout Validation Rules to cover different addresses or address patterns. Each rule is evaluated independently at checkout.

Q: Where do customers see the error message? A: The message appears at the position you selected in Step 3, directly on the Shopify checkout page, before the customer can complete their order.

Note: Because this rule blocks checkout when the address doesn't match, test it carefully before enabling it on a busy store. We recommend placing a test order using both a valid and an invalid address to confirm the rule behaves as expected.

Updated on: 05/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!