Cancel a booking
POST/v1/bookings/:bookId/cancel
Cancel a booking
Supported roles
- Partner
- Fleet manager
Request
Path Parameters
bookId stringrequired
ID of booking
- application/json
Body
required
0
- Passenger change travel plan1
- Passenger entered wrong location2
- Partner has another supplier3
- Others. Get reason string in key:reason
reasonCode integerrequired
Possible values: [0
, 1
, 2
, 3
]
Reason code:
reason string
Responses
- 200
- 404
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
bookId string
status string
{
"bookId": "string",
"status": "string"
}
Booking not found
Loading...