0% found this document useful (0 votes)
41 views19 pages

Yokoso Trips API Documentation-Flights Module

The document outlines the API endpoints for a flight booking system, including endpoints for flight search, fare rules, fare quotes, booking flights, generating tickets, and getting booking details. It provides details on the request and response formats for each endpoint.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views19 pages

Yokoso Trips API Documentation-Flights Module

The document outlines the API endpoints for a flight booking system, including endpoints for flight search, fare rules, fare quotes, booking flights, generating tickets, and getting booking details. It provides details on the request and response formats for each endpoint.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Yokoso Trips API Documentation - Flights Module

API URL {host} : https://k0pytbm5l2.execute-api.us-east-1.amazonaws.com/Prod/api


Tested : [TBO]

1) Flight Search Request


Method : Post
Url: {host}/Flight/SearchRequest

Request Payload:

{
"AdultCount": 1,
"ChildCount": 1,
"InfantCount": 0,
"DirectFlight": true,
"OneStopFlight": true,
"JourneyType": 1,
"flightinfo": [
{
"Origin": "HYD",
"Destination": "DEL",
"FlightCabinClass": 1,
"PreferredDepartureTime": "2023-03-23T00:00:00"
}
],
"PreferredAirlines": [
""
]
}
2) Flight Fare Rule
Method : Post
Url: {host}/Flight/FareRule

Request Payload:
{
"endUserIp": "106.217.217.169",
"TraceId": "5cbe29dd-a06c-435d-b5c2-586d0aada831",
"TokenId": "b897170c-729b-4dff-9aaa-2c1259257e5d",
"resultIndex": "OB12",
"id": "",
"flowType": "",
"serviceProvider": "TBO"
}

3) Flight Fare Quote


Method : Post
Url: {host}/Flight/FareQuote

Request Payload:
{
"endUserIp": "106.217.217.169",
"TraceId": "5cbe29dd-a06c-435d-b5c2-586d0aada831",
"TokenId": "b897170c-729b-4dff-9aaa-2c1259257e5d",
"serviceProvider": "TBO",
"ResultIndex": "OB12",
"priceIds": [
""
]
}
4) Flight Book Flight
Method : Post
Url: {host}/Flight/BookFlight

Request Payload:
{
"resultIndex": "OB12",
"passengers": [
{
"title": "Mr",
"firstName": "Sankeerth Reddy",
"lastName": "Atla",
"paxType": "1",
"dateOfBirth": "1981-02-22T16:50:13.977Z",
"gender": "Male",
"passportNo": "ASDFGHJKL",
"passportExpiry": "2033-02-22T16:50:13.977Z",
"passportIssueDate": "2013-02-22T17:07:52.891Z",
"addressLine1": "Test",
"addressLine2": "Test",
"fare": {
"currency": "INR",
"baseFare": 2567,
"tax": 825,
"yqTax": 0,
"additionalTxnFeePub": 0,
"additionalTxnFeeOfrd": 0,
"otherCharges": 0,
"discount": 0,
"publishedFare": 0,
"offeredFare": 0,
"tdsOnCommission": 0,
"tdsOnPLB": 0,
"tdsOnIncentive": 0,
"serviceFee": 0
},
"city": "Hyderabad",
"countryCode": "IN",
"cellCountryCode": "+91",
"contactNo": "9999999999",
"nationality": "IN",
"email": "admin@rudranitech.com",
"isLeadPax": true,
"ffAirlineCode": null,
"ffNumber": "160",
"gstCompanyAddress": "",
"gstCompanyContactNumber": "",
"gstCompanyName": "",
"gstNumber": "",
"gstCompanyEmail": "",
"ssrBaggageInfos": [
{
"key": "ssrBagInfo",
"value": "0"
}
],
"ssrMealInfos": {
"key": "mealInfo",
"value": "0"
},
"ssrSeatInfos": {
"key": "SeatInfo",
"value": "0"
},
"ssrExtraServiceInfos": {
"key": "serveInfo",
"value": "0"
},
"documentId": ""
},
{
"title": "Mr",
"firstName": "Rajesh",
"lastName": "Nimmala",
"paxType": "2",
"dateOfBirth": "2021-02-22T16:50:13.977Z",
"gender": "Male",
"passportNo": "ASDFGHJKLF",
"passportExpiry": "2033-02-22T16:50:13.977Z",
"passportIssueDate": "2013-02-22T17:07:52.891Z",
"addressLine1": "Test",
"addressLine2": "Test",
"fare": {
"currency": "string",
"baseFare": 2567,
"tax": 825,
"yqTax": 0,
"additionalTxnFeePub": 0,
"additionalTxnFeeOfrd": 0,
"otherCharges": 0,
"discount": 0,
"publishedFare": 0,
"offeredFare": 0,
"tdsOnCommission": 0,
"tdsOnPLB": 0,
"tdsOnIncentive": 0,
"serviceFee": 0
},
"city": "Hyderabad",
"countryCode": "IN",
"cellCountryCode": "+91",
"contactNo": "9999997779",
"nationality": "IN",
"email": "rajesh@rudranitech.com",
"isLeadPax": false,
"ffAirlineCode": null,
"ffNumber": "160",
"gstCompanyAddress": "",
"gstCompanyContactNumber": "",
"gstCompanyName": "",
"gstNumber": "",
"gstCompanyEmail": "",
"ssrBaggageInfos": [
{
"key": "",
"value": ""
}
],
"ssrMealInfos": {
"key": "",
"value": ""
},
"ssrSeatInfos": {
"key": "",
"value": ""
},
"ssrExtraServiceInfos": {
"key": "",
"value": ""
},
"documentId": ""
}
],
"endUserIp": "106.217.217.169",
"TraceId": "5cbe29dd-a06c-435d-b5c2-586d0aada831",
"TokenId": "b897170c-729b-4dff-9aaa-2c1259257e5d",
"serviceProvider": "TBO",
"gstInfo": {
"name": "",
"number": "",
"email": "",
"mobile": "",
"address": ""
}
}
5) Flight Generate Ticket
Method : Post
Url: {host}/Flight/Ticket

