Developer documentation

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.

GET

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

Acceptstringheaderrequired

application/json

Accept - Encodingstringheaderrequired

gzip

Authorizationstringheaderrequired

Your API Key

Your PID Key

Customer-Ipstringheaderrequired

IP 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

termstringqueryrequired

Relevant regions.

Specific information about the region e.g. whether it covers surrounding areas for a city. Only present when relevant for a region.

Request

GEThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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=delhi

Response

The API returns an HTTP response, which generally includes the result of the request invocation

200 · application/json
{
    "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"
        }
    ]
}
GET

Authenticate

Authenticate method will return the Token ID that needs to be echoed back in every subsequent request..

Parameters

Acceptstringheaderrequired

application/json

Accept - Encodingstringheaderrequired

gzip

Authorizationstringheaderrequired

Your API Key

Customer-Ipstringheaderrequired

IP 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

GEThttps://abengines.com/api/v1/travel-api/flights/
Request
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=createToken

Response

The API returns an HTTP response, which generally includes the result of the request invocation

200 · application/json
{

      "TokenId": "b33c72c2-d87b-4e6a-a8a2-3a476ddb0fd0",
}
POST

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

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

modestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

ResultIndexstringquery

ResultIndex

TraceIdstringquery

Unique identifier for identify every unique search

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
    "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"
                }
            ]
        }
    }
}
POST

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

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

modestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

ResultIndexstringquery

ResultIndex

TraceIdstringquery

Unique identifier for identify every unique search

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
  "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
                  }
                }
              }
            ]
          ]
        }
      }
    }
  }
}
POST

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

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

modestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

origin_namestringquery

Origin City Name

destination_namestringquery

Destination City Name

depart_datestringquery

Travel Date Ex:(2021-09-09)

ResultIndexstringquery

ResultIndex

TraceIdstringquery

Unique identifier for identify every unique search

BoardingPointIdstringquery

Id of the boarding point selected (e.g. 43289)h

DroppingPointIdstringquery

Id of the dropping point selected (e.g. 43281)

PassengerArrayquery

Array of passenger details

LeadPassengerBooleanquery

Lead Passenger

PassengerIdnumberquery

Passenger Id

Titlestringquery

Title of passenger

FirstNamestringquery

First name of passenger

LastNamestringquery

Last name of passenger

Emailstringquery

Email address of passenger

Phonenostringquery

Phone no of passenger

GenderEnumerationquery

Gender of passenger Possible values Male = 1, Female = 2

IdTypeEnumerationquery

Id proof type

Possible values Pan no, Voterid card, Passport

IdNumberStringquery

Id proof number

AgeStringquery

Age of the passenger

SeatArrayquery

Array of seat details seat name, seat no

ColumnNoIntegerquery

ColumnNo

HeightIntegerquery

Seat height

IsLadiesSeatBooleanquery

Seat reserved for ladies possible values are True or False

IsMalesSeatBooleanquery

Seat reserved for male. Possible values are True or False

IsUpperBooleanquery

IsUpper

RowNoIntegerquery

seat row number in which row seat lies e.g. 1

SeatIndexIntegerquery

SeatIndex (e.g. 9)

SeatNamestringquery

Valid seat name

SeatTypeEnumerationquery

type of seat possible value can be seat = 1, sleeper = 2, seatCumSleeper = 3, UpperBerth = 4,LowerBerth = 5

WidthIntegerquery

Possible Values are 1 or 2

PriceArrayquery

Seat Price array

CurrencyCodestringquery

Currency

BasePriceDecimalquery

Base price of bus

TaxDecimalquery

Tax applicable on bus price

OtherChargesDecimalquery

Other charges applicable on bus price

DiscountDecimalquery

Discount applicable on bus price

PublishedPriceDecimalquery

Published Price

PublishedPriceRoundedOffDecimalquery

This price is for display purpose only

OfferedPriceDecimalquery

Offered Price of the Bus

OfferedPriceRoundedOffDecimalquery

Offered Price (rounded off) of the Bus

AgentCommissionDecimalquery

AgentCommission

AgentMarkUpDecimalquery

AgentMarkUp

TDSDecimalquery

TDS

GSTArrayquery

Define the CGST and IGST rate and amount applicable on the bus price

CGSTAmountDecimalquery

CGST amount

CGSTRateDecimalquery

Rate of CGST

CessAmountDecimalquery

Cess amount

CessRateDecimalquery

Percentage Rate of cess

IGSTAmountDecimalquery

IGST amount

IGSTRateDecimalquery

