Developer
    Flight Booking API
    • Account
    • Verification API
    • Recharge API
    • PAYOUT API
    • Operator Lookup API
    • Mobile Tariff Plans
    • Utility Bill Pay API
    • Gift Card/ Brand Voucher API
    • webhook/callback
    • Recharge Validation API
    • Flight Booking API
    • Bus Booking API
    • Credit Card Bill API
    • CREDIT CARD TO BANK API
    • Virtual Account
    • UPI COLLECTION
    • UPI INTENT LINK
    • Traffic E-Challan
    • Digital Gold API
    • Credit Score | CIBIL Score API
    • cityList
      GET
    • flightList
      POST
    • flightRePrice
      POST
    • flightBook
      POST

      flightBook

      POST
      https://api.wepego.com/travel/flight/flightBook

      Request Body#

      ParametersParameter Description
      BookSegmentIt contains information about booking Segments
      EngineIDThis parameter has been defined as Enumeration type which has specified list of constant values. Each int value has been assigned to a different airline Indigo = 0, Spicjet = 1, GoAir = 5, TravelPort = 7, AirAsia=10, AirCosta = 6, Trujet=11.
      EngineIDListIt contains list of all airlines
      IsAndroidBookingIt contains boolean value(True/False)
      IsDomesticThis element represents whether flight is for domestic or international places and has bool type values(True/False)
      PaymentDetails
      SearchDetailThis parameter gets and sets the entire flight search – specified properties entered by user.These search parameters should be submiited as query string with URL.More
      VisaTypestring
      TraceIdRequired
      TransactionIdIt contains value of transaction id which is unique for every booking.
      TravellersThis property has been defined under class Traveller which sets all the properties of TravellerDetail class which in turn sets all properties related to passenger detail mentioned below.

      if adult=1,child=0 and infant=0 then "Travellers" : {{"AdultTraveller" : [{}],"ChildTraveller" : [],"InfantTraveller" : []} }

      if adult=1,child=1 and infant=1 then "Travellers" : {"AdultTraveller" : [{}],"ChildTraveller" : [{}],"InfantTraveller" : [{}]}

      if adult=2,child=2 and child=2 then "Travellers" : {"AdultTraveller" : [{}{}],"ChildTraveller" : [{}{}],"InfantTraveller" : [{}{}]}

      if adult=3,child=3 and child=3 then "Travellers" : {"AdultTraveller" : [{}{}{}],"ChildTraveller" : [{}{}{}],"InfantTraveller" : [{ }{}{}]}

      Request

      Header Params

      Body Params application/json

      Examples

      Responses

      ⚪0
      application/json
      Bodyapplication/json

      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://api.wepego.com/travel/flight/flightBook' \
      --header 'Token: ZKEYza2COHK0QVkcVkwUb6WeIgWiS' \
      --header 'checkSum: 739f448d1cc4f5bbbd048e68ba2b8885b0f8414ed4090ad967df7d15d7cdbbae' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "BookSegment": [
              {
                  "BondType": "OutBound",
                  "Bonds": [
                      {
                          "BoundType": "OutBound",
                          "IsBaggageFare": false,
                          "IsSSR": false,
                          "ItineraryKey": "IY8Y5uF2M9EKQh3DWSNY05f09dBTuoZuqpGfmxUKLEM=",
                          "JourneyTime": "01h 20m",
                          "Legs": [
                              {
                                  "AircraftCode": null,
                                  "AircraftType": "737",
                                  "AirlineName": "SG",
                                  "AirlinePnr": null,
                                  "ArrivalDate": "Thu-29Nov2018",
                                  "ArrivalTerminal": "1B",
                                  "ArrivalTime": "02:10",
                                  "AvailableSeat": null,
                                  "BaggageUnit": "KG",
                                  "BaggageWeight": "15",
                                  "BookSeat": null,
                                  "BoundType": "OutBound",
                                  "Cabin": "ECONOMY",
                                  "CabinClasses": null,
                                  "Capacity": 149,
                                  "CarrierCode": "SG",
                                  "CurrencyCode": "INR",
                                  "DepartureDate": "Thu-29Nov2018",
                                  "DepartureTerminal": "1",
                                  "DepartureTime": "00:50",
                                  "Destination": "GOI",
                                  "Duration": "01h 20m",
                                  "FareBasisCode": "ASAVER",
                                  "FareClassOfService": "A",
                                  "FareRulesKey": null,
                                  "FlightDesignator": null,
                                  "FlightDetailRefKey": null,
                                  "FlightName": "Spicejet",
                                  "FlightNumber": "612",
                                  "GDSPnr": null,
                                  "Group": null,
                                  "IsConnecting": false,
                                  "IsSeatOpen": false,
                                  "LayoverAt": null,
                                  "LayoverDuration": null,
                                  "NumberOfStops": "0",
                                  "OperatedBy": null,
                                  "Origin": "BOM",
                                  "ProviderCode": "SG` 612` ``BOM`11/29/2018 00:50`GOI`11/29/2018 02:10`!0`A``ASAVER`2025``4`X!!`737`1B``KG`15`ECONOMY``SG`1``False`0``````01h 20m`ASAVER`A",
                                  "Remarks": null,
                                  "SSRDetails": null,
                                  "Sold": 0,
                                  "Status": "Normal"
                              }
                          ],
                          "addOnDetail": null
                      }
                  ],
                  "CurrencyCode": null,
                  "Deeplink": "",
                  "EngineID": 1,
                  "Fare": {
                      "BasicFare": 2537,
                      "BrandKeys": null,
                      "ExchangeRate": 0,
                      "PaxFares": [
                          {
                              "AirlinePnr": null,
                              "BaggageUnit": "KG",
                              "BaggageWeight": "15",
                              "BaseTransactionAmount": 0,
                              "BasicFare": 2537,
                              "Branded": null,
                              "CancelPenalty": 3000,
                              "Cashback": 0,
                              "ChangePenalty": 2500,
                              "Commission": 0,
                              "DFValue": "0",
                              "EquivCurrencyCode": null,
                              "Fare": [
                                  {
                                      "Amount": 2537,
                                      "ChargeCode": "",
                                      "ChargeType": "FarePrice"
                                  },
                                  {
                                      "Amount": 100,
                                      "ChargeCode": "RCS",
                                      "ChargeType": "TravelFee"
                                  },
                                  {
                                      "Amount": 50,
                                      "ChargeCode": "TRF",
                                      "ChargeType": "TravelFee"
                                  },
                                  {
                                      "Amount": 142,
                                      "ChargeCode": "ADF",
                                      "ChargeType": "TravelFee"
                                  },
                                  {
                                      "Amount": 153,
                                      "ChargeCode": "PSF",
                                      "ChargeType": "TravelFee"
                                  },
                                  {
                                      "Amount": 4,
                                      "ChargeCode": "CGST27",
                                      "ChargeType": "Tax"
                                  },
                                  {
                                      "Amount": 64,
                                      "ChargeCode": "CGST27",
                                      "ChargeType": "Tax"
                                  },
                                  {
                                      "Amount": 4,
                                      "ChargeCode": "SGST27",
                                      "ChargeType": "Tax"
                                  },
                                  {
                                      "Amount": 64,
                                      "ChargeCode": "SGST27",
                                      "ChargeType": "Tax"
                                  },
                                  {
                                      "Amount": 0,
                                      "ChargeCode": "OC",
                                      "ChargeType": "OtherCharge"
                                  }
                              ],
                              "FareBasisCode": null,
                              "FareInfoKey": null,
                              "FareInfoValue": null,
                              "GDSPnr": null,
                              "IsZeroCancellation": false,
                              "MarkUP": 0,
                              "PaxType": 0,
                              "Refundable": true,
                              "STF": 0,
                              "ServiceFee": 0,
                              "TDS": 0,
                              "TotalFare": 3118,
                              "TotalTax": 581,
                              "TransactionAmount": 0,
                              "TransactionFee": 0,
                              "ZeroCancellationCharge": 100,
                              "ZeroCancellationValidity": "28"
                          }
                      ],
                      "TotalFareWithOutMarkUp": 3118,
                      "TotalTaxWithOutMarkUp": 581
                  },
                  "FareIndicator": 0,
                  "FareRule": "CAN-BEF 4_0:3000|CHG-BEF 4_0:2500|EMTFee-250|CANCEL-BEF 4_0:3000|CHANGE-BEF 4_0:2500",
                  "Fares": null,
                  "IsBaggageFare": false,
                  "IsBranded": false,
                  "IsCache": true,
                  "IsHoldBooking": false,
                  "IsInternational": false,
                  "IsRoundTrip": false,
                  "IsSpecial": false,
                  "IsSpecialId": false,
                  "ItineraryKey": "IY8Y5uF2M9EKQh3DWSNY05f09dBTuoZuqpGfmxUKLEM=",
                  "JourneyIndex": 0,
                  "MemoryCreationTime": "/Date(1542913325687+0530)/",
                  "NearByAirport": false,
                  "PaxSSRs": null,
                  "PromoCode": null,
                  "Remark": "",
                  "SSDetails": null,
                  "SearchId": "107,ADT:BF=2537.0000 Tax=581,CHD:BF=0 Tax=0,INF:BF=0 Tax=0,DFValue=0,APFV=3118`581`2537.0000`3000`2500`0`0```KG`15`True`0`0`0`0`,CPFV=,IPFV=,ATB=`:2537.0000`RCS:100.000`TRF:50.0000`ADF:142.00000`PSF:153.00000`CGST27:4.00000`CGST27:64.00000`SGST27:4.00000`SGST27:64.00000`OC:0,CTB=,ITB=,TBA=2537.0000,TTA=581,TFA=3118.0000",
                  "Sessionfilepath": "",
                  "description": null
              }
          ],
          "EngineID": 7,
          "EngineIDList": [
              7,
              0,
              1,
              5,
              10,
              6,
              11
          ],
          "IsAndroidBooking": false,
          "IsDomestic": false,
          "IPAddress": "203.171.247.16",
          "InsuranceCharge": "0",
          "InsuranceStatus": true,
          "IsAppBooking": false,
          "PaymentDetails": {
              "BookingAmount": "3118",
              "BookingCurrencyCode": "INR"
          },
          "Browser": "Crome",
          "Cabin": 0,
          "ConvenienceFee": 0,
          "CouponAmt": 0,
          "CouponCode": "dgg",
          "CustomerId": "",
          "FlightSearchDetails": [
              {
                  "BeginDate": "2020-09-19",
                  "Cabin": "0",
                  "CurrencyCode": "INR",
                  "Origin": "BOM",
                  "Destination": "GOI"
              }
          ],
          "GSTDetail": {
              "Address": "Kolkata",
              "CompanyName": "ZuelPay Services Private Limited",
              "Email": "zuelpay@gmail.com",
              "GSTNumber": "16AAVCS6905NAB",
              "Phone": "9432839941"
          },
          "TraceId": "2018122358ed0cac70e145bd00c006cf6b4c28b6",
          "TransactionId": "TRVL262277227",
          "Traveller": {
              "AdultTraveller": [
                  {
                      "CountryCode": "IN",
                      "DOB": "08-03-1963",
                      "EmailAddress": "zuelpay@gmail.com",
                      "FirstName": "Dipak",
                      "FrequentFlierNumber": "",
                      "Gender": 0,
                      "LastName": "Sarkar",
                      "MiddleName": "",
                      "MobileNumber": "9432839941",
                      "Nationality": "Indian",
                      "PassportExpiryDate": "",
                      "PassportNo": "",
                      "ResidentCountry": "IN",
                      "Title": "Mr"
                  }
              ],
              "ChildTraveller": [],
              "InfantTraveller": []
          },
          "TripType": 0
      }'
      Response Response Example
      {
          "status": "success",
          "callback_status": "Success",
          "tlid": "TF2020090715994850720F73",
          "error": "",
          "message": "booking successful",
          "onewayPNR": "EMTF00",
          "BookingDetail": {
              "CurrencyCode": "INR",
              "PaymentAmount": 2802,
              "PnrDetail": {
                  "Pnr": [
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "EMTF00",
                          "TYPE": 1
                      },
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "EMTF00",
                          "TYPE": 0
                      },
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "",
                          "TYPE": 5
                      },
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "2802",
                          "TYPE": 6
                      },
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "",
                          "TYPE": 9
                      },
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "Origin": "HYD",
                          "PNR": "IN",
                          "TYPE": 10
                      }
                  ],
                  "Tickets": [
                      {
                          "Destination": "GOI",
                          "EngineID": 1,
                          "FirstName": "Mouni",
                          "IsBaggBooked": false,
                          "IsMealBooked": false,
                          "IsSeatBooked": false,
                          "LastName": "Sarkar",
                          "Origin": "HYD",
                          "PassengerNumber": 1,
                          "PaxType": 0,
                          "Prefix": "",
                          "TicketNumber": "EMTF00-1",
                          "TicketNumberCopy": ""
                      }
                  ]
              },
              "TravelInsurance": null
          },
          "api_mode": "TEST",
          "order_id": "TRL262277227002"
      }
      Modified at 2026-08-29 13:16:25
      Previous
      flightRePrice
      Built with