Request Payload:
{
"serviceProvider": "TBO",
"endUserIp": "106.217.217.169",
"TraceId": "5cbe29dd-a06c-435d-b5c2-586d0aada831",
"TokenId": "b897170c-729b-4dff-9aaa-2c1259257e5d",
"pnr": "",
"preferredCurrency": "INR",
"bookingId": 0,
"passport": [
{
"paxId": 1,
"passportNo": "ASDFGHJKL",
"passportExpiry": "2027-02-22T16:50:13.977Z",
"dateOfBirth": "1981-02-22T16:50:13.977Z"
}
],
"paymentInfos": [
{
"amount": 0
}
],
"isPriceChangeAccepted": true,
"resultIndex": "OB12",
"agentReferenceNo": "",
"passengers": [
{
"paxID": [
1
],
"title": "Mr",
"firstName": "Sankeerth Reddy",
"lastName": "Atla",
"paxType": 1,
"dateOfBirth": "1981-02-22T16:50:13.977Z",
"gender": 1,
"passportNo": "ASDFGHJKL",
"passportExpiry": "2033-02-22T16:50:13.977Z",
"addressLine1": "Test",
"addressLine2": "Hyderabad",
"fare": {
"baseFare": 2567,
"tax": 825,
"transactionFee": 0,
"yqTax": 0,
"additionalTxnFeeOfrd": 0,
"additionalTxnFeePub": 0,
"airTransFee": 0,
"currency": "INR",
"otherCharges": 0
},
"city": "Hyderabad",
"countryCode": "IN",
"countryName": "India",
"nationality": "IN",
"contactNo": "9999999999",
"email": "admin@rudranitech.com",
"isLeadPax": true,
"ffAirlineCode": "",
"ffNumber": "160",
"baggage": [
{
"airlineCode": "SG",
"flightNumber": "160",
"wayType": 0,
"code": "",
"description": 0,
"weight": 0,
"currency": "INR",
"price": 0,
"origin": "HYD",
"destination": "BLR"
}
],
"mealDynamic": [
{
"airlineCode": "SG",
"flightNumber": "160",
"wayType": 0,
"code": "",
"description": 0,
"airlineDescription": "",
"quantity": 0,
"currency": "INR",
"price": 0,
"origin": "HYD",
"destination": "BLR",
"nationality": "IN",
"isPriceChangeAccepted": true
}
],
"seatDynamic": [
{
"airlineCode": "SG",
"flightNumber": "160",
"craftType": "B-737-MAX (189)",
"origin": "HYD",
"destination": "BLR",
"availablityType": 0,
"description": 0,
"code": "",
"rowNo": "2",
"seatNo": "A",
"seatType": 0,
"seatWayType": 0,
"compartment": 0,
"deck": 0,
"currency": "INR",
"price": 0
}
],
"gstCompanyAddress": "",
"gstCompanyContactNumber": "",
"gstCompanyName": "",
"gstNumber": "",
"gstCompanyEmail": ""
},
{
"paxID": [
1
],
"title": "Mr",
"firstName": "Rajesh",
"lastName": "Nimmala",
"paxType": 2,
"dateOfBirth": "2021-02-22T16:50:13.977Z",
"gender": 1,
"passportNo": "ASDFGHJKA",
"passportExpiry": "2033-02-22T16:50:13.977Z",
"addressLine1": "Test",
"addressLine2": "Hyderabad",
"fare": {
"baseFare": 2567,
"tax": 825,
"transactionFee": 0,
"yqTax": 0,
"additionalTxnFeeOfrd": 0,
"additionalTxnFeePub": 0,
"airTransFee": 0,
"currency": "INR",
"otherCharges": 0
},
"city": "Hyderabad",
"countryCode": "IN",
"countryName": "India",
"nationality": "IN",
"contactNo": "9999998899",
"email": "rajesh@rudranitech.com",
"isLeadPax": false,
"ffAirlineCode": "",
"ffNumber": "160",
"baggage": [
{
"airlineCode": "SG",
"flightNumber": "160",
"wayType": 0,
"code": "",
"description": 0,
"weight": 0,
"currency": "INR",
"price": 0,
"origin": "HYD",
"destination": "BLR"
}
],
"mealDynamic": [
{
"airlineCode": "SG",
"flightNumber": "160",
"wayType": 0,
"code": "",
"description": 0,
"airlineDescription": "",
"quantity": 0,
"currency": "INR",
"price": 0,
"origin": "HYD",
"destination": "BLR",
"nationality": "IN",
"isPriceChangeAccepted": true
}
],
"seatDynamic": [
{
"airlineCode": "SG",
"flightNumber": "160",
"craftType": "B-737-MAX (189)",
"origin": "HYD",
"destination": "BLR",
"availablityType": 0,
"description": 0,
"code": "",
"rowNo": "2",
"seatNo": "B",
"seatType": 0,
"seatWayType": 0,
"compartment": 0,
"deck": 0,
"currency": "INR",
"price": 0
}
],
"gstCompanyAddress": "",
"gstCompanyContactNumber": "",
"gstCompanyName": "",
"gstNumber": "",
"gstCompanyEmail": ""
}
]
}