Percentage Rate of IGST

SGSTAmountDecimalquery

SGST S amount

SGSTRateDecimalquery

Percentage Rate of SGST

TaxableAmountDecimalquery

Total taxable amount

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
    "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"
    }
}
POST

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

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

modestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

order_idstringquery

Unique Order Id (You will get this from blockBus response)

origin_namestringquery

Origin City Name

destination_namestringquery

Destination City Name

depart_datestringquery

Travel Date Ex:(2021-09-09)

ResultIndexstringquery

ResultIndex

TraceIdstringquery

Unique identifier for identify every unique search

BoardingPointIdstringquery

Id of the boarding point selected (e.g. 43289)h

DroppingPointIdstringquery

Id of the dropping point selected (e.g. 43281)

PassengerArrayquery

Array of passenger details

LeadPassengerBooleanquery

Lead Passenger

PassengerIdnumberquery

Passenger Id

Titlestringquery

Title of passenger

FirstNamestringquery

First name of passenger

LastNamestringquery

Last name of passenger

Emailstringquery

Email address of passenger

Phonenostringquery

Phone no of passenger

GenderEnumerationquery

Gender of passenger Possible values Male = 1, Female = 2

IdTypeEnumerationquery

Id proof type

Possible values Pan no, Voterid card, Passport

IdNumberStringquery

Id proof number

AgeStringquery

Age of the passenger

SeatArrayquery

Array of seat details seat name, seat no

ColumnNoIntegerquery

ColumnNo

HeightIntegerquery

Seat height

IsLadiesSeatBooleanquery

Seat reserved for ladies possible values are True or False

IsMalesSeatBooleanquery

Seat reserved for male. Possible values are True or False

IsUpperBooleanquery

IsUpper

RowNoIntegerquery

seat row number in which row seat lies e.g. 1

SeatIndexIntegerquery

SeatIndex (e.g. 9)

SeatNamestringquery

Valid seat name

SeatTypeEnumerationquery

type of seat possible value can be seat = 1, sleeper = 2, seatCumSleeper = 3, UpperBerth = 4,LowerBerth = 5

WidthIntegerquery

Possible Values are 1 or 2

PriceArrayquery

Seat Price array

CurrencyCodestringquery

Currency

BasePriceDecimalquery

Base price of bus

TaxDecimalquery

Tax applicable on bus price

OtherChargesDecimalquery

Other charges applicable on bus price

DiscountDecimalquery

Discount applicable on bus price

PublishedPriceDecimalquery

Published Price

PublishedPriceRoundedOffDecimalquery

This price is for display purpose only

OfferedPriceDecimalquery

Offered Price of the Bus

OfferedPriceRoundedOffDecimalquery

Offered Price (rounded off) of the Bus

AgentCommissionDecimalquery

AgentCommission

AgentMarkUpDecimalquery

AgentMarkUp

TDSDecimalquery

TDS

GSTArrayquery

Define the CGST and IGST rate and amount applicable on the bus price

CGSTAmountDecimalquery

CGST amount

CGSTRateDecimalquery

Rate of CGST

CessAmountDecimalquery

Cess amount

CessRateDecimalquery

Percentage Rate of cess

IGSTAmountDecimalquery

IGST amount

IGSTRateDecimalquery

Percentage Rate of IGST

SGSTAmountDecimalquery

SGST S amount

SGSTRateDecimalquery

Percentage Rate of SGST

TaxableAmountDecimalquery

Total taxable amount

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
    "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"
        }
    }
}
POST

Retrieve Booking

This method gets the booking information based on Busid.

Parameters

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

ModeTypestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

BusIdstringquery

The BusId ID generated at the time of booking.

order_idstringquery

The Order ID get from the response of booking.

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
    "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"
        }
    }
}
POST

Cancel Booking

These methods are to be called to send cancellation or change requests and to check the cancellation status.

Parameters

Acceptstringheader

application/json

Accept - Encodingstringheader

gzip

Authorizationstringheader

Your PID

Your API Key

Customer-Ipstringheader

IP 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.

apiKeystringquery

a 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.

ModeTypestringquery

either "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.

requestBodyarrayquery

an array with the following parameters

order_idstringquery

The Order ID generated at the time of booking.

BusIdstringquery

The Bus Id generated at the time of booking.

Remarksstringquery

Remark for cancellation

Request

POSThttps://abengines.com/api/v1/travel-api/bus.php
Request
header: 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

200 · application/json
{
    "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
                    }
                }
            ]
        }
    }
}
Ready to get started?

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.