Create booking on behalf of the passenger or customer
POST/api/v2/microservices/bookings
This endpoint should be used to create bookings or orders (specifically for On-Demand services) on behalf of the passenger. It uses standard authentication, not Passenger authentication.
The request is rejected with 400 when:
operatoristrueand the requested time is too soon: a depart-at request (departure time only) must be at least the simulation'smin_lead_time_depart_atseconds ahead, an arrive-by request (arrival time only) at leastmin_lead_time_arrive_byseconds ahead (default 2 hours).- the pickup and drop-off fall in a geofence pair listed in the simulation's
data.prohibited_trip_geofences(errorPickup and dropoff geofences are prohibited for making a booking).
Request
Responses
- 200
OK