Trips Documentation
Trips Documentation
Trips Documentation
  • API Documentation
    • Getting Started
    • Flight Search
      • International Single Trip Flight Search
      • International Round Trip Flight Search
      • Domestic Single Trip Flight Search
      • Domestic Round Trip Flight Search
    • Confirm Ticket Price
      • Confirm Ticket Price - International (Single Trip)
      • Confirm Ticket Price - International (Round Trip)
      • Confirm Ticket Price - Domestic (Single Trip)
      • Confirm Ticket Price - Domestic (Round Trip)
    • Flight Booking
      • International - Flight Booking (Single Trip)
      • International - Flight Booking (Round Trip)
      • Domestic - Flight Booking (Round Trip)
      • Domestic - Flight Booking (Single Trip)
    • My Booking
    • Cancel Flight
    • My Reservation
Powered by GitBook
On this page
  1. API Documentation
  2. Confirm Ticket Price

Confirm Ticket Price - Domestic (Round Trip)

PreviousConfirm Ticket Price - Domestic (Single Trip)NextFlight Booking

Last updated 1 year ago

Use SessionId, ''AgentId'', ''GdsId'', CombinationID and RecommendationID as returned in the search to book specific flight

Price Confirmation API:

SAMPLE REQUEST AND RESPONSE

The API is used to confirm flight price, see sample request model and response

Request Header:

Authorization: {Bearer Token}

Content-Type: application/json

MerchantCode: {MerchantCode}

Sample Request

Field Name
Data Type
Required

CombinationID

Integer

RecommendationID

Integer

FlightRouteIndex

Integer

AgentID

Integer

GdsID

Integer

SessionID

String

BillingAddress

Object

BillingAddress -> ContactName

String

BillingAddress -> ContactEmail

String

BillingAddress -> AddressLine1

String

BillingAddress -> AddressLine2

String

BillingAddress -> City

String

BillingAddress -> CountryCode

String

BillingAddress -> ContactMobileNo

String

AirTravellers

Array Object

AirTravellers -> Gender

String

AirTravellers -> PassengerTypeCode

AirTravellers -> LastName

AirTravellers -> FirstName

AirTravellers -> BirthDate

AirTravellers -> NamePrefix

AirTravellers -> Email

AirTravellers -> Address

Object

AirTravellers -> Address -> ContactName

String

AirTravellers -> Address -> AddressLine1

String

AirTravellers -> Address -> AddressLine2

String

AirTravellers -> Address -> City

String

AirTravellers -> Address -> CountryCode

String

AirTravellers -> Documents

Object Array

AirTravellers -> Documents -> DocType

String (can be either of DOCS,)

AirTravellers -> Documents -> DocID

String

AirTravellers -> Documents -> EffectiveDate

Date (2020-03-21)

AirTravellers -> Documents -> ExpiryDate

Date (2020-03-21)

AirTravellers -> Documents -> InnerDocType

String (can be either of PASSPORT, )

AirTravellers -> Documents -> IssueLocation

String

AirTravellers -> Documents -> BirthCountryCode

String ( country code)

AirTravellers -> Documents -> IssueCountryCode

String ( country code)

{
    "SelectedFlights": [
      
        {
            "RecommendationID": 6,
            "CombinationID": 1,
            "GDSId": 93,
            "AgentId": 138,
            "FlightRouteIndex": 0
        },
        {
            "RecommendationID": 0,
            "CombinationID": 0,
            "GDSId": 93,
            "AgentId": 138,
            "FlightRouteIndex": 1
        }
    ],
    "SessionId": "45e5e70cbc08449c91114a9c64a251f1",
    "BillingAddress": {
        "ContactName": "Jimoh Okoro",
        "ContactEmail": "jimoh@qa.team",
        "ContactMobileNo": "09063479270",
        "AddressLine1": "23, broad street",
        "City": "Lagos Island",
        "CountryCode": "NG"
    },
    "AirTravellers": [
        {
            "PassengerTypeCode": "ADT",
            "NamePrefix": "Mr",
            "FirstName": "Keneth",
            "MiddleName": "Uchenna",
            "Gender": "Male",
            "LastName": "Okonkwo",
            "Email": "peter.oladipo@avitechng.com",
            "Telephone": "09012345670",
            "BirthDate": "1990-05-02",
            "Address": {
                "ContactName": "Yart",
                "ContactEmail": "Yartmoi@qa.team",
                "ContactMobileNo": "09012345671",
                "AddressLine1": "123, Maine Street",
                "City": "Ikeja",
                "CountryCode": "NG"
            },
            "Documents": [
                
            ]
        }
    ]
}

Sample Success Response

