Escolar Documentos
Profissional Documentos
Cultura Documentos
Document Information
Table of Contents
Specifications ................................................................................................................................ 3
0.1. Operations ........................................................................................................................ 3
0.1.1. GetStations .......................................................................................................... 3
0.1.2. GetDestinations ................................................................................................... 4
0.1.3. GetBoardingPoints............................................................................................... 4
0.1.4. GetDroppingPoints .............................................................................................. 5
0.1.5. GetCancellationPolicy.......................................................................................... 6
0.1.6. GetAvailableServices........................................................................................... 6
0.1.7. GetServiceSeatingLayout .................................................................................... 8
0.1.8. BlockTickets ......................................................................................................... 9
0.1.9. ConfirmationSeatBooking ................................................................................. 10
0.1.10. CancelTicket .................................................................................................... 10
0.1.11. GetOparators ................................................................................................... 11
Specifications
Following operations are offered under Abhibus Web Services Program
1.1.
GetStations
GetDestinations
GetBoardingPoints
GetDropingPoints
GetCancellationPolicy
GetAvailableServices
GetServiceSeatingLayout
BlockTickets
ConfirmationSeatBooking
CancelTicket
GetOparators
Operations
Following is the brief description about each of the above operations
Note: The username and password information should be communicated from Aggregator to the
Web service API. The required parameters should be username and password. These values
are mandatory and should be provided for every function call.
* Journey dates should be in yyyy-mm-dd format only.
1.1.1.
GetStations
username (String)
password (String)
Output parameters
Source_ID (int)
Station_Name (string)
{"Source_ID":"344","Station_Name":"Delhi"}]
1.1.2.
GetDestinations
This function is used for fetch destination stations info of selected source station.
Input parameters
username (String)
password (String)
sourceStationId (int)
Output parameters
Destination_ID (int)
Station_Name (string)
1.1.3.
GetBoardingPoints
This function is used for get boarding point information of selected Source station.
Input parameters
username (String)
password (String)
operatorId (int)
sourceStationId (int)
destinationStationId (int)
journeyDate (date)
Output parameters
operatorId (int)
Service_key (int)
Service_Name (string)
Traveler_Agent_Name (string)
[{"operatorId":"68","Service_key":"1002","Service_Name":"","Traveler_Agent_Name":"Reddy
Express","boarding_info":["Ashoknagar^08:30PM^28^At Bhaskar Kesineni Travels
9246820586","Chintal^08:30PM^110^Near Sha Theatre 9246820586","Chandanagar^08:40
PM^27^Opp: Hotel Kaveri, At Sree Kaleswari Travels 9246820586"]}]
1.1.4.
GetDroppingPoints
This function is used for get dropping point information of selected Source station and
Destination station.
Input parameters
username (String)
password (String)
operatorId (int)
serviceId (int)
sourceStationId (int)
destinationStationId (int)
journeyDate (date)
Output parameters
operatorId (int)
Service_key (int)
Service_Name (string)
Traveler_Agent_Name (string)
1.1.5.
GetCancellationPolicy
This method is used for get Cancellation policy details of selected Service.
Input parameters
username (String)
password (String)
operatorId (int)
serviceId (int)
sourceStationId (int)
destinationStationId (int)
journeyDate (date)
Output Parameters
operatorId (int)
Service_key (int)
Service_Name (string)
Traveler_Agent_Name (string)
Cancellationpy
(String)
GetAvailableServices
This function used for fetch all available services of selected route(from station to destination
station).
Input parameters
username (String)
password (String)
sourceStationId (int)
destinationStationId (int)
journeyDate (date)
Output Parameters
operatorId (int)
Service_key (int)
Service_Name (string)
Service_Number (string)
Traveler_Agent_Name (string)
Bus_Type_Name (string)
Start_time (string)
Arr_Time (string)
TravelTime (string)
Source_ID (int)
Destination_ID (int)
Fare (string)
available_seats (int)
BUS_START_DATE (string)
layout_id (int)
GetServiceSeatingLayout
username (String)
password (String)
operatorId (int)
serviceId (int)
sourceStationId (int)
destinationStationId (int)
journeyDate (date)
layoutId (int)
seatFare (int)
Output parameters
SourceStationID (int)
DestinationStationID (int)
Route (string)
journeyDate (date)
ServiceID (int)
SeatLayoutID (int)
upperTotalRows (int)
upperTotalColumns (int)
lowerTotalRows (int)
lowerTotalColumns (int)
lowerDividerRow (int)
upperDividerRow (int)
maxNumberOfSeats (int)
tentativeSeats (string)
1- lowerdeck_seat_nos (Array) - Formate: Seat.No, RowNo, ColNo, SeatType(SS-single seat, LB- lower
berth), Availability, Gender, Fare.
2- upperdeck_seat_nos (Array) - Formate: Seat.No, RowNo, ColNo, SeatType(UB- upper berth),
Availability, Gender, Fare
Example - Output: it will return Json string
[{"SourceStationID":"3","DestinationStationID":"5","Route":"Hyderabad-Vijayawada","JourneyDate":"2013-1009","ServiceID":"6182","SeatLayoutID":"3","upperTotalRows":"3","upperTotalColumns":"12","lowerTotalRows"
:"3","lowerTotalColumns":"12","lowerDividerRow":"1","upperDividerRow":"1","maxNumberOfSeats":6,"tentati
veSeats":null,"TotalSeatList":
{"lowerdeck_seat_nos":["0, 1, 12, LB, N, M, 600.00","L1, 2, 1, LB, Y, M, 600.00","L3, 2, 3, LB, Y, M,
600.00","L5, 2, 5, LB, N, F, 600.00","L7, 2, 7, LB, Y, M, 600.00","L9, 2, 9, LB, Y, M, 600.00","L11, 2, 11, LB,
Y, M, 600.00","L2, 3, 1, LB, Y, M, 600.00","L4, 3, 3, LB, N, M, 600.00","L6, 3, 5, LB, Y, M, 600.00","L8, 3, 7,
LB, Y, M, 600.00","L10, 3, 9, LB, Y, M, 600.00","L12, 3, 11, LB, Y, M, 600.00"],
"upperdeck_seat_nos":["0, 1, 24, UB, N, M, 600.00","U1, 2, 13, UB, Y, M, 600.00","U3, 2, 15, UB, Y, M,
600.00","U5, 2, 17, UB, N, M, 600.00","U7, 2, 19, UB, Y, M, 600.00","U9, 2, 21, UB, N, F, 600.00","U11, 2,
23, UB, Y, M, 600.00","U2, 3, 13, UB, Y, M, 600.00","U4, 3, 15, UB, Y, M, 600.00","U6, 3, 17, UB, Y, M,
600.00","U8, 3, 19, UB, Y, M, 600.00","U10, 3, 21, UB, Y, M, 600.00","U12, 3, 23, UB, Y, M, 600.00"]}}]
1.1.8.
BlockTickets
This function is used to Block the seats by sending bellow parameters. Consequently, this
function returns relevant values: Blocked Ticket Number when Seat's blocking made success.
Input parameters
username (String)
password (String)
operatorId (int)
journeyDate (date)
serviceId (string)
layoutId (string)
sourceStationId (int)
destinationStationId (int)
boardingPointID (string)
droppingPointID (stirng)
address (string)
contactNumber (string)
emailId (string)
Output parameters
referenceNo (string)
ConfirmationSeatBooking
This function is used to Booking confirmation the ticket by sending bellow parameters. this
function returns relevant values: Ticket number and PNRNumber when ticket booking made success.
Input parameters
username (String)
password (String)
operatorId (int)
journeyDate (date)
referenceNo (string)
Output parameters
TicketNo (string)
This function is used to cancel the booked ticket, it will be used also partial cancellation.
Input parameters
username (String)
password (String)
operatorId (int)
phoneNum (string)
ticketNo (string)
Output parameters
cancelstatus (String)
message(string)
username (String)
password (String)
Output parameters
operator_id (int)
operater_name (string)