Create ride order
Creates a ride for a metro user.
- Rider details are sent in this request. There is no separate user registration API.
webhookURLis required. Fery saves it on the ride and uses the same URL for status and location updates.pickupOtpis 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
webhookURL
HTTPS URL for status and location webhooks. Saved on the ride.
serviceType
Allowed values:
paymentMode
Cash only for now. Optional; Fery always stores payment.mode as Cash with status pending until collected.
Allowed values:
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