Docs / Examples
Code examples & recipes.
Practical code examples and integration patterns for the Delivery Zone API.
Example: cURL postcode validation
Quick cURL example showing how to check delivery eligibility and get back zone, fee, and reason code from the Delivery Zone API.
See code example →
Example: block an out-of-zone order
Code example showing how to reject checkout orders when destinationPostcode falls outside your delivery zones.
See code example →
Example: return zone-based delivery fee
Code example showing how to extract priceCents and estimatedDeliveryMinutes from the check response to display accurate shipping costs.
See code example →
Example: show a clear customer error message
Code pattern for mapping Delivery Zone reason codes (NOT_DELIVERABLE, MINIMUM_ORDER_NOT_MET) to customer-friendly checkout messages.
See code example →
Example: keep the API key server-side
How to securely use the Delivery Zone API key server-side in Node.js, PHP, and .NET without exposing it in frontend code.
See code example →