post
https://uatapis.paynearby.in/flight-search
Get the list of flights and segment details alongwith price
Parameter Description
Request Parameters
| Parameter Name | Mandatory/Optional | Description |
|---|---|---|
| user_id | Mandatory | Id of the partner; will be shared during onboarding |
| user_type | Mandatory | Default value = 3 |
| trip_type | Mandatory | One Way - "O" Return - "R" Special/Multi-city - "S" |
| adult_count | Mandatory | Count of adults travelling |
| child_count | Optional | |
| infant_count | Optional | |
| class_type | Mandatory | Type of travel in flight: 1. "Economy" 2. "Premium Economy" 3. "Business" |
| departure_date | Mandatory | Date of travel Format is as follows: "DD/MM/YYYY" For example: "20/02/2020" |
| origin | Mandatory | Origin Airport Code For example: 1. Mumbai - "BOM" 2. Delhi - "DEL" |
| origin_country | Mandatory | Origin Country Code |
| destination | Mandatory | Destination Airport Code |
| destination_country | Mandatory | Destination Country Code |
| domestic_or_international | Mandatory | 1. Domestic Travel - "D" 2. International Travel - "I" |
| channel_type | Mandatory | Default value is 8 |
Please Note
- Origin/Destination Value- You can retrieve these values from Airports API
- Adult Count + Child Count cannot exceed 9. And there must be one adult for each infant.
Response Parameters
| Parameter Name | Description |
|---|---|
| pnb_search_ref_id | Unique Search Ref Id for tracking a booking |
| flight_fare_data | contains all details related to each flight |
| tf | Total Fare |
| tf_with_markup | Total Fare With Markup Amount |
| total_markup | Total Markup Amount |
| qt | Quantity - ADT|CHD|INF Count given in search request |
| bga | Baggage |
| aac | Arrival Airport Code |
| ac | Airline code |
| ad | Arrival Time |
| adt | Arrival Date |
| at | Arrival Terminal |
| dac | Departure Airport Code |
| ddt | Departure Time |
| dt | Departure Date |
| du | Departure Terminal |
| fl | Flight Number |
| ft | Fare Type - Refundable or Non Refundable |
| ml | Meal |
| sl | Seats Left |
| vc | Validating carrier |
Error Codes
| Error Code | Description |
|---|---|
| 101 | Adult count cannot be 0 |
| 102 | Infant count cannot be greater than adult count |
| 103 | Adult count + child count must be less than 9 |
| 104 | Agent Id cannot be empty |
| 105 | From date cannot be empty |
| 106 | To date cannot be empty for a round trip |
| 107 | Origin cannot be empty |
| 108 | Destination cannot be empty |
| 109 | Flying class cannot be empty |
| 110 | From date must be greater than or equal to current date |
| 111 | To date must be greater than or equal to from date |
| 112 | Origin country cannot be empty |
| 113 | Destination country cannot be empty |
| 114 | Trip type cannot be empty. Send either O for one way or R for round. Invalid Trip Type - Send either O for one way or R for round. |
| 115 | Invalid Trip Type - Send either O for one way or R for round. |
| 116 | Request type cannot be empty. Send either D for Domestic or I for International |
| 117 | Invalid Request Type. Send either D for Domestic or I for International |
| 118 | Channel Type Cannot Be Empty |
