Create ride order
Creates a ride for a metro user.
- Rider details are sent in this request. There is no separate user registration API.
- `webhookURL` is required. Fery saves it on the ride and uses the same URL for status and location updates.
- `pickupOtp` is optional. If omitted, Fery generates a 4-digit OTP and returns it.
Authentication
x-api-keystring
API key provided by Fery for DMRC integration.
Request
This endpoint expects an object.
user
pickupLocation
dropLocation
paymentMode
Payment mode, e.g. prepaid or postpaid
webhookURL
HTTPS URL for status and location webhooks. Saved on the ride.
serviceType
pickupOtp
Optional 4-digit OTP. Generated by Fery if omitted.
couponCode
metadata
Your reference data. Echoed on webhooks when present.
Response
User already has an active ride
statusCode
success
message
data
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error