Integration flow
Integration flow
1. Fare estimate
Call POST /ride/fare-estimate with pickup and drop coordinates.
- Omit
serviceTypeto receive bothscootyandcabquotes - Use
quotes[].totalAmountandquotes[].etain your UI
2. Create order
Call POST /ride/create-order after the rider selects a service type.
Rider details
Send rider details in the create order request:
There is no separate user registration API.
Webhook URL
Send your webhook URL in the same request:
Fery stores this URL on the ride and uses it for:
- Status updates
- Partner location updates
Include your own reference in metadata if needed. Example:
Response
- Use
orderIdfor cancel, feedback, and correlating webhooks - Show
otpto the rider - If
codeisUSER_HAVE_ACTIVE_RIDE, use the returned existingorderId
3. Webhooks
Implement your webhook endpoint as described in Webhooks.
Respond with HTTP 200 or 201 for each event.
Happy-path status sequence:
accepted → arrived → started → dropped
Location events use status: location_updated on the same URL.
4. Cancel
Call POST /ride/cancel with orderId when the customer cancels.
Fery also sends webhook status customer_cancelled.
5. Feedback
Optionally call POST /ride/feedback after the ride is completed.