Your customer fills their basket, reaches the checkout, and only then discovers you don't deliver to their postcode. The order is already placed, the payment provider has already run, and now you need to refund. This pattern wastes money and drives support tickets.
Call /v1/check server-side before the payment step runs. If canDeliver is false, block the order and return a clear reason code your UI can display to the customer. The customer gets an honest answer early — not a refund apology later.
# Server-side: check whether a postcode can be delivered to
curl -X POST https://api.deliveryzone.fi/v1/check \
-H "X-Api-Key: dz_live_..." \
-H "Content-Type: application/json" \
-d '{"destinationPostcode":"00100","basketValueCents":4500}'
# response
{
"canDeliver": true,
"zone": "Helsinki Center",
"priceCents": 590,
"reason": null
}We don’t deliver to this postcode. Please check the postcode or choose a different delivery address. Your order has not been charged.
Free plan. No credit card. Real setup help.