Use case
WooCommerce delivery zone validation with postcode API
The problem
WooCommerce's built-in shipping zones rely on manually maintained postcode lists that go stale. When you start delivering to a new area, or stop delivering to one, updating those lists requires developer time. And when an order slips through to an area you don't cover, the refund and support cost is yours.
How Delivery Zone solves it
Wire the Delivery Zone API into WooCommerce shipping rate calculation. Your zones are managed in one dashboard, the API returns the correct price or rejection reason, and WooCommerce shows the result at checkout — all without manually editing postcode lists.
Example API request
# Server-side: check whether a postcode can be delivered to
curl -X POST https://api.deliveryzone.fi/api/v1/delivery/check \
-H "X-Api-Key: dz_live_..." \
-H "Content-Type: application/json" \
-d '{"destinationPostcode":"00100","basketValueCents":4500}'
# Response: in zone
{
"canDeliver": true,
"matchedZoneName": "Helsinki Center",
"priceCents": 590,
"currency": "EUR",
"estimatedDeliveryMinutes": 45,
"reasonCode": "DELIVERABLE"
}Example customer-facing message
We don’t deliver to this postcode. Please check the postcode or choose a different delivery address. Your order has not been charged.
Who this is for
WooCommerce store owners
WooCommerce developers
WordPress agencies building delivery shops
Ready to add postcode validation?
Free plan. No credit card. Real setup help.