Bus API
Book bus tickets with redBus India and find 70K+ routes and 2300+ operators. Reference for every bus method: search, pricing, booking and post-booking.
All requests share the same headers: Content-Type: application/json, Accept-encoding: gzip, your PID and x-api-key. Pass the end customer's IPv4 address as Customer-Ip.
Geographical Location Search
The Geography APIs provide you with access to geographic definitions and property mappings for over 600,000 regions and airports. Returns the geographic definition and property mappings of regions matching the specified parameters as a paginated response.
Parameters
Acceptstringheaderrequiredapplication/json
Accept - Encodingstringheaderrequiredgzip
AuthorizationstringheaderrequiredYour API Key
Your PID Key
Customer-IpstringheaderrequiredIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringqueryrequired"getLocations" as a parameter
termstringqueryrequiredRelevant regions.
Specific information about the region e.g. whether it covers surrounding areas for a city. Only present when relevant for a region.
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-PID-KEY',
'x-api-key:'ADD-API-YOUR-KEY'
);
GET: https://abengines.com/api/v1/travel-api/bus.php?action=getLocations&term=delhiResponse
The API returns an HTTP response, which generally includes the result of the request invocation
{
"bus": [
{
"CityName": "Delhi",
"category": "bus",
"search_type": "CityId",
"CityId": "230"
},
{
"CityName": "Delhi 1 day Tour",
"category": "bus",
"search_type": "CityId",
"CityId": "8137"
},
{
"CityName": "Delhi Airport",
"category": "bus",
"search_type": "CityId",
"CityId": "3898"
},
{
"CityName": "Delhi Cantt,Delhi",
"category": "bus",
"search_type": "CityId",
"CityId": "14542"
},
{
"CityName": "Delhi Darshan",
"category": "bus",
"search_type": "CityId",
"CityId": "5415"
}
]
}Authenticate
Authenticate method will return the Token ID that needs to be echoed back in every subsequent request..
Parameters
Acceptstringheaderrequiredapplication/json
Accept - Encodingstringheaderrequiredgzip
AuthorizationstringheaderrequiredYour API Key
Customer-IpstringheaderrequiredIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer's IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringqueryrequired"createToken" as a parameter
Request
https://abengines.com/api/v1/travel-api/flights/header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-PID'
'x-api-key:'ADD-YOUR-KEY'
);
GET: https://abengines.com/api/v1/travel-api/flights/?action=createTokenResponse
The API returns an HTTP response, which generally includes the result of the request invocation
{
"TokenId": "b33c72c2-d87b-4e6a-a8a2-3a476ddb0fd0",
}Bus Search
This method gives the list of bus services from the specified source city to the destination city on a specified date.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"busSearch" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
modestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
origin_idstringqueryCity ID of Origin City Ex: 8463 (City ID for Bangalore)
destination_idstringqueryCity ID of Destination City Ex: 9573 (City ID for Hyderabad)
depart_datestringqueryTravel Date. Must follow YYYY-MM-DD format. ie. "depart_date:2021-09-09"
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "busSearch",
"mode": "Test",
"origin_id": "8463",
"destination_id": "9573",
"depart_date": "2021-09-09"
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "200",
"status_message": "OK",
"responseData": {
"BusSearchResult": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"Destination": "Hyderabad",
"Origin": "Bangalore",
"TraceId": "95220686-46d3-467c-b027-d94c562ccc6e",
"BusResults": [
{
"ResultIndex": 13,
"ArrivalTime": "2021-09-10T04:00:00",
"AvailableSeats": 20,
"DepartureTime": "2021-09-09T18:00:00",
"RouteId": "2000000139040054664",
"BusType": "Volvo A/C Seater (1+1)",
"ServiceName": "Seat Seller",
"TravelName": "TESTING ACCOUNT",
"IdProofRequired": false,
"IsDropPointMandatory": false,
"LiveTrackingAvailable": false,
"MTicketEnabled": true,
"MaxSeatsPerTicket": 6,
"OperatorId": 10419079,
"PartialCancellationAllowed": true,
"BoardingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Domlur",
"CityPointName": "Domlur",
"CityPointTime": "2021-09-09T18:00:00"
}
],
"DroppingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Abids",
"CityPointName": "Abids",
"CityPointTime": "2021-09-10T04:00:00"
}
],
"BusPrice": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
},
"CancellationPolicies": [
{
"CancellationCharge": 10,
"CancellationChargeType": 2,
"PolicyString": "Till 13:00 on 08 Sep 2021",
"TimeBeforeDept": "29$-1",
"FromDate": "2021-08-13T12:26:31",
"ToDate": "2021-09-08T13:00:00"
},
{
"CancellationCharge": 50,
"CancellationChargeType": 2,
"PolicyString": "Between 13:00 on 08 Sep 2021 - 01:00 on 09 Sep 2021",
"TimeBeforeDept": "17$29",
"FromDate": "2021-09-08T13:00:00",
"ToDate": "2021-09-09T01:00:00"
},
{
"CancellationCharge": 100,
"CancellationChargeType": 2,
"PolicyString": "After 01:00 on 09 Sep 2021",
"TimeBeforeDept": "0$17",
"FromDate": "2021-09-09T01:00:00",
"ToDate": "2021-09-10T04:00:00"
}
]
},
{
"ResultIndex": 1,
"ArrivalTime": "2021-09-09T21:00:00",
"AvailableSeats": 28,
"DepartureTime": "2021-09-09T01:00:00",
"RouteId": "2000000139040079020",
"BusType": "Volvo A/C Sleeper (2+2)",
"ServiceName": "Seat Seller",
"TravelName": "TESTING ACCOUNT",
"IdProofRequired": false,
"IsDropPointMandatory": false,
"LiveTrackingAvailable": false,
"MTicketEnabled": true,
"MaxSeatsPerTicket": 6,
"OperatorId": 10419079,
"PartialCancellationAllowed": true,
"BoardingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Domlur I Stage",
"CityPointName": "Domlur I Stage (Pickup Bus)",
"CityPointTime": "2021-09-09T01:00:00"
}
],
"DroppingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Anand Bagh",
"CityPointName": "Anand Bagh",
"CityPointTime": "2021-09-09T21:00:00"
}
],
"BusPrice": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
},
"CancellationPolicies": [
{
"CancellationCharge": 10,
"CancellationChargeType": 2,
"PolicyString": "Till 20:00 on 07 Sep 2021",
"TimeBeforeDept": "29$-1",
"FromDate": "2021-08-13T12:26:31",
"ToDate": "2021-09-07T20:00:00"
},
{
"CancellationCharge": 50,
"CancellationChargeType": 2,
"PolicyString": "Between 20:00 on 07 Sep 2021 - 08:00 on 08 Sep 2021",
"TimeBeforeDept": "17$29",
"FromDate": "2021-09-07T20:00:00",
"ToDate": "2021-09-08T08:00:00"
},
{
"CancellationCharge": 100,
"CancellationChargeType": 2,
"PolicyString": "After 08:00 on 08 Sep 2021",
"TimeBeforeDept": "0$17",
"FromDate": "2021-09-08T08:00:00",
"ToDate": "2021-09-09T21:00:00"
}
]
},
{
"ResultIndex": 5,
"ArrivalTime": "2021-09-09T03:00:00",
"AvailableSeats": 8,
"DepartureTime": "2021-09-09T02:00:00",
"RouteId": "8000000139030117824",
"BusType": "Bharat benz Non A/C Seater Air Suspension (1+1)",
"ServiceName": "Seat Seller",
"TravelName": "bo_migration",
"IdProofRequired": false,
"IsDropPointMandatory": false,
"LiveTrackingAvailable": false,
"MTicketEnabled": true,
"MaxSeatsPerTicket": 6,
"OperatorId": 29865737,
"PartialCancellationAllowed": true,
"BoardingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Hosur",
"CityPointName": "Hosur",
"CityPointTime": "2021-09-09T02:00:00"
}
],
"DroppingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Abids",
"CityPointName": "Abids",
"CityPointTime": "2021-09-09T03:00:00"
}
],
"BusPrice": {
"CurrencyCode": "INR",
"BasePrice": 10,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10,
"PublishedPriceRoundedOff": 10,
"OfferedPrice": 9.5,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.5,
"AgentMarkUp": 0,
"TDS": 0.2,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
},
"CancellationPolicies": [
{
"CancellationCharge": 15,
"CancellationChargeType": 2,
"PolicyString": "Till 21:00 on 07 Sep 2021",
"TimeBeforeDept": "29$-1",
"FromDate": "2021-08-13T12:26:31",
"ToDate": "2021-09-07T21:00:00"
},
{
"CancellationCharge": 20,
"CancellationChargeType": 2,
"PolicyString": "Between 21:00 on 07 Sep 2021 - 09:00 on 08 Sep 2021",
"TimeBeforeDept": "17$29",
"FromDate": "2021-09-07T21:00:00",
"ToDate": "2021-09-08T09:00:00"
},
{
"CancellationCharge": 50,
"CancellationChargeType": 2,
"PolicyString": "Between 09:00 on 08 Sep 2021 - 17:00 on 08 Sep 2021",
"TimeBeforeDept": "9$17",
"FromDate": "2021-09-08T09:00:00",
"ToDate": "2021-09-08T17:00:00"
},
{
"CancellationCharge": 100,
"CancellationChargeType": 2,
"PolicyString": "After 17:00 on 08 Sep 2021",
"TimeBeforeDept": "0$9",
"FromDate": "2021-09-08T17:00:00",
"ToDate": "2021-09-09T03:00:00"
}
]
}
]
}
}
}Bus Boarding Point
This method gives the list of boarding and their respective boarding times, landmark, complete address and contact numbers for the specified route.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"getBoardingPoints" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
modestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
ResultIndexstringqueryResultIndex
TraceIdstringqueryUnique identifier for identify every unique search
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "getBoardingPoints",
"mode": "Test",
"ResultIndex": "1",
"TraceId": "bac4418f-5641-4256-ab47-5c262cfe5bb9"
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "200",
"status_message": "OK",
"responseData": {
"GetBusRouteDetailResult": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"TraceId": "bac4418f-5641-4256-ab47-5c262cfe5bb9",
"BoardingPointsDetails": [
{
"CityPointAddress": "test",
"CityPointContactNumber": "0099988899",
"CityPointIndex": 1,
"CityPointLandmark": "test",
"CityPointLocation": "Domlur I Stage",
"CityPointName": "Domlur I Stage (Pickup Bus)",
"CityPointTime": "2021-09-09T01:00:00"
}
],
"DroppingPointsDetails": [
{
"CityPointIndex": 1,
"CityPointLocation": "Anand Bagh",
"CityPointName": "Anand Bagh",
"CityPointTime": "2021-09-09T21:00:00"
}
]
}
}
}Bus Seat Layout
This method give the seat details of the user selected bus. Client need to pass the ResultIndex in the requsest and in response, he gets the complete seat details of requested bus like how many seats are available, how many seats are reserver for ladies and price details.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"getBusSeatLayOut" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
modestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
ResultIndexstringqueryResultIndex
TraceIdstringqueryUnique identifier for identify every unique search
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "getBusSeatLayOut",
"mode": "Test",
"ResultIndex": "1",
"TraceId": "bac4418f-5641-4256-ab47-5c262cfe5bb9"
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "200",
"status_message": "OK",
"responseData": {
"GetBusSeatLayOutResult": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"TraceId": "bac4418f-5641-4256-ab47-5c262cfe5bb9",
"SeatLayoutDetails": {
"AvailableSeats": "28",
"HTMLLayout": "",
"SeatLayout": {
"NoOfColumns": 1,
"NoOfRows": 4,
"SeatDetails": [
[
{
"ColumnNo": "000",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 1,
"SeatName": "1",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "002",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 2,
"SeatName": "2",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "004",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 3,
"SeatName": "3",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "006",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 4,
"SeatName": "4",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "008",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 5,
"SeatName": "5",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "010",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 6,
"SeatName": "6",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "012",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 10.56,
"SeatIndex": 7,
"SeatName": "7",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
],
[
{
"ColumnNo": "000",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 8,
"SeatName": "8",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "002",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 16,
"SeatName": "9",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "004",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 17,
"SeatName": "10",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "006",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 18,
"SeatName": "11",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "008",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 19,
"SeatName": "12",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "010",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 20,
"SeatName": "13",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "012",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "002",
"SeatFare": 10.56,
"SeatIndex": 21,
"SeatName": "14",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 10.56,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 10.56,
"PublishedPriceRoundedOff": 11,
"OfferedPrice": 10.03,
"OfferedPriceRoundedOff": 10,
"AgentCommission": 0.53,
"AgentMarkUp": 0,
"TDS": 0.21,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
],
[
{
"ColumnNo": "000",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 9,
"SeatName": "a",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "002",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 10,
"SeatName": "b",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "004",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 11,
"SeatName": "c",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "006",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 12,
"SeatName": "d",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "008",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 13,
"SeatName": "e",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "010",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 14,
"SeatName": "f",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "012",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "000",
"SeatFare": 8.45,
"SeatIndex": 15,
"SeatName": "g",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
],
[
{
"ColumnNo": "000",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 22,
"SeatName": "h",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "002",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 23,
"SeatName": "i",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "004",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 24,
"SeatName": "j",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "006",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 25,
"SeatName": "k",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "008",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 26,
"SeatName": "l",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "010",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 27,
"SeatName": "m",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
},
{
"ColumnNo": "012",
"Height": 2,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": true,
"RowNo": "002",
"SeatFare": 8.45,
"SeatIndex": 28,
"SeatName": "n",
"SeatStatus": true,
"SeatType": 2,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 8.45,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 8.45,
"PublishedPriceRoundedOff": 8,
"OfferedPrice": 8.03,
"OfferedPriceRoundedOff": 8,
"AgentCommission": 0.42,
"AgentMarkUp": 0,
"TDS": 0.17,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
]
]
}
}
}
}
}Bus Block
This API method is used to tentatively book (block) a ticket. This tentative ticket will be blocked for a specified time and can be confirmed within specified time limit.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"blockBus" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
modestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
origin_namestringqueryOrigin City Name
destination_namestringqueryDestination City Name
depart_datestringqueryTravel Date Ex:(2021-09-09)
ResultIndexstringqueryResultIndex
TraceIdstringqueryUnique identifier for identify every unique search
BoardingPointIdstringqueryId of the boarding point selected (e.g. 43289)h
DroppingPointIdstringqueryId of the dropping point selected (e.g. 43281)
PassengerArrayqueryArray of passenger details
LeadPassengerBooleanqueryLead Passenger
PassengerIdnumberqueryPassenger Id
TitlestringqueryTitle of passenger
FirstNamestringqueryFirst name of passenger
LastNamestringqueryLast name of passenger
EmailstringqueryEmail address of passenger
PhonenostringqueryPhone no of passenger
GenderEnumerationqueryGender of passenger Possible values Male = 1, Female = 2
IdTypeEnumerationqueryId proof type
Possible values Pan no, Voterid card, Passport
IdNumberStringqueryId proof number
AgeStringqueryAge of the passenger
SeatArrayqueryArray of seat details seat name, seat no
ColumnNoIntegerqueryColumnNo
HeightIntegerquerySeat height
IsLadiesSeatBooleanquerySeat reserved for ladies possible values are True or False
IsMalesSeatBooleanquerySeat reserved for male. Possible values are True or False
IsUpperBooleanqueryIsUpper
RowNoIntegerqueryseat row number in which row seat lies e.g. 1
SeatIndexIntegerquerySeatIndex (e.g. 9)
SeatNamestringqueryValid seat name
SeatTypeEnumerationquerytype of seat possible value can be seat = 1, sleeper = 2, seatCumSleeper = 3, UpperBerth = 4,LowerBerth = 5
WidthIntegerqueryPossible Values are 1 or 2
PriceArrayquerySeat Price array
CurrencyCodestringqueryCurrency
BasePriceDecimalqueryBase price of bus
TaxDecimalqueryTax applicable on bus price
OtherChargesDecimalqueryOther charges applicable on bus price
DiscountDecimalqueryDiscount applicable on bus price
PublishedPriceDecimalqueryPublished Price
PublishedPriceRoundedOffDecimalqueryThis price is for display purpose only
OfferedPriceDecimalqueryOffered Price of the Bus
OfferedPriceRoundedOffDecimalqueryOffered Price (rounded off) of the Bus
AgentCommissionDecimalqueryAgentCommission
AgentMarkUpDecimalqueryAgentMarkUp
TDSDecimalqueryTDS
GSTArrayqueryDefine the CGST and IGST rate and amount applicable on the bus price
CGSTAmountDecimalqueryCGST amount
CGSTRateDecimalqueryRate of CGST
CessAmountDecimalqueryCess amount
CessRateDecimalqueryPercentage Rate of cess
IGSTAmountDecimalqueryIGST amount
IGSTRateDecimalqueryPercentage Rate of IGST
SGSTAmountDecimalquerySGST S amount
SGSTRateDecimalqueryPercentage Rate of SGST
TaxableAmountDecimalqueryTotal taxable amount
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "blockBus",
"mode": "Test",
"origin_name": "Bangalore",
"destination_name": "Hyderabad",
"depart_date": "2021-09-09",
"TraceId": "b1427096-dce4-42c8-8228-800ec9bd5c79",
"ResultIndex": "2",
"BoardingPointId": "1",
"DroppingPointId": "1",
"Passenger": [
{
"LeadPassenger": true,
"PassengerId": 0,
"Title": "Mr",
"FirstName": "Sivanath ",
"LastName": "Nagarajan",
"Email": "operations@techwysh.com",
"Address": "Barmer",
"Gender": 1,
"Age": "31",
"IdType": null,
"IdNumber": null,
"Phoneno": "9003667677",
"Seat": {
"ColumnNo": "000",
"Height": 1,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 5.28,
"SeatIndex": 1,
"SeatName": "1",
"SeatStatus": true,
"SeatType": 1,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
}
]
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "200",
"status_message": "OK",
"responseData": {
"BlockResult": {
"IsPriceChanged": false,
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"ArrivalTime": "09/13/2021 04:00:00",
"BusType": "Volvo A/C Seater (1+1)",
"DepartureTime": "09/12/2021 18:00:00",
"ServiceName": "Seat Seller",
"TraceId": "b1427096-dce4-42c8-8228-800ec9bd5c79",
"TravelName": "TESTING ACCOUNT",
"BoardingPointdetails": {
"CityPointAddress": "Domlur",
"CityPointContactNumber": "7204587325",
"CityPointIndex": 1,
"CityPointLandmark": "Domlur",
"CityPointLocation": "Domlur",
"CityPointName": "Domlur",
"CityPointTime": "2021-09-12T18:00:00"
},
"CancelPolicy": [
{
"CancellationCharge": 10,
"CancellationChargeType": 2,
"PolicyString": "Till 13:00 on 11 Sep 2021",
"TimeBeforeDept": "29$-1",
"FromDate": "2021-08-13T14:55:49",
"ToDate": "2021-09-11T13:00:00"
},
{
"CancellationCharge": 50,
"CancellationChargeType": 2,
"PolicyString": "Between 13:00 on 11 Sep 2021 - 01:00 on 12 Sep 2021",
"TimeBeforeDept": "17$29",
"FromDate": "2021-09-11T13:00:00",
"ToDate": "2021-09-12T01:00:00"
},
{
"CancellationCharge": 100,
"CancellationChargeType": 2,
"PolicyString": "After 01:00 on 12 Sep 2021",
"TimeBeforeDept": "0$17",
"FromDate": "2021-09-12T01:00:00",
"ToDate": "2021-09-13T04:00:00"
}
],
"Passenger": [
{
"LeadPassenger": true,
"Title": "Mr",
"Address": "Barmer",
"Age": 31,
"Email": "operations@techwysh.com",
"FirstName": "Sivanath ",
"Gender": 1,
"IdNumber": null,
"IdType": null,
"LastName": "Nagarajan",
"Phoneno": "9003667677",
"Seat": {
"ColumnNo": "000",
"Height": 1,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 5.28,
"SeatIndex": 1,
"SeatName": "1",
"SeatStatus": true,
"SeatType": 1,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
}
]
}
},
"BlockResult": {
"order_id": "61163BAFE49B4"
}
}Bus Book
This method confirms the previously tentative booked ticket. Client need to call the book method with all the requested details along with the seat numbers and boarding point. The system will return the confirmed ticket details including Ticket number.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"blockBus" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
modestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
order_idstringqueryUnique Order Id (You will get this from blockBus response)
origin_namestringqueryOrigin City Name
destination_namestringqueryDestination City Name
depart_datestringqueryTravel Date Ex:(2021-09-09)
ResultIndexstringqueryResultIndex
TraceIdstringqueryUnique identifier for identify every unique search
BoardingPointIdstringqueryId of the boarding point selected (e.g. 43289)h
DroppingPointIdstringqueryId of the dropping point selected (e.g. 43281)
PassengerArrayqueryArray of passenger details
LeadPassengerBooleanqueryLead Passenger
PassengerIdnumberqueryPassenger Id
TitlestringqueryTitle of passenger
FirstNamestringqueryFirst name of passenger
LastNamestringqueryLast name of passenger
EmailstringqueryEmail address of passenger
PhonenostringqueryPhone no of passenger
GenderEnumerationqueryGender of passenger Possible values Male = 1, Female = 2
IdTypeEnumerationqueryId proof type
Possible values Pan no, Voterid card, Passport
IdNumberStringqueryId proof number
AgeStringqueryAge of the passenger
SeatArrayqueryArray of seat details seat name, seat no
ColumnNoIntegerqueryColumnNo
HeightIntegerquerySeat height
IsLadiesSeatBooleanquerySeat reserved for ladies possible values are True or False
IsMalesSeatBooleanquerySeat reserved for male. Possible values are True or False
IsUpperBooleanqueryIsUpper
RowNoIntegerqueryseat row number in which row seat lies e.g. 1
SeatIndexIntegerquerySeatIndex (e.g. 9)
SeatNamestringqueryValid seat name
SeatTypeEnumerationquerytype of seat possible value can be seat = 1, sleeper = 2, seatCumSleeper = 3, UpperBerth = 4,LowerBerth = 5
WidthIntegerqueryPossible Values are 1 or 2
PriceArrayquerySeat Price array
CurrencyCodestringqueryCurrency
BasePriceDecimalqueryBase price of bus
TaxDecimalqueryTax applicable on bus price
OtherChargesDecimalqueryOther charges applicable on bus price
DiscountDecimalqueryDiscount applicable on bus price
PublishedPriceDecimalqueryPublished Price
PublishedPriceRoundedOffDecimalqueryThis price is for display purpose only
OfferedPriceDecimalqueryOffered Price of the Bus
OfferedPriceRoundedOffDecimalqueryOffered Price (rounded off) of the Bus
AgentCommissionDecimalqueryAgentCommission
AgentMarkUpDecimalqueryAgentMarkUp
TDSDecimalqueryTDS
GSTArrayqueryDefine the CGST and IGST rate and amount applicable on the bus price
CGSTAmountDecimalqueryCGST amount
CGSTRateDecimalqueryRate of CGST
CessAmountDecimalqueryCess amount
CessRateDecimalqueryPercentage Rate of cess
IGSTAmountDecimalqueryIGST amount
IGSTRateDecimalqueryPercentage Rate of IGST
SGSTAmountDecimalquerySGST S amount
SGSTRateDecimalqueryPercentage Rate of SGST
TaxableAmountDecimalqueryTotal taxable amount
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "bookBus",
"order_id": "1234567",
"mode": "Test",
"origin_name": "Bangalore",
"destination_name": "Hyderabad",
"depart_date": "2021-09-09",
"TraceId": "b1427096-dce4-42c8-8228-800ec9bd5c79",
"ResultIndex": "2",
"BoardingPointId": "1",
"DroppingPointId": "1",
"Passenger": [
{
"LeadPassenger": true,
"PassengerId": 0,
"Title": "Mr",
"FirstName": "Sivanath ",
"LastName": "Nagarajan",
"Email": "operations@techwysh.com",
"Address": "Barmer",
"Gender": 1,
"Age": "31",
"IdType": null,
"IdNumber": null,
"Phoneno": "9003667677",
"Seat": {
"ColumnNo": "000",
"Height": 1,
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"RowNo": "000",
"SeatFare": 5.28,
"SeatIndex": 1,
"SeatName": "1",
"SeatStatus": true,
"SeatType": 1,
"Width": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
}
]
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "600",
"status_message": "Booking Has Been Confirmed",
"responseData": {
"BookResult": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"TraceId": "b1427096-dce4-42c8-8228-800ec9bd5c79",
"order_id": "1234567",
"BusBookingStatus": "Confirmed",
"InvoiceAmount": 5,
"InvoiceNumber": "MW/2122/1626",
"BusId": 22406,
"TicketNo": "96Q56ZTQ",
"TravelOperatorPNR": "96Q56ZTQ"
}
}
}Retrieve Booking
This method gets the booking information based on Busid.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"getBookDetails" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
ModeTypestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
BusIdstringqueryThe BusId ID generated at the time of booking.
order_idstringqueryThe Order ID get from the response of booking.
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-PID',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "getBookDetails",
"mode": "Test",
"BusId": "22406",
"order_id": "1234567"
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"status": "200",
"status_message": "OK",
"responseData": {
"GetBookingDetailResult": {
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"Itinerary": {
"IsDomestic": false,
"TicketNo": "96Q56ZTQ",
"ArrivalTime": "2021-09-13T04:00:00",
"BlockDuration": 10,
"BookingMode": 0,
"BusId": 22406,
"BusType": "Volvo A/C Seater (1+1)",
"DateOfJourney": "2021-09-12",
"DepartureTime": "2021-09-12T18:00:00",
"Destination": "Hyderabad",
"DestinationId": 9573,
"NoOfSeats": 1,
"Origin": "Bangalore",
"Passenger": [
{
"LeadPassenger": true,
"Title": "Mr",
"Address": "Barmer",
"Age": 31,
"Email": "operations@techwysh.com",
"FirstName": "Sivanath ",
"Gender": 1,
"IdNumber": null,
"IdType": null,
"LastName": "Nagarajan",
"Phoneno": "9003667677",
"Seat": {
"IsLadiesSeat": false,
"IsMalesSeat": false,
"IsUpper": false,
"SeatFare": 5,
"SeatId": 27051,
"SeatName": "1",
"SeatStatus": false,
"SeatType": 1,
"Price": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
}
}
],
"RouteId": "2000000139070054664",
"ServiceName": "Seat Seller",
"SourceId": 8463,
"Status": 2,
"TravelName": "TESTING ACCOUNT",
"TravelOperatorPNR": "96Q56ZTQ",
"BoardingPointdetails": {
"CityPointAddress": "Domlur",
"CityPointContactNumber": "7204587325",
"CityPointLandmark": "Domlur",
"CityPointLocation": "Domlur",
"CityPointName": "Domlur",
"CityPointTime": "2021-09-12T18:00:00"
},
"CancelPolicy": [
{
"CancellationCharge": 10,
"CancellationChargeType": 2,
"PolicyString": "Till 13:00 on 11 Sep 2021",
"TimeBeforeDept": "29$-1",
"FromDate": "2021-08-13T14:55:49",
"ToDate": "2021-09-11T13:00:00"
},
{
"CancellationCharge": 50,
"CancellationChargeType": 2,
"PolicyString": "Between 13:00 on 11 Sep 2021 - 01:00 on 12 Sep 2021",
"TimeBeforeDept": "17$29",
"FromDate": "2021-09-11T13:00:00",
"ToDate": "2021-09-12T01:00:00"
},
{
"CancellationCharge": 100,
"CancellationChargeType": 2,
"PolicyString": "After 01:00 on 12 Sep 2021",
"TimeBeforeDept": "0$17",
"FromDate": "2021-09-12T01:00:00",
"ToDate": "2021-09-13T04:00:00"
}
],
"Price": {
"CurrencyCode": "INR",
"BasePrice": 5.28,
"Tax": 0,
"OtherCharges": 0,
"Discount": 0,
"PublishedPrice": 5.28,
"PublishedPriceRoundedOff": 5,
"OfferedPrice": 5.02,
"OfferedPriceRoundedOff": 5,
"AgentCommission": 0.26,
"AgentMarkUp": 0,
"TDS": 0.11,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 10,
"IGSTAmount": 0,
"IGSTRate": 18,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
},
"InvoiceNumber": "MW/2122/1626",
"InvoiceCreatedOn": "2021-08-13T09:38:34",
"InvoiceCreatedBy": 51363,
"InvoiceAmount": 5,
"InvoiceCreatedByName": "Akashi Rajkonwari",
"InvoiceLastModifiedBy": 51363,
"InvoiceLastModifiedByName": "Akashi Rajkonwari",
"InvoiceStatus": 3,
"BookingHistory": [
{
"CreatedBy": 51363,
"CreatedByName": "Akashi Rajkonwari",
"CreatedOn": "2021-08-13T09:38:34",
"EventCategory": 1,
"LastModifiedBy": 51363,
"LastModifiedByName": "Akashi Rajkonwari",
"LastModifiedOn": "2021-08-13T09:38:34",
"Remarks": "Booking is Saved and Invoice Generated.(Booked By BookingAPI , through New BookingEngine Service). "
},
{
"CreatedBy": 51363,
"CreatedByName": "Akashi Rajkonwari",
"CreatedOn": "2021-08-13T09:38:35",
"EventCategory": 2,
"LastModifiedBy": 51363,
"LastModifiedByName": "Akashi Rajkonwari",
"LastModifiedOn": "2021-08-13T09:38:35",
"Remarks": "Booking Confirmed "
}
]
},
"ResponseStatus": 1,
"TraceId": "B1427096-DCE4-42C8-8228-800EC9BD5C79"
}
}
}Cancel Booking
These methods are to be called to send cancellation or change requests and to check the cancellation status.
Parameters
Acceptstringheaderapplication/json
Accept - Encodingstringheadergzip
AuthorizationstringheaderYour PID
Your API Key
Customer-IpstringheaderIP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
actionstringquery"cancelBus" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
apiKeystringquerya valid API Key
The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.
ModeTypestringqueryeither "Test" or "LIVE"
Your application must be approved from the Travlix team. All the transactions will be treated as LIVE once the parameter is set to LIVE.
requestBodyarrayqueryan array with the following parameters
order_idstringqueryThe Order ID generated at the time of booking.
BusIdstringqueryThe Bus Id generated at the time of booking.
RemarksstringqueryRemark for cancellation
Request
https://abengines.com/api/v1/travel-api/bus.phpheader: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);
POST:
{
"action": "cancelBus",
"order_id": "1234567",
"BusId": "22406",
"Remarks": "I have another plan so i want cancellation"
}Response
The API returns an HTTP response, which generally includes the result of the request invocation
status:
200
regionid:
28.632558|77.220036
destination:
null
rooms:
1
adults:
2
children:
0
checkIn:
05/30/2019
checkOut:
05/31/2019
{
"status": "605",
"status_message": "Booking Has Been cancelled",
"responseData": {
"SendChangeRequestResult": {
"ResponseStatus": 1,
"Error": {
"ErrorCode": 0,
"ErrorMessage": ""
},
"TraceId": "B1427096-DCE4-42C8-8228-800EC9BD5C79",
"BusCRInfo": [
{
"CancellationChargeBreakUp": {
"CancellationFees": 0.5,
"CancellationServiceCharge": 4.5
},
"ChangeRequestId": 2833,
"CreditNoteNo": "MZ/2122/107",
"ChangeRequestStatus": 3,
"CreditNoteCreatedOn": "2021-08-13T16:31:46",
"TotalPrice": 5.13,
"RefundedAmount": 0,
"CancellationCharge": 5,
"TotalServiceCharge": 0,
"TotalGSTAmount": 0,
"GST": {
"CGSTAmount": 0,
"CGSTRate": 0,
"CessAmount": 0,
"CessRate": 0,
"IGSTAmount": 0,
"IGSTRate": 0,
"SGSTAmount": 0,
"SGSTRate": 0,
"TaxableAmount": 0
}
}
]
}
}
}Start your own travel agency with Travlix.
Trusted by 100+ travel agencies globally, with 25% growth every month. Book a free live demo of the Travlix admin portal.