6) Flight Booking Details


Method : Post
Url: {host}/Flight/GetBookingDetails

Request Payload:
{
"EndUserIp": "106.217.217.169",
"TraceId": "5cbe29dd-a06c-435d-b5c2-586d0aada831",
"TokenId": "b897170c-729b-4dff-9aaa-2c1259257e5d",
"ServiceProvider": "TBO",
"BookingId": "1795998",
"PNR": ""
}

7) Flight Cancellation Charges


Method : Post
Url: {host}/Flight/CancellationCharges

Request Payload:
{
"serviceProvider": "TBO",
"endUserIp": "192.168.10.12",
"tokenId": "31848e3a-eb6f-4074-8dda-23b84e0a390a",
"requestType": "1",
"bookingId": "1795998",
"bookingMode": "5",
"type": "string",
"trips": [
{
"src": "string",
"dest": "string",
"departureDate": "2023-02-22T18:16:09.610Z",
"flightNumbers": [
"string"
],
"airlines": [
"string"
],
"amendmentInfo": {
"adult": {
"amendmentCharges": 0,
"refundAmount": 0,
"totalFare": 0
},
"child": {
"amendmentCharges": 0,
"refundAmount": 0,
"totalFare": 0
},
"infant": {
"amendmentCharges": 0,
"refundAmount": 0,
"totalFare": 0
}
}
}
]
}

8) Flight Release PNR


Method : Post
Url: {host}/Flight/ReleasePNR

Request Payload:
{
"serviceProvider": "TBO",
"endUserIp": "106.217.217.169",
"tokenId": "31848e3a-eb6f-4074-8dda-23b84e0a390a",
"source": 4,
"bookingId": 1795998,
"pnrs": [
"string"
]
}

9) Flight Cancel Request


Method : Post
Url: {host}/Flight/CancelRequest

Request Payload:- Partial Cancel Test


{
"serviceProvider": "TBO",
"endUserIp": "106.217.217.169",
"tokenId": "31848e3a-eb6f-4074-8dda-23b84e0a390a",
"bookingId": "1796000",
"requestType": "2",
"cancellationType": "0",
"ticketId": [
2086123
],
"sectors": [
{
"origin": "HYD",
"destination": "BLR"
},
{
"origin": "BLR",
"destination": "DEL"
}
],
"remarks": "Test",
"type": "",
"trips": [
{
"source": "",
"destination": "",
"departureDate": "2023-03-23T00:00:00.000Z",
"travellers": [
{
"firstNameOfTravellers": "",
"lastNameOfTravellers": ""
}
]
}
]
}
10) Flight Cancellation Status
Method : Post
Url: {host}/Flight/GetChangeReqStatus

Request Payload:
{
"serviceProvider": "TBO",
"endUserIp": "106.217.217.169",
"tokenId": "31848e3a-eb6f-4074-8dda-23b84e0a390a",
"changeRequestId": "1795998",
"amendmentId": "string"
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy