Travel Portal Development, Travel Portal Solution, Travel Whitelabel

LCC Flights Ticket

This method is to be called to generate ticket for LCCs flight (IsLCC=true in farequote response).

Check IsLCC=true/false from "FareQuote" response.

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 Flight Ticket Method

action

string

( query )

Must be "ticketForLcc" 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 )

ResultIndex ie. "OB1"

TraceId

string

( query )

Trace Id (Get Trace Id from search response)

IsLCC

string

( query )

IsLCC (IsLCC="1")

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

PassportExpiry

Date time

( query )

Passport expiry

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

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": "ticketForLcc",
  "IsLCC": "1",
  "isoneway": "Yes",
  "isDomestic": "Yes",
  "IsDomesticReturn": "No",
  "TraceId": "1a29b8a2-hhhh-5555-88b0-eebc6d5a2bbc",
  "ResultIndex": "OB2",
  "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": 3911,
        "Tax": 822,
        "YQTax": 0,
        "AdditionalTxnFeePub": 0,
        "AdditionalTxnFeeOfrd": 0,
        "OtherCharges": 59,
        "Discount": 0,
        "PublishedFare": 4792,
        "OfferedFare": 4617.22,
        "TdsOnCommission": 8.74,
        "TdsOnPLB": 0,
        "TdsOnIncentive": 0,
        "ServiceFee": 0
      },
      "GSTCompanyAddress": null,
      "GSTCompanyContactNumber": null,
      "GSTCompanyName": null,
      "GSTNumber": null,
      "GSTCompanyEmail": null,
      "Baggage": [
        {
          "AirlineCode": "IX",
          "FlightNumber": "6304",
          "WayType": 2,
          "Code": "NoBaggage",
          "Description": 2,
          "Weight": 0,
          "Currency": "INR",
          "Price": 0,
          "Origin": "DEL",
          "Destination": "BOM"
        }
      ],
      "MealDynamic": [
        {
          "AirlineCode": "IX",
          "FlightNumber": "6304",
          "WayType": 2,
          "Code": "NoMeal",
          "Description": 2,
          "AirlineDescription": null,
          "Quantity": 0,
          "Currency": "INR",
          "Price": 0,
          "Origin": "DEL",
          "Destination": "BOM"
        }
      ],
      "SeatDynamic": [
        {
          "AirlineCode": "IX",
          "FlightNumber": "6304",
          "CraftType": "738",
          "Origin": "DEL",
          "Destination": "BOM",
          "AvailablityType": 1,
          "Description": 2,
          "Code": "2B",
          "RowNo": "2",
          "SeatNo": "B",
          "SeatType": 3,
          "SeatWayType": 2,
          "Compartment": 1,
          "Deck": 1,
          "Currency": "INR",
          "Price": 700
        }
      ]
    }
  ]
}
					 

Response

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

