yonne_test_ key while building — it behaves identically to production without affecting your live wallet.
Get your API key from merchant.yonne.app. If you don’t have an account yet, sign up there first.
Step 1 — Validate your API key
Before you build anything, confirm your key works and your pickup location is configured.Step 2 — Get a delivery quote
Yonne calculates the delivery fee based on the distance between your pickup location and the customer’s exact delivery coordinates. Your frontend must request the customer’s location using the browser Geolocation API and pass those coordinates to your server, which then calls/quote.
A typed address alone is not enough — Yonne requires
delivery_lat and delivery_lng. Use the browser Geolocation API or a geocoding service to convert addresses to coordinates before calling /quote.delivery_fee — you’ll pass it directly into the create-order call.
Step 3 — Create your first order
Now dispatch a rider. TheIdempotency-Key header is required — it prevents duplicate orders if your request is retried.
order_id and tracking_id in your database. You’ll use order_id for API operations (cancel, status checks) and tracking_id for customer-facing tracking links.
You’re done
You’ve just validated your key, gotten a quote, and created your first order. Here’s what to build next:- Wire up checkout → E-commerce Checkout Workflow
- Show live tracking to customers → Real-time Tracking Workflow
- Handle webhooks for order updates → Webhook Setup & Security