[
    {
        "ConfirmationCode": "37797|WRTROL",
        "TicketTimeLimit": "2024-01-12T21:13:38+01:00",
        "OldPrice": 86000.0,
        "NewPrice": 86000.0,
        "OldPriceWhole": 86000,
        "NewPriceWhole": 86000,
        "Errors": [],
        "Warnings": [],
        "PassengerDetails": {
            "SelectedFlights": [
                {
                    "ReferenceNumber": null,
                    "RecommendationID": 6,
                    "CombinationID": 1,
                    "GdsId": 93,
                    "AgentId": 138,
                    "FlightRouteIndex": 0
                },
                {
                    "ReferenceNumber": null,
                    "RecommendationID": 0,
                    "CombinationID": 0,
                    "GdsId": 93,
                    "AgentId": 138,
                    "FlightRouteIndex": 1
                }
            ],
            "SessionId": "45e5e70cbc08449c91114a9c64a251f1",
            "AmountPaid": null,
            "BillingAddress": {
                "ContactName": "Jimoh Okoro",
                "ContactEmail": "jimoh@qa.team",
                "ContactMobileNo": "09063479270",
                "AddressLine1": "23, broad street",
                "AddressLine2": null,
                "City": "Lagos Island",
                "CountryCode": "NG"
            },
            "PaymentType": null,
            "TicketType": null,
            "AirTravellers": [
                {
                    "PassengerTypeCode": "ADT",
                    "NamePrefix": "Mr",
                    "FirstName": "Keneth",
                    "MiddleName": "Uchenna",
                    "Gender": 0,
                    "LastName": "Okonkwo",
                    "Email": "peter.oladipo@avitechng.com",
                    "Telephone": "09012345670",
                    "NumberOfBaggages": 0,
                    "NumberOfBaggages1": 0,
                    "HandLuggages": 0,
                    "HandLuggages1": 0,
                    "AmountPaid": null,
                    "FrequentFlyerNumber": null,
                    "FrequentFlyerAirline": null,
                    "BirthDate": "1990-05-02T00:00:00+00:00",
                    "Address": {
                        "ContactName": "Yart",
                        "ContactEmail": "Yartmoi@qa.team",
                        "ContactMobileNo": "09012345671",
                        "AddressLine1": "123, Maine Street",
                        "AddressLine2": null,
                        "City": "Ikeja",
                        "CountryCode": "NG"
                    },
                    "Documents": [],
                    "BirthDateString": "02 May 1990",
                    "GenderName": "Male"
                }
            ],
            "PaymentTexts": [],
            "PromoCode": null,
            "CloseSessionAfterBooking": false
        },
        "FlightRules": [],
        "FlightRulePenalties": [],
        "Hash": "fcb51d0fd2c5e8d8b320b1b02b2e7ba9c0a094de030f475b85b5f0763017c5f47357abf6a63099a818f1e93c636b03384126cf1fb72e2e38614a59220358d5bd"
    },
    {
        "ConfirmationCode": "37796|ITFIDQ",
        "TicketTimeLimit": "2024-01-12T21:13:38+01:00",
        "OldPrice": 86000.0,
        "NewPrice": 86000.0,
        "OldPriceWhole": 86000,
        "NewPriceWhole": 86000,
        "Errors": [],
        "Warnings": [],
        "PassengerDetails": {
            "SelectedFlights": [
                {
                    "ReferenceNumber": null,
                    "RecommendationID": 6,
                    "CombinationID": 1,
                    "GdsId": 93,
                    "AgentId": 138,
                    "FlightRouteIndex": 0
                },
                {
                    "ReferenceNumber": null,
                    "RecommendationID": 0,
                    "CombinationID": 0,
                    "GdsId": 93,
                    "AgentId": 138,
                    "FlightRouteIndex": 1
                }
            ],
            "SessionId": "45e5e70cbc08449c91114a9c64a251f1",
            "AmountPaid": null,
            "BillingAddress": {
                "ContactName": "Jimoh Okoro",
                "ContactEmail": "jimoh@qa.team",
                "ContactMobileNo": "09063479270",
                "AddressLine1": "23, broad street",
                "AddressLine2": null,
                "City": "Lagos Island",
                "CountryCode": "NG"
            },
            "PaymentType": null,
            "TicketType": null,
            "AirTravellers": [
                {
                    "PassengerTypeCode": "ADT",
                    "NamePrefix": "Mr",
                    "FirstName": "Keneth",
                    "MiddleName": "Uchenna",
                    "Gender": 0,
                    "LastName": "Okonkwo",
                    "Email": "peter.oladipo@avitechng.com",
                    "Telephone": "09012345670",
                    "NumberOfBaggages": 0,
                    "NumberOfBaggages1": 0,
                    "HandLuggages": 0,
                    "HandLuggages1": 0,
                    "AmountPaid": null,
                    "FrequentFlyerNumber": null,
                    "FrequentFlyerAirline": null,
                    "BirthDate": "1990-05-02T00:00:00+00:00",
                    "Address": {
                        "ContactName": "Yart",
                        "ContactEmail": "Yartmoi@qa.team",
                        "ContactMobileNo": "09012345671",
                        "AddressLine1": "123, Maine Street",
                        "AddressLine2": null,
                        "City": "Ikeja",
                        "CountryCode": "NG"
                    },
                    "Documents": [],
                    "BirthDateString": "02 May 1990",
                    "GenderName": "Male"
                }
            ],
            "PaymentTexts": [],
            "PromoCode": null,
            "CloseSessionAfterBooking": false
        },
        "FlightRules": [],
        "FlightRulePenalties": [],
        "Hash": "edcbe91f90b981e69320103617ef489e48114f207bf4306f1e32c7425f55de9779d72f35a4725a9edc158c69094d94e5aacb2cd9c16e30b88f1526357ac93971"
    }
]

http://bsptrips.staging.vggdev.com/api/Flight/ConfirmTicketPrice