Confirm Ticket Price - International (Round Trip)

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

Price Confirmation API: http://bsptrips.staging.vggdev.com/api/Flight/ConfirmTicketPrice

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 NameData TypeRequired

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)

{
    "CombinationID": 0,
    "RecommendationID": 0,
    "AgentID": 5,
    "GdsID": 2,
    "SessionID": "8af93880234f44b98358fab3a13cd7e3",
    "BillingAddress": {
        "ContactName": "Azee AsimI",
        "ContactEmail": "amakao@qa.team",
        "ContactMobileNo": "08034030758",
        "AddressLine1": "Airport",
        "AddressLine2": "",
        "City": "Lagos",
        "CountryCode": "NG"
    },
    "AirTravellers": [
        {
            "Gender": "Male",
            "PassengerTypeCode": "ADT",
            "LastName": "Obichurch",
            "FirstName": "Emmanuel",
            "BirthDate": "1990-01-01",
            "NamePrefix": "MR",
            "Email": "mail@mymail.com",
            "Address": {
                "ContactName": "sssss",
                "AddressLine1": "30, Ishola Daniel Street",
                "AddressLine2": "",
                "City": "Oshodi",
                "CountryCode": "NG"
            },
            "Documents": [
                {
                    "DocType": "DOCS",
                    "DocID": "1111111111",
                    "EffectiveDate": "2010-02-02",
                    "ExpiryDate": "2030-02-02",
                    "InnerDocType": "PASSPORT",
                    "IssueLocation": "NG",
                    "BirthCountryCode": "NG",
                    "IssueCountryCode": "NG"
                },
                {
                    "DocType": "DOCO",
                    "DocID": "2222222222",
                    "EffectiveDate": "2010-02-02",
                    "ExpiryDate": "2030-02-02",
                    "InnerDocType": "VISA",
                    "IssueLocation": "NG",
                    "BirthCountryCode": "NG",
                    "IssueCountryCode": "NG"
                }
            ]
        }
    ]
}

Sample Success Response

{
    "ConfirmationCode": "37804|6PCSPX",
    "TicketTimeLimit": "2024-01-16T14:48:03+01:00",
    "OldPrice": 1740373.0,
    "NewPrice": 1740373.0,
    "OldPriceWhole": 1740373,
    "NewPriceWhole": 1740373,
    "Errors": [],
    "Warnings": [],
    "PassengerDetails": {
        "ReferenceNumber": null,
        "RecommendationID": 0,
        "CombinationID": 0,
        "GdsId": 2,
        "AgentId": 5,
        "FlightRouteIndex": null,
        "TripsRecommendationID": null,
        "TripsCombinationID": null,
        "SessionId": "8af93880234f44b98358fab3a13cd7e3",
        "AmountPaid": null,
        "BillingAddress": {
            "ContactName": "Azee AsimI",
            "ContactEmail": "amakao@qa.team",
            "ContactMobileNo": "08034030758",
            "AddressLine1": "Airport",
            "AddressLine2": "",
            "City": "Lagos",
            "CountryCode": "NG"
        },
        "PaymentType": null,
        "TicketType": null,
        "AirTravellers": [
            {
                "PassengerTypeCode": "ADT",
                "NamePrefix": "MR",
                "FirstName": "Emmanuel",
                "MiddleName": null,
                "Gender": 0,
                "LastName": "Obichurch",
                "Email": "mail@mymail.com",
                "Telephone": null,
                "NumberOfBaggages": 0,
                "NumberOfBaggages1": 0,
                "HandLuggages": 0,
                "HandLuggages1": 0,
                "AmountPaid": null,
                "FrequentFlyerNumber": null,
                "FrequentFlyerAirline": null,
                "BirthDate": "1990-01-01T00:00:00+00:00",
                "Address": {
                    "ContactName": "sssss",
                    "ContactEmail": null,
                    "ContactMobileNo": null,
                    "AddressLine1": "30, Ishola Daniel Street",
                    "AddressLine2": "",
                    "City": "Oshodi",
                    "CountryCode": "NG"
                },
                "Documents": [
                    {
                        "DocType": "DOCS",
                        "InnerDocType": "PASSPORT",
                        "DocID": "1111111111",
                        "IssueCountryCode": "NG",
                        "IssueLocation": "NG",
                        "BirthCountryCode": "NG",
                        "EffectiveDate": "2010-02-02T00:00:00",
                        "ExpiryDate": "2030-02-02T00:00:00",
                        "BirthDate": null
                    },
                    {
                        "DocType": "DOCO",
                        "InnerDocType": "VISA",
                        "DocID": "2222222222",
                        "IssueCountryCode": "NG",
                        "IssueLocation": "NG",
                        "BirthCountryCode": "NG",
                        "EffectiveDate": "2010-02-02T00:00:00",
                        "ExpiryDate": "2030-02-02T00:00:00",
                        "BirthDate": null
                    }
                ],
                "BirthDateString": "01 Jan 1990",
                "GenderName": "Male"
            }
        ],
        "PaymentTexts": [],
        "PromoCode": null,
        "CloseSessionAfterBooking": false
    },
    "FlightRules": [],
    "FlightRulePenalties": [],
    "Hash": "0540956dcbfe73dc23118dc624794d909b2e58c72dd5a29a7e156709a3b9956e674f0c4037e19067a22dbb9453686b8eabb878c9a7ef904d281989482f8c6517"
}

Sample failed Response

{
    "ConfirmationCode": null,
    "TicketTimeLimit": null,
    "OldPrice": null,
    "NewPrice": null,
    "Errors": [
        "Invalid Agent"
    ],
    "Warnings": [],
    "PassengerDetails": null,
    "FlightRules": [],
    "FlightRulePenalties": []
}

Last updated