Cancel Bus Booking
The ticket cancellation must be requested on a per-passenger basis. A separate cancellation request is
required for each individual PAX, and only a single SeatName can be passed in each cancellation request.
If "PartialCancellationAllowed": true, and the lead passenger is cancelled, the entire booking will
be automatically cancelled.. This is because the lead passenger is considered the main holder of the
reservation, and removing them can invalidate the booking for all other passengers.
{
"ClientId": "XXXXXX",
"UserName": "XXXXX",
"Password": "XXXXX",
"TraceId": "XXXXX",
"SeatName": "LD2,LD3,LD4",
"Remark": "Journey cancelled due to personal reasons "
}
IF "PartialCancellationAllowed" is false , partial cancellation is not permitted. In this scenario, you are required to pass all seat numbers associated with the booking to proceed with the cancellation.
Note: To avoid full cancellation, it is recommended to cancel only non-lead passengers when partial cancellation is required.
Service URL (REST) to be used:
Cancel Bus Booking Request
| Level | Element | Format | Comments | Mandatory |
|---|---|---|---|---|
| 1 | ClientId | String | Client ID is provided to the agency at the time of registration. | Mandatory |
| 2 | UserName | String | User name is provided to the agency at the time of registration. | Mandatory |
| 3 | Password | String | Password is provided to the agency at the time of registration. | Mandatory |
| 4 | EndUserIp | String | IP address of the End User | Mandatory |
| 5 | TraceId | String | Unique identifier for identifying every unique search Required for audit purpose from Search Response. | Mandatory |
| 6 | SeatName | String | Allocated seat name or number for the passenger. | Mandatory |
| 7 | Remarks | String | Remark for cancellation. | Mandatory |
Cancel Bus Booking Response
| Level | Element | Format | Comments | Mandatory |
|---|---|---|---|---|
| 1 | Error {} | Object | Error Object containing ErrorCode and ErrorMessage | Mandatory |
| 1.1 | ErrorCode | Integer | Code corresponding to the Error | Mandatory |
| 1.2 | ErrorMessage | String | Contains error description corresponding to ErrorCode. Blank if ErrorCode = 0 | Mandatory |
| 2 | Status | String | Current status of the cancellation request (e.g., In Process) | Mandatory |
| 3 | CancelId | Integer | Unique cancellation request identifier | Mandatory |
| 4 | TraceId | Integer | Unique identifier for tracking the request, required for audit purpose | Mandatory |