Update a booking
PATCH/v1/bookings/:bookId
Update a booking
Supported roles
- Partner
- Fleet manager
Request
Path Parameters
ID of booking
- application/json
Body
required
-
- Simple format (local time): YYYY-MM-DD HH:mm (e.g., "2024-02-19 16:46")
-
- ISO 8601 with timezone (e.g., "2024-02-19T16:46:45.000+07:00")
-
- UTC format (e.g., "2024-02-19T09:46:45.000Z")
Pickup time. Supports multiple formats:
Internal notes visible only to dispatchers and operations staff. Used for internal coordination or operator instructions.
price object
Only support on custom fare booking
passenger object
Phone number in E.164 format
Number of luggage items. No fare recalculation.
Possible values: >= 1
Number of passengers. No fare recalculation.
pickup object
Pickup location. No fare recalculation.
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
destination object
Destination location. No fare recalculation.
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
Responses
- 200
- 404
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
booking- A confirmed bookingquote- A quote that can be converted to bookingCommand CenterCar-hailingStreet sharingPartnerPassenger appAPIPWABooking.comHolidayTaxisHoppaaccepted- Provider accepteddriverAssigned- Booking has been assigned to driverdriverOnTheWay- Driver has started job and on the way to the pickup pointdriverArrived- Driver has arrived at the pickup pointpassengerOnBoard- Passenger has been picked updroppedOff- Dropped offcanceled- CanceledpassengerNoShow- Passenger was a no-showincident- Booking has been marked as incident by the providercompleted- Completedpending- Quote is awaiting customer decisionaccepted- Quote has been accepted and converted to bookingrejected- Quote has been rejected by customerexpired- Quote has expired
Possible values: [booking, quote]
Type of record:
Booking source:
Booking status:
Possible values: [pending, accepted, rejected, expired]
Quote status (only present when type is quote):
Vehicle identifier number for multiple vehicles with the same booking reference
booker object
Phone number in E.164 format. Required if email is not provided.
Booker’s email address. Required if phone is not provided.
passenger object
Phone number in E.164 format
driver object
Phone number in E.164 format
vehicle object
Vehicle license plate number
Vehicle manufacturer/brand
Vehicle model name
Vehicle color
pickup object
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
destination object
Possible values: >= -90 and <= 90
Possible values: >= -180 and <= 180
Pickup time in UTC timezone
Passenger's flight number, if applicable. Useful for airport pickup coordination and flight tracking.
corporate object
Corporate account information. If empty, the booking is considered an individual booking.
Internal notes visible only to dispatchers and operations staff. Used for internal coordination or operator instructions.
Driver note. Additional notes or instructions visible to both the driver and passenger (e.g., passenger preferences, pickup details, or contact instructions).
Number of passengers
Number of luggage
price object
Total trip duration in seconds from pickup to drop-off
Tracking URL of booking
Supplier ID
{
"bookId": "93123613947",
"groupId": "G1618",
"type": "booking",
"source": "Passenger app",
"status": "accepted",
"quoteStatus": "pending",
"bookingReference": "62549263846",
"vehicleIdentifier": 1,
"booker": {
"title": "Mr",
"firstName": "James",
"lastName": "Bond",
"phone": "+12051234567",
"email": "booker@example.com"
},
"passenger": {
"title": "Mr",
"firstName": "David",
"lastName": "James",
"phone": "+12051234567",
"email": "passenger@example.com"
},
"driver": {
"phone": "+12051234567",
"firstName": "Curtis",
"lastName": "Jones",
"avatar": "string"
},
"vehicle": {
"plateNumber": "ABC-1234",
"make": "Toyota",
"model": "Camry",
"color": "Black"
},
"pickup": {
"latitude": 42.94389871922842,
"longitude": -87.90088398474458,
"address": "Milwaukee Mitchell International Airport",
"city": "Milwaukee",
"country": "US",
"postcode": "53207"
},
"destination": {
"latitude": 43.203405744324265,
"longitude": -87.90498301216061,
"address": "225 Trillium Rd, Mequon, WI 53092, USA",
"city": "Mequon",
"country": "US",
"postcode": "53092"
},
"pickupDateTime": "2024-02-19T16:46:45.000Z",
"vehicleType": "Sedan",
"flightNumber": "AA5633",
"corporate": {
"id": "corp_12345",
"name": "Acme Corporation"
},
"internalComment": "VIP client - priority service",
"comment": "Please call upon arrival",
"noPassengers": 3,
"noLuggage": 0,
"price": {
"value": 68.86,
"currency": "USD"
},
"duration": 3600,
"trackLink": "https://track.goodjourney.io/cnsjikf8cdi32",
"supplierId": "string"
}
Booking not found