Addrexx is the only address validation company that is both a NetSuite and Shopify Plus Partner.

Restrict PO Box Shipments Without Blocking Valid Street Addresses

Many merchants need PO Box restrictions at checkout. UPS and FedEx generally don’t deliver to USPS PO Boxes, and freight, oversized, or signature-required orders often need a physical street address. When a PO Box gets through checkout, the result is a delayed shipment, a carrier correction fee, or a package sent back.

Restricting PO Boxes sounds simple: look for “PO Box” in the shipping address and ask the customer for a street address.

But customers rarely type addresses the same way. A rule that’s too narrow misses restricted addresses. A rule that’s too broad can stop a customer who lives on Post Office Lane from completing a purchase.

Good address screening recognizes the variations, and understands when similar words belong to a valid street address.

One mailbox, many ways to write it

Customers may enter a PO Box as:

  • PO Box 100
  • P.O. Box 100
  • P O Box 100
  • POB 100
  • Post Office Box 100
  • Box 100

Capitalization, punctuation, spacing, and abbreviations can all change without changing where the package is going. An exact match for “PO Box” misses most of these.

That’s why flexible matching matters: the goal is to recognize the pattern, however the customer types it.

Why PO Box restrictions can’t just block “box” or “post office”

Rejecting any address that contains “box” or “post office” creates a different problem: false matches.

Consider these examples:

Address entered How a restriction should treat it
P.O. Box 100 Recognize a PO Box pattern
Post Office Box 100 Recognize a PO Box pattern
POB 100 Recognize a PO Box pattern
100 Post Office Lane Don’t reject just because it contains “Post Office”
25 Boxwood Drive Don’t reject just because it contains “Box”

Passing this check doesn’t mean an address is deliverable. It means the address shouldn’t be rejected just because the street name looks like a mailbox.

A good rule looks at the structure and context of the entry, rather than treating a single word as a reason to block checkout.

Private mailboxes need a separate policy

An entry such as “PMB 100” identifies a private mailbox. It isn’t just another way to write a USPS PO Box.

Private mailboxes are usually rented at a commercial mail-receiving location, such as a pack-and-ship store, and come with a real street address. Many carriers can deliver to them. Whether you should accept them depends on your shipping policy and what you sell.

So a merchant that restricts USPS PO Boxes shouldn’t automatically reject every private mailbox. If your policy excludes both, your screening needs to recognize both, as separate rules.

Refined since 2012

Addrexx uses a regular expression (a pattern-matching rule) that we’ve refined since 2012. It’s tuned to recognize restricted mailbox formats while avoiding false matches on legitimate street addresses.

This kind of flexible pattern matching doesn’t guess what the customer meant. It accounts for differences in punctuation, spacing, and abbreviations while telling mailbox patterns apart from ordinary street names.

Writing a rule that catches “PO Box” is easy. The hard part is refining it to handle the many ways customers enter addresses, without adding friction at checkout.

Help customers correct the address and continue

When an address conflicts with your shipping policy, the customer should know exactly what to do next. In Addrexx, a customer who enters a PO Box sees this notice at checkout:

PO Box restrictions in Shopify checkout: Addrexx notice reading “PO Box detected. Merchant is unable to ship to PO Boxes at this time.”
The Addrexx notice a customer sees when they enter a PO Box at Shopify checkout.

The notice names the restriction, and Addrexx clears the address line so the customer can enter a street address and continue, while they’re still in checkout and before an order ships to an address you can’t serve. Private mailboxes get their own notice when that rule is on.

Setting up PO Box restrictions in Addrexx

In Addrexx, PO Box restrictions and private mailbox checks are separate rules, so you can block one, both, or neither. You can also set U.S. and international rules independently.

See the Setup guide for step-by-step instructions.

PO Boxes are one of several address details worth catching before an order ships. Another is the missing apartment number.

Addrexx has helped businesses improve address quality since 2012. Request a demo to see PO Box and private mailbox restrictions in your Shopify Plus checkout.

Let's Get Started

Please complete this short form to start your Addrexx service.