メインコンテンツまでスキップ

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:

  • operator is true and the requested time is too soon: a depart-at request (departure time only) must be at least the simulation's min_lead_time_depart_at seconds ahead, an arrive-by request (arrival time only) at least min_lead_time_arrive_by seconds ahead (default 2 hours).
  • the pickup and drop-off fall in a geofence pair listed in the simulation's data.prohibited_trip_geofences (error Pickup and dropoff geofences are prohibited for making a booking).

Request​

Responses​

OK