Confirm Ticket Price - International (Single 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
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": 136,
"GdsID": 92,
"SessionID": "1170a650a8174ca6894077704ae8721d",
"BillingAddress": {
"ContactName": "Azee AsimI",
"ContactEmail": "[email protected]",
"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": "[email protected]",
"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": "37803|RMBPEK",
"TicketTimeLimit": "2024-01-16T13:40:59+01:00",
"OldPrice": 674.0,
"NewPrice": 674.0,
"OldPriceWhole": 674,
"NewPriceWhole": 674,
"Errors": [],
"Warnings": [],
"PassengerDetails": {
"ReferenceNumber": null,
"RecommendationID": 0,
"CombinationID": 0,
"GdsId": 92,
"AgentId": 136,
"FlightRouteIndex": null,
"TripsRecommendationID": null,
"TripsCombinationID": null,
"SessionId": "1170a650a8174ca6894077704ae8721d",
"AmountPaid": null,
"BillingAddress": {
"ContactName": "Azee AsimI",
"ContactEmail": "[email protected]",
"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": "[email protected]",
"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": "3d47b387a3919f289140e25c48020902c0475916572cc19fad64cd8c4d5bf531a54223a53944cfe3c37f7ec40671bb01c346fde4614ef1a5079f512737a16604"
}
Sample failed Response
{
"ConfirmationCode": null,
"TicketTimeLimit": null,
"OldPrice": null,
"NewPrice": null,
"Errors": [
"Invalid Agent"
],
"Warnings": [],
"PassengerDetails": null,
"FlightRules": [],
"FlightRulePenalties": []
}
Last updated