{
  "status": "200",
  "status_message": "OK",
  "responseData": {
    "Response": {
      "B2B2BStatus": false,
      "Error": {
        "ErrorCode": 0,
        "ErrorMessage": ""
      },
      "ResponseStatus": 1,
      "TraceId": "1a29b8a2-hhhh-5555-88b0-eebc6d5a2bbc",
      "Response": {
        "PNR": "VIUEUG",
        "BookingId": 1489562,
        "SSRDenied": false,
        "SSRMessage": null,
        "Status": 1,
        "IsPriceChanged": false,
        "IsTimeChanged": false,
        "FlightItinerary": {
          "IssuancePcc": "OTI011",
          "TripIndicator": 1,
          "BookingAllowedForRoamer": true,
          "BookingId": 1489562,
          "IsCouponAppilcable": true,
          "IsManual": false,
          "PNR": "VIUEUG",
          "AgentReferenceNo": "2036462127",
          "IsDomestic": true,
          "Source": 6,
          "Origin": "DEL",
          "Destination": "GOI",
          "AirlineCode": "6E",
          "LastTicketDate": "2019-07-27T01:29:41",
          "ValidatingAirlineCode": "6E",
          "AirlineRemark": "",
          "AirlineTollFreeNo": "1800-0001-5456-51515",
          "IsLCC": true,
          "NonRefundable": false,
          "FareType": "PUB",
          "CreditNoteNo": null,
          "Fare": {
            "Currency": "INR",
            "BaseFare": 2649,
            "Tax": 926,
            "TaxBreakup": [
              {
                "key": "K3",
                "value": 158.00
              },
              {
                "key": "PSF",
                "value": 91.00
              },
              {
                "key": "YR",
                "value": 50.00
              },
              {
                "key": "YQTax",
                "value": 400.00
              },
              {
                "key": "OtherTaxes",
                "value": 177.00
              },
              {
                "key": "TotalTax",
                "value": 926.00
              }
            ],
            "YQTax": 400,
            "AdditionalTxnFeeOfrd": 0,
            "AdditionalTxnFeePub": 0,
            "PGCharge": 0,
            "OtherCharges": 236.00,
            "ChargeBU": [
              {
                "key": "TBOMARKUP",
                "value": 0
              },
              {
                "key": "OTHERCHARGE",
                "value": 236.00
              },
              {
                "key": "CONVENIENCECHARGE",
                "value": 0
              }
            ],
            "Discount": 0.00,
            "PublishedFare": 3811,
            "CommissionEarned": 61.99,
            "PLBEarned": 64.85,
            "IncentiveEarned": 43.98,
            "OfferedFare": 3640.18,
            "TdsOnCommission": 24.80,
            "TdsOnPLB": 25.94,
            "TdsOnIncentive": 17.59,
            "ServiceFee": 0,
            "TotalBaggageCharges": 0,
            "TotalMealCharges": 0,
            "TotalSeatCharges": 700,
            "TotalSpecialServiceCharges": 0
          },
          "CreditNoteCreatedOn": null,
          "Passenger": [
            {
              "PaxId": 2138382,
              "Title": "Mr",
              "FirstName": "krishna",
              "LastName": "singh",
              "PaxType": 1,
              "DateOfBirth": "1879-03-03T00:00:00",
              "Gender": 1,
              "PassportNo": "",
              "AddressLine1": "saket",
              "AddressLine2": "",
              "Fare": {
                "Currency": "INR",
                "BaseFare": 2649,
                "Tax": 926,
                "TaxBreakup": [
                  {
                    "key": "K3",
                    "value": 158.00
                  },
                  {
                    "key": "PSF",
                    "value": 91.00
                  },
                  {
                    "key": "YR",
                    "value": 50.00
                  },
                  {
                    "key": "YQTax",
                    "value": 400.00
                  },
                  {
                    "key": "OtherTaxes",
                    "value": 177.00
                  },
                  {
                    "key": "TotalTax",
                    "value": 926.00
                  }
                ],
                "YQTax": 400,
                "AdditionalTxnFeeOfrd": 0,
                "AdditionalTxnFeePub": 0,
                "PGCharge": 0,
                "OtherCharges": 236.00,
                "ChargeBU": [
                  {
                    "key": "TBOMARKUP",
                    "value": 0
                  },
                  {
                    "key": "OTHERCHARGE",
                    "value": 236.00
                  },
                  {
                    "key": "CONVENIENCECHARGE",
                    "value": 0
                  }
                ],
                "Discount": 0.00,
                "PublishedFare": 3811,
                "CommissionEarned": 61.99,
                "PLBEarned": 64.85,
                "IncentiveEarned": 43.98,
                "OfferedFare": 3640.18,
                "TdsOnCommission": 24.80,
                "TdsOnPLB": 25.94,
                "TdsOnIncentive": 17.59,
                "ServiceFee": 0,
                "TotalBaggageCharges": 0,
                "TotalMealCharges": 0,
                "TotalSeatCharges": 0,
                "TotalSpecialServiceCharges": 0
              },
              "City": "Seattle",
              "CountryCode": "IN",
              "CountryName": "India",
              "Nationality": "IN",
              "ContactNo": "09540121212",
              "Email": "krishna@thewebconz.com",
              "IsLeadPax": true,
              "FFAirlineCode": null,
              "FFNumber": null,
              "Baggage": [
                {
                  "AirlineCode": "IX",
                  "FlightNumber": "6304",
                  "WayType": 2,
                  "Code": "NoBaggage",
                  "Description": 2,
                  "Weight": 0,
                  "Currency": "INR",
                  "Price": 0,
                  "Origin": "DEL",
                  "Destination": "BOM"
                }
              ],
              "MealDynamic": [
                {
                  "AirlineCode": "IX",
                  "FlightNumber": "6304",
                  "WayType": 2,
                  "Code": "NoMeal",
                  "Description": 2,
                  "AirlineDescription": null,
                  "Quantity": 0,
                  "Currency": "INR",
                  "Price": 0,
                  "Origin": "DEL",
                  "Destination": "BOM"
                }
              ],
              "SeatDynamic": [
                {
                  "AirlineCode": "IX",
                  "FlightNumber": "6304",
                  "CraftType": "738",
                  "Origin": "DEL",
                  "Destination": "BOM",
                  "AvailablityType": 1,
                  "Description": 2,
                  "Code": "2B",
                  "RowNo": "2",
                  "SeatNo": "B",
                  "SeatType": 3,
                  "SeatWayType": 2,
                  "Compartment": 1,
                  "Deck": 1,
                  "Currency": "INR",
                  "Price": 700
                }
              ],
              "Ssr": [
                
              ],
              "Ticket": {
                "TicketId": 1755678,
                "TicketNumber": "VIUEUG",
                "IssueDate": "2019-07-27T00:59:43",
                "ValidatingAirline": "708",
                "Remarks": "",
                "ServiceFeeDisplayType": "ShowInTax",
                "Status": "OK",
                "ConjunctionNumber": "     ",
                "TicketType": "N"
              },
              "SegmentAdditionalInfo": [
                {
                  "FareBasis": "R0IP",
                  "NVA": "",
                  "NVB": "",
                  "Baggage": "15 KG",
                  "Meal": "0 Platter",
                  "Seat": "",
                  "SpecialService": ""
                }
              ]
            }
          ],
          "CancellationCharges": null,
          "Segments": [
            {
              "Baggage": null,
              "CabinBaggage": null,
              "TripIndicator": 1,
              "SegmentIndicator": 1,
              "Airline": {
                "AirlineCode": "6E",
                "AirlineName": "IndiGo",
                "FlightNumber": "399",
                "FareClass": "R",
                "OperatingCarrier": ""
              },
              "AirlinePNR": "",
              "Origin": {
                "Airport": {
                  "AirportCode": "DEL",
                  "AirportName": "Indira Gandhi Airport",
                  "Terminal": "1",
                  "CityCode": "DEL",
                  "CityName": "Delhi",
                  "CountryCode": "IN",
                  "CountryName": "India"
                },
                "DepTime": "2019-08-05T15:40:00"
              },
              "Destination": {
                "Airport": {
                  "AirportCode": "GOI",
                  "AirportName": "Dabolim",
                  "Terminal": "",
                  "CityCode": "GOI",
                  "CityName": "Goa",
                  "CountryCode": "IN",
                  "CountryName": "India"
                },
                "ArrTime": "2019-08-05T18:15:00"
              },
              "Duration": 155,
              "GroundTime": 0,
              "Mile": 0,
              "StopOver": false,
              "FlightInfoIndex": "",
              "StopPoint": "",
              "StopPointArrivalTime": "2019-08-05T18:15:00",
              "StopPointDepartureTime": "2019-08-05T15:40:00",
              "Craft": "320",
              "Remark": null,
              "IsETicketEligible": true,
              "FlightStatus": "Confirmed",
              "Status": "HK"
            }
          ],
          "FareRules": [
            {
              "Origin": "DEL",
              "Destination": "GOI",
              "Airline": "6E",
              "FareBasisCode": "R0IP",
              "FareRuleDetail": "",
              "FareRestriction": null
            }
          ],
          "Status": 5,
          "InvoiceAmount": 3709.00,
          "InvoiceNo": "DW\/1920\/21113",
          "InvoiceStatus": 3,
          "InvoiceCreatedOn": "2019-07-27T00:59:43",
          "Remarks": ""
        },
        "TicketStatus": 1
      },
      "order_id": "63d0cf917413a"
    }
  }
}