Beta Delivery Zone on suljetussa beetassa — otamme nyt mukaan valikoituja suomalaisia kauppiaita.
API-esimerkki

Tarkista suomalainen postinumero curlilla

Yksinkertaisin mahdollinen Delivery Zone API -pyyntö. Tarkista, kuuluuko postinumero 00100 toimitusalueisiisi.

Pyyntö

# 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"
}