post
https://sandbox-api.intercity.com.ng/api/v1/th/tickets
This endpoint allows you to create new bookings
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Single Booking
Single bookings offer users the ability to create booking for a maximum of 1 passenger.
Multiple Booking
Multiple bookings can be done but up to a maximum of 5 passengers, to create multiple bookings you will need to indicate an array of passengers alongside your request.
{
"ride_id": "{{rideId}}",
"ride_destination_id": "{{rideDestinationId}}",
"passengers": [
{
"seat_id": "{{seatId1}}",
"passenger_type_id": "{{passengerTypeId}}",
"first_name": "Dauda",
"last_name": "Pona",
"gender": "Female",
"phone_number": "+2349032780584",
"email": "[email protected]",
"next_of_kin_first_name": "Pona",
"next_of_kin_last_name": "Dauda",
"next_of_kin_phone_number": "+2347081149777"
},
{
"seat_id": "{{seatId2}}",
"passenger_type_id": "{{passengerTypeId}}",
"first_name": "Dauda",
"last_name": "Pona",
"gender": "Female",
"phone_number": "+2349032780584",
"email": "[email protected]",
"next_of_kin_first_name": "Pona",
"next_of_kin_last_name": "Dauda",
"next_of_kin_phone_number": "+2347081149777"
}
]
}
