Hold Your Booking for Non-LCC Flights Before Ticketing

Book method is to hold the Booking of NonLCC airline. Every NonLCC airline must be Hold first before ticketing. It will not work for LCC airline because LCC airline is ticketed directly.

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

Definition and request parameters for Flight Book Method

action

string

( query )

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

ResultIndex

string

( query )

Result Index ie. "OB1"

TraceId

string

( query )

Trace Id (Get Trace Id from search response)

IsLCC

string

( query )

IsLCC (IsLCC="0")

isoneway

string

( query )

oneway Or return trip (isoneway="Yes" or isoneway="No")

isDomestic

string

( query )

isDomestic (isDomestic="Yes" or isDomestic="No")

IsDomesticReturn

string

( query )

IsDomesticReturn (isDomestic="Yes" or isDomestic="No")

Passengers

Array

Passengers details for the ticket

Title

string

( query )

Title (Adult Mr/Mrs Child Miss/Mstr Infant Miss/Mstr)

FirstName

string

( query )

First name

LastName

string

( query )

Last Name

PaxType

String

( query )

Pax type (Adult = 1,Child = 2,Infant = 3)

DateOfBirth

Date Time

String

( query )

Gender

String

( query )

Gender (Male=1,Female=2)

PassportNo

String

( query )

Passport no [Mandatory in case of IsPassportRequiredAtBook / IsPassportRequiredAtTicket is TRUE in FareQuote response otherwise Optional]

PassportExpiry

Date time

( query )

Passport expiry [Mandatory in case of IsPassportRequiredAtBook / IsPassportRequiredAtTicket is TRUE in FareQuote response otherwise Optional]

PassportIssueDate

Date time

( query )

Passport Issue Date [Mandatory in case of IsPassportFullDetailRequiredAtBook is TRUE in FareQuote response otherwise Optional]

AddressLine1

String

( query )

Address

AddressLine2

String

( query )

Address

City

String

( query )

City

CountryCode

String

( query )

Country code

CountryName

String

( query )

Country Name

Nationality

String

( query )

Nationality

ContactNo

String

( query )

Contact no

CellCountryCode

String

( query )

Optional[This is an optional node and can be send in Book/Ticket request, it will return the contact number with the passed CellCountryCode]

This is mandatory if NDC fare is avaiable.

Ex: CellCountryCode:+91-

Email

String

( query )

Email

IsLeadPax

Boolean

( query )

Represent the lead guest of the booking (Value True/ False)

Fare

Array

Fare details for the ticket

Currency

String

( query )

Currency

BaseFare

decimal

( query )

Base fare

Tax

decimal

( query )

Tax

YQTax

decimal

( query )

Fuel Surcharge

AdditionalTxnFeePub

decimal

( query )

Additional Transaction Fee Published

AdditionalTxnFeeOfrd

decimal

( query )

Additional Transaction Fee Offered

OtherCharges

decimal

( query )

Other Charges

Discount

decimal

( query )

Discount

PublishedFare

decimal

( query )

Published Fare

OfferedFare

decimal

( query )

Offered Fare

TdsOnCommission

decimal

( query )

Tds On Commission

TdsOnPLB

decimal

( query )

Tds On PLB

TdsOnIncentive

decimal

( query )

Tds On Incentive

ServiceFee

decimal

( query )

Service Fee

GSTCompanyAddress

String

( query )

GSTCompanyAddress

GSTCompanyContactNumber

String

( query )

GSTCompanyContactNumber

GSTCompanyName

String

( query )

GSTCompanyName

GSTNumber

String

( query )

GSTNumber

GSTCompanyEmail

String

( query )

GSTCompanyEmail

REQUEST

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

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);

POST:
{
  "action": "flightBook",
  "IsLCC": "0",
  "isoneway": "Yes",
  "isDomestic": "Yes",
  "IsDomesticReturn": "No",
  "TraceId": "6fda2744-05e6-47fb-98b4-73e12c30ef73",
  "ResultIndex": "OB35",
  "Passengers": [
    {
      "Title": "Mr",
      "FirstName": "Test",
      "LastName": "Booking",
      "PaxType": "1",
      "DateOfBirth": "1995-07-17T00:00:00",
      "Gender": 1,
      "AddressLine1": "D-88 Ground Floor Sector 17 Vashi, Navi mumbai",
      "AddressLine2": "",
      "City": "Navi Mumbai",
      "CountryCode": "IN",
      "CountryName": "India",
      "Nationality": "IN",
      "ContactNo": "9988776655",
      "Email": "test@gmail.com",
      "IsLeadPax": true,
      "PassportNo": "",
      "PassportExpiry": "",
      "Fare": {
        "Currency": "INR",
        "BaseFare": 1000,
        "Tax": 518,
        "YQTax": 0,
        "AdditionalTxnFeePub": 0,
        "AdditionalTxnFeeOfrd": 0,
        "OtherCharges": 640,
        "Discount": 0,
        "PublishedFare": 2158,
        "OfferedFare": 2158,
        "TdsOnCommission": 0,
        "TdsOnPLB": 0,
        "TdsOnIncentive": 0,
        "ServiceFee": 0
      },
      "GSTCompanyAddress": null,
      "GSTCompanyContactNumber": null,
      "GSTCompanyName": null,
      "GSTNumber": null,
      "GSTCompanyEmail": null,
      "Meal": {
        "Code": "AVML",
        "Description": "VEGETARIAN HINDU MEAL"
      },
      "Seat": {
        "Code": "A",
        "Description": "Aisle"
      }
    }
  ]
}
					 

