Retrieve Booking

This method gets the booking information based on Busid.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

Must be 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.

Definition and request parameters for Retrieve Booking Method

action

string

( query )

Must be "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.

BusId

string

( query )

The BusId ID generated at the time of booking.

order_id

string

( query )

The Order ID get from the response of booking.

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/bus/

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": "28970",
  "order_id": "64FC433D14546"
}
					 

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": "A8VEMBZY",
                "ArrivalTime": "2023-09-12T06:00:00",
                "BlockDuration": 10,
                "BookingMode": 0,
                "BusId": 28970,
                "BusType": "Volvo A/C Sleeper (2+2)",
                "DateOfJourney": "2023-09-11",
                "DepartureTime": "2023-09-11T20:00:00",
                "Destination": "Bangalore",
                "DestinationId": 8463,
                "NoOfSeats": 1,
                "Origin": "Hyderabad",
                "Passenger": [
                    {
                        "LeadPassenger": true,
                        "Title": "Mr",
                        "Address": "Delhi",
                        "Age": 31,
                        "City": "",
                        "Email": "praveen@thewebconz.com",
                        "FirstName": "Praveen ",
                        "Gender": 1,
                        "IdNumber": null,
                        "IdType": null,
                        "LastName": "Sharma",
                        "Phoneno": "9003667677",
                        "Seat": {
                            "IsLadiesSeat": false,
                            "IsMalesSeat": false,
                            "IsUpper": true,
                            "SeatFare": 14,
                            "SeatId": 35133,
                            "SeatName": "n",
                            "SeatStatus": false,
                            "SeatType": 2,
                            "Price": {
                                "CurrencyCode": "INR",
                                "BasePrice": 13.65,
                                "Tax": 0,
                                "OtherCharges": 0,
                                "Discount": 0,
                                "PublishedPrice": 13.65,
                                "PublishedPriceRoundedOff": 14,
                                "OfferedPrice": -16.35,
                                "OfferedPriceRoundedOff": -16,
                                "AgentCommission": 30,
                                "AgentMarkUp": 0,
                                "TDS": 12,
                                "GST": {
                                    "CGSTAmount": 0,
                                    "CGSTRate": 0,
                                    "CessAmount": 0,
                                    "CessRate": 0,
                                    "IGSTAmount": 0,
                                    "IGSTRate": 18,
                                    "SGSTAmount": 0,
                                    "SGSTRate": 0,
                                    "TaxableAmount": 0
                                }
                            }
                        },
                        "State": ""
                    }
                ],
                "RouteId": "2000005746360059855",
                "ServiceName": "Seat Seller",
                "SourceId": 9573,
                "Status": 2,
                "TravelName": "TESTING ACCOUNT",
                "TravelOperatorPNR": "A8VEMBZY",
                "BoardingPointdetails": {
                    "CityPointAddress": "Kukatpalli, testing",
                    "CityPointContactNumber": "99999999999999",
                    "CityPointLandmark": "kukatpalli,Testing",
                    "CityPointLocation": "Abids",
                    "CityPointName": "Abids",
                    "CityPointTime": "2023-09-11T20:00:00"
                },
                "CancelPolicy": [
                    {
                        "CancellationCharge": 10,
                        "CancellationChargeType": 2,
                        "PolicyString": "Till 15:00 on 10 Sep 2023",
                        "TimeBeforeDept": "29$-1",
                        "FromDate": "2023-09-09T15:25:36",
                        "ToDate": "2023-09-10T15:00:00"
                    },
                    {
                        "CancellationCharge": 50,
                        "CancellationChargeType": 2,
                        "PolicyString": "Between 15:00 on 10 Sep 2023 - 03:00 on 11 Sep 2023",
                        "TimeBeforeDept": "17$29",
                        "FromDate": "2023-09-10T15:00:00",
                        "ToDate": "2023-09-11T03:00:00"
                    },
                    {
                        "CancellationCharge": 100,
                        "CancellationChargeType": 2,
                        "PolicyString": "After 03:00 on 11 Sep 2023",
                        "TimeBeforeDept": "0$17",
                        "FromDate": "2023-09-11T03:00:00",
                        "ToDate": "2023-09-12T06:00:00"
                    }
                ],
                "Price": {
                    "CurrencyCode": "INR",
                    "BasePrice": 13.65,
                    "Tax": 0,
                    "OtherCharges": 0,
                    "Discount": 0,
                    "PublishedPrice": 13.65,
                    "PublishedPriceRoundedOff": 14,
                    "OfferedPrice": -16.35,
                    "OfferedPriceRoundedOff": -16,
                    "AgentCommission": 30,
                    "AgentMarkUp": 0,
                    "TDS": 12,
                    "GST": {
                        "CGSTAmount": 0,
                        "CGSTRate": 0,
                        "CessAmount": 0,
                        "CessRate": 0,
                        "IGSTAmount": 0,
                        "IGSTRate": 18,
                        "SGSTAmount": 0,
                        "SGSTRate": 0,
                        "TaxableAmount": 0
                    }
                },
                "InvoiceNumber": "MW/2324/2929",
                "InvoiceCreatedOn": "2023-09-09T10:07:20",
                "InvoiceCreatedBy": 51363,
                "InvoiceAmount": -4
            },
            "ResponseStatus": 1,
            "TraceId": "7A0CEC5D-ABA2-44BE-9921-23EE94A93BB7"
        }
    }
}