Checkpost

How to block specific ZIP or postal codes at Shopify checkout

Short answer: Block checkout for postal codes you can't deliver to, using exact codes or prefixes (for example remote islands or rural areas). In Checkpost, choose “Block specific ZIP / postal codes” from Templates, adjust the values, test it, then save and enable the rule.

The problem

Remote islands, rural routes and specific postal areas often carry surcharges or aren't served by your carrier. Without a block you either eat the surcharge or cancel the order after payment.

How to set it up

  1. Install Checkpost from the Shopify App Store.
  2. Open Templates and choose Block specific ZIP / postal codes.
  3. List full postal codes, or switch the operator to "starts with" to block whole areas by prefix.
  4. Use Try this rule to test a sample cart, then click Save rule.

The rule

Checkout is blocked when all of these conditions is true:

Shoppers see: “We can't deliver to this postal code yet.” at the zip / postal code field, once they reach checkout.

Rule definition (JSON)
{
  "name": "Undeliverable postal codes",
  "match": "all",
  "conditions": [
    {
      "kind": "text",
      "field": "ship_zip",
      "op": "starts_with_any",
      "values": [
        "HS",
        "ZE",
        "KW15",
        "KW17"
      ]
    }
  ],
  "message": "We can't deliver to this postal code yet.",
  "target": "zip",
  "runOn": "checkout"
}

Where this rule works

These are cart and checkout validations, including supported accelerated checkouts. They are current-cart policies; they do not track previous purchases of a SKU. Shopify excludes POS, recurring subscription orders and native pre-order/Try Before You Buy flows from this API. See Shopify's validation compatibility.

Tips

FAQ

Can I upload a long list of postal codes?

Yes. Paste codes separated by commas or new lines. For very long lists, prefixes are faster to maintain than individual codes.

Can I charge more instead of blocking?

Checkpost blocks or allows checkout. For surcharges, use Shopify shipping rate conditions or a delivery customization app alongside it.

Related rules

Add block specific zip / postal codes to your store