Response

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

{
  "status": "200",
  "status_message": "OK",
  "responseData": {
    "Error": {
      "ErrorCode": 0,
      "ErrorMessage": ""
    },
    "TraceId": "5cfdf80d-7b55-4e9d-a6c1-21f091dc6ee7",
    "ResponseStatus": 1,
    "Response": {
      "PNR": "WFWVIA",
      "BookingId": 1304924,
      "SSRDenied": false,
      "SSRMessage": null,
      "Status": 1,
      "IsPriceChanged": false,
      "IsTimeChanged": false,
      "FlightItinerary": {
        "BookingAllowedForRoamer": true,
        "BookingId": 1304924,
        "PNR": "WFWVIA",
        "IsManual": false,
        "Source": 4,
        "IsDomestic": true,
        "Origin": "DEL",
        "Destination": "BOM",
        "AirlineCode": "AI",
        "ValidatingAirlineCode": "AI",
        "LastTicketDate": "29JUN17",
        "AirlineTollFreeNo": "1800-1100-2200-100",
        "IsLCC": false,
        "NonRefundable": true,
        "AirlineRemark": "",
        "FareType": "RP",
        "CreditNoteNo": null,
        "BaseCurrencyFare": {
          "Currency": "INR",
          "BaseFare": 3171,
          "Tax": 1284,
          "TaxBreakup": [
            {
              "Key": "YQTax",
              "Value": 0
            },
            {
              "Key": "YR",
              "Value": 140
            },
            {
              "Key": "TotalTax",
              "Value": 1284
            }
          ],
          "YQTax": 0,
          "AdditionalTxnFeePub": 0,
          "PGCharge": 0,
          "AdditionalTxnFeeOfrd": 0,
          "OtherCharges": 116.96,
          "ChargeBU": [
            {
              "Key": "TBOMARKUP",
              "Value": 26.81
            },
            {
              "Key": "CONVENIENCECHARGE",
              "Value": 0
            },
            {
              "Key": "OTHERCHARGE",
              "Value": 90.15
            }
          ],
          "Discount": 0,
          "PublishedFare": 4581.96,
          "CommissionEarned": 63.42,
          "PLBEarned": 91.36,
          "IncentiveEarned": 62.15,
          "OfferedFare": 4355.03,
          "TdsOnCommission": 6.34,
          "TdsOnPLB": 9.14,
          "TdsOnIncentive": 6.22,
          "ServiceFee": 10,
          "TotalBaggageCharges": 0,
          "TotalMealCharges": 0,
          "TotalSeatCharges": 0,
          "TotalSpecialServiceCharges": 0
        },
        "Fare": {
          "Currency": "INR",
          "BaseFare": 3171,
          "Tax": 1284,
          "TaxBreakup": [
            {
              "Key": "YQTax",
              "Value": 0
            },
            {
              "Key": "YR",
              "Value": 140
            },
            {
              "Key": "TotalTax",
              "Value": 1284
            }
          ],
          "YQTax": 0,
          "AdditionalTxnFeePub": 0,
          "PGCharge": 0,
          "AdditionalTxnFeeOfrd": 0,
          "OtherCharges": 116.96,
          "ChargeBU": [
            {
              "Key": "TBOMARKUP",
              "Value": 26.81
            },
            {
              "Key": "CONVENIENCECHARGE",
              "Value": 0
            },
            {
              "Key": "OTHERCHARGE",
              "Value": 90.15
            }
          ],
          "Discount": 0,
          "PublishedFare": 4581.96,
          "CommissionEarned": 63.42,
          "PLBEarned": 91.36,
          "IncentiveEarned": 62.15,
          "OfferedFare": 4355.03,
          "TdsOnCommission": 6.34,
          "TdsOnPLB": 9.14,
          "TdsOnIncentive": 6.22,
          "ServiceFee": 10,
          "TotalBaggageCharges": 0,
          "TotalMealCharges": 0,
          "TotalSeatCharges": 0,
          "TotalSpecialServiceCharges": 0
        },
        "Passenger": [
          {
            "PaxId": 1785775,
            "Title": "Mr",
            "FirstName": "hgjsshsxsgjh",
            "LastName": "tbotest",
            "PaxType": 1,
            "DateOfBirth": "1987-12-06T00:00:00",
            "Gender": 1,
            "PassportNo": "KJHHJKHKJH",
            "PassportExpiry": "2020-12-06T00:00:00",
            "AddressLine1": "123, Test",
            "AddressLine2": "",
            "City": "Gurgaon",
            "CountryCode": "IN",
            "CountryName": "India",
            "Nationality": "IN",
            "ContactNo": "+92581-1234567890",
            "Email": "harsh@tbtq.in",
            "IsLeadPax": true,
            "FFAirlineCode": null,
            "FFNumber": "",
            "GSTCompanyAddress": "A-fhgjkhsjkfd",
            "GSTCompanyContactNumber": "98881063278748979",
            "GSTCompanyName": "nikhil",
            "GSTNumber": "700932234532413",
            "GSTCompanyEmail": "nikhil123@gmail.com"
          }
        ]
      }
    }
  }
}