API overview
Use the Yonne External API to validate merchant credentials, quote deliveries, create orders, track fulfillment, cancel eligible orders, inspect wallet state, and test webhook flows. This section is the main API entry point. Read this page first, then move into authentication, webhooks, the error catalog, and the endpoint reference generated fromapi-1.json.
Base URL
yonne_test_...for sandboxyonne_live_...for production
Recommended request flow
- Validate the API key with
GET /api/v1/external/validate. - Confirm the merchant pickup location is configured.
- Quote the delivery with
POST /api/v1/external/quote. - Create the order with
POST /api/v1/external/create-order. - Track status with the order and tracking endpoints.
- Handle webhook updates in your backend.
First order walkthrough
1. Validate the API key
balancehasPickuppickupAddresspickupLatitudepickupLongitude
hasPickup is false, configure the merchant pickup location before continuing.
2. Request a quote
3. Create the order
Important integration rules
- Always send
Idempotency-Keyon order creation. - Treat
delivery_feeas a required create-order input. - Use canonical
snake_casefield names. - Save both
order_idandtracking_id. - Separate sandbox and production keys in your systems and logs.
What belongs where
- Use
docs/api-reference/authenticationfor request authentication details. - Use
docs/api-reference/webhooksfor webhook delivery behavior. - Use
docs/api-reference/error-catalogfor business and integration failure reference. - Use the endpoint docs generated from
api-1.jsonfor the full operation-level contract, including the Mintlify method styling forGET,POST, and other operations.
