Official Api
latest
  • latest
  • 1.0.0
  1. One Way / 1 ADT
Official Api
latest
  • latest
  • 1.0.0
  • Auth
    • Login/Guest Login
      • Auth - Guest
      • Auth - Login
      • Auth - Login (With E-Mail)
    • Register
      • Auth - Register
      • Auth - Register Corporate
    • Remember
      • Auth - Remember Password
      • Auth - Remember Password For E-Mail
      • Auth - Remember Otp Verify
      • Auth - Set New Password
    • Auth Otp Verify
      POST
    • Auth - Logout
      DELETE
    • Auth - State
      GET
  • Customer
    • Passengers
      • Passenger List
      • Passenger Create
      • Passenger Delete
      • Passenger Update
    • invoice Info
      • Invoice Info - List
      • Invoice Info - Create
      • Invoice Info - Delete
      • Invoice Info - Update
    • Favorite Flights
      • Favorites - Flight
      • Favorites - Add Flight
      • Favorites - Delete Flight
      • Favorites - Check for Flight
    • Notifications
      • Notifications - Get
      • Notifications - Update
      • Notifications - Register Device
      • Notifications - Unregister Device
    • Fast Actions
      • Fast Actions - Get Flight Actions
      • Fast Actions - Update Flight Actions
      • Fast Actions - Get Bus Actions
      • Fast Actions - Update Bus Actions
      • Fast Actions - Clear Flight Actions
    • Customer - Get Profile
      GET
    • Customer - Update Profile
      POST
    • Customer - Update Password
      POST
    • Search History - Flight
      GET
    • Customer - Remove Account
      DELETE
  • Utils
    • Calendar - Month
    • Enums - FlightSearchFilters
  • Flight
    • Search
      • Domestic
        • One Way / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Package Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 2 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price
          • Allocate
          • Set Passengers
          • Prebooking
        • Round Trip / 1 ADT (Non package)
          • Search Flight
          • Get Job (Flight)
          • Allocate
          • Set Passengers
          • Prebooking
      • International
        • One Way / 1 ADT
          • Search Flight
            POST
          • Get Job (Flight)
            GET
          • Calculate Price Copy Copy
            POST
          • Allocate
            POST
          • Set Passengers
            POST
          • Prebooking
            POST
          • Payment Types
            GET
        • Round Trip / 1 ADT
          • Search Flight
          • Get Job (Flight)
          • Allocate
          • Calculate Price
          • Set Passengers
          • Prebooking
        • Round Trip / 2 ADT
          • Search Flight
          • Get Job (Flight)
          • Calculate Price Copy
          • Allocate
          • Set Passengers
          • Prebooking
      • Search Flight - Filter
        POST
    • Price Alerts
      • Flight Alerts - Create
      • Flight Alerts - List
      • Flight Alerts - Delete
      • Flight Alerts - Create/Delete
    • Load Journey (dev only)
      GET
  • Bus
    • Bus - Search with Slug
    • Bus - Search
    • Get Job (Bus)
    • Bus - Bus Details
    • Bus - Check Seat Status
    • Bus - Set Passengers
    • Bus - Finalize (Local Dev Only)
    • Bus - Search - Filter
  • Hotel
    • Hotel - Search by Destination
    • Hotel - Search by Hotel Code
    • Get Job (Hotel)
    • Hotel - Get Hotel Details
    • Hotel - Validate Rooms
    • Hotel - Set Paxes
    • Hotel - Complete (Dev Only)
  • Socket
    • Auth
    • Subscribe Channel/Module
    • Emit Message
    • Search Airports
    • Search Hotels
    • Emit Subscribe Job
  • Auto Completes
    • Airport Search
    • Bus Station Search
    • Hotel Search
  • Queue / Socket
    • Get Job
  • Misc
    • Airlines
    • Countries
    • Popular Cities
    • Currencies
    • Contact Form
    • Check Module Availability
    • Popular Flights
    • Newsletter Subscribe
  • Payment
    • Pay with Account Balance (For Corporate Customers)
      • Payment - Account - Check Availablity
      • Payment - Account - Make Payment
    • Credit Card Storage
      • Saved Cards - List
      • Saved Cards - Add
      • Saved Cards - Delete
    • Pay with Credit Card (New Card)
      • Payment Types - Get All
      • Card Payment - Bin Query
      • Card Payment - Prepare 3D Form (new card)
      • Card Payment - Check Status
    • Pay with Credit Card (Saved Card)
      • Payment Types - Get All
      • Saved Cards - List
      • Card Payment - Bin Query
      • Card Payment - Prepare 3D Form (new card)
      • Card Payment - Check Status
  • Orders
    • Get Orders
    • Get Order
    • Upcoming Travels
    • Check Pnr
    • Check Order Status
  • Blog
    • Blog - Custom Tags
    • Blog - Category
    • Blog - Newest
    • Blog - Categories
    • Blog - Post
  • Contents
    • Kampanyalar
    • Contact Information
    • Gizlilik Sözleşmesi
    • Sık Sorulan Sorular
    • Popular Flights
    • Popular Cities
    • Popular Bus Routes
    • Get Slug Service
    • City - Flight
    • Get Page
  • Refund
    • Flight Refund (Query)
    • Flight Refund (Complete)
  • Notifications
    • Notification List
    • Notification - Mark as Read
  • Checkout
    • Coupons
      • Apply Coupon
      • Remove Coupon
    • Cart
  • Otp Verify
    POST
  • Status
    GET
  1. One Way / 1 ADT

Set Passengers

POST
https://test-api.ucuzyolu.com/flight/passengers

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
client-id
string 
optional
Default:
302382-1928283273-237723829-292999
Body Params application/json
journeyId
string 
required
flights
array[object (Flight Passenger Update) {10}] 
required
paxId
string 
required
firstName
string 
required
lastName
string 
required
phone
string 
required
email
string <email>
required
gender
enum<string> 
required
Allowed values:
MF
birthDate
string <date>
required
citizenNo
string 
required
TC Vatandaşı olmayanlar için "11111111111"
>= 11 characters<= 11 characters
nationality
string 
required
>= 2 characters<= 2 characters
Examples:
TRUSUKFRRUAR
docs
object (Passenger Docs) 
required
Example
{
    "journeyId": "{{journeyId}}",
    "flights": [
        {
            "searchId": "{{searchId}}",
            "flightId": "{{flightId}}",
            "items": [
                {
                    "paxId": "{{paxId}}",
                    "firstName": "Mehmet",
                    "lastName": "Gülbilge",
                    "phone": "+905322808035",
                    "email": "johndue@example.com",
                    "gender": "M",
                    "birthDate": "1989-04-20",
                    "citizenNo": "49852133948",
                    "nationality": "TR",
                    "docs": {
                        "pvu": "TR",
                        "pn": "29328382382",
                        "mll": "TR",
                        "pgs": "2030-01-10"
                    }
                }
            ]
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api.ucuzyolu.com/flight/passengers' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
    "journeyId": "",
    "flights": [
        {
            "searchId": "",
            "flightId": "",
            "items": [
                {
                    "paxId": "",
                    "firstName": "Mehmet",
                    "lastName": "Gülbilge",
                    "phone": "+905322808035",
                    "email": "johndue@example.com",
                    "gender": "M",
                    "birthDate": "1989-04-20",
                    "citizenNo": "49852133948",
                    "nationality": "TR",
                    "docs": {
                        "pvu": "TR",
                        "pn": "29328382382",
                        "mll": "TR",
                        "pgs": "2030-01-10"
                    }
                }
            ]
        }
    ]
}'

Responses

🟢200OK
application/json
Body
data
object (FlightSearchResponse) 
required
isSuccess
boolean 
optional
isFavorited
boolean 
optional
errorMessage
string  | null 
optional
success
boolean 
optional
isDomestic
boolean 
required
currency
enum<string> 
required
Allowed values:
TRYUSDEUR
action
string 
optional
flightType
optional
status
string 
optional
status
bookingStatus
enum<string> 
required
Allowed values:
pendingallocatedpassenger_settledprebookedpayment_confirmedcompleted
searchStatus
string  | null 
optional
journeyId
string 
required
filters
array[object (FilterItem) {7}] 
optional
results
array[object (FlightItem) {44}] 
optional
bookingItems
array[object (FlightItem) {44}] 
required
relations
object 
optional
sortOptions
array [object {4}] 
required
success
boolean 
required
code
integer 
required
message
string 
required
Example
{
    "data": {
        "isSuccess": true,
        "isFavorited": true,
        "errorMessage": "string",
        "success": true,
        "isDomestic": true,
        "currency": "TRY",
        "action": "string",
        "flightType": "oneway",
        "status": "string",
        "bookingStatus": "pending",
        "searchStatus": "string",
        "journeyId": "string",
        "filters": [
            {
                "name": "string",
                "alias": "string",
                "type": "base",
                "attributes": [
                    {
                        "name": "string",
                        "alias": "string",
                        "value": "string",
                        "isSelected": true
                    }
                ],
                "filters": [
                    {}
                ],
                "min": 0,
                "max": 0
            }
        ],
        "results": [
            {
                "searchId": "string",
                "flightId": "string",
                "journeyId": "string",
                "flightNumber": "string",
                "isTransit": true,
                "isDomestic": true,
                "duration": "14:15:22Z",
                "airDuration": "14:15:22Z",
                "waitDuration": "14:15:22Z",
                "seatsAvailable": 0,
                "segments": [
                    {
                        "segmentId": "string",
                        "flightNumber": "string",
                        "type": "string",
                        "sequenceNo": 0,
                        "airplaneCode": "string",
                        "airplaneName": "string",
                        "duration": "14:15:22Z",
                        "cabinClass": "string",
                        "cabin": "s",
                        "seatsAvailable": 0,
                        "originAirport": "string",
                        "originAirportCode": "string",
                        "originCity": "string",
                        "originCityCode": "string",
                        "originCountry": "string",
                        "originCountryCode": "string",
                        "destinationAirport": "string",
                        "destinationAirportCode": "string",
                        "destinationCity": "string",
                        "destinationCityCode": "string",
                        "destinationCountry": "string",
                        "destinationCountryCode": "string",
                        "departureDate": "string",
                        "departureTime": "string",
                        "departureDateTime": "string",
                        "arrivalDate": "string",
                        "arrivalTime": "string",
                        "arrivalDateTime": "string",
                        "airlineLabel": "string",
                        "airlineMarketing": "string",
                        "airlineOperating": "string"
                    }
                ],
                "informationTexts": [
                    {
                        "code": "string",
                        "text": "string"
                    }
                ],
                "paxItems": [
                    {
                        "paxId": "string",
                        "serviceId": "string",
                        "paxCode": "ADT",
                        "sequence": 0,
                        "freeBaggage": [
                            {
                                "value": 0,
                                "paxCode": "string",
                                "unit": "string",
                                "unitType": "string"
                            }
                        ],
                        "serviceFee": 0,
                        "serviceFeeOriginal": 0,
                        "serviceFeeDiscount": 0,
                        "tax": 0,
                        "taxDiscount": 0,
                        "netFare": 0,
                        "totalFare": 0,
                        "currency": "string",
                        "priceIncludesRoundPrice": true,
                        "ourFare": 0,
                        "totalPrice": 0
                    }
                ],
                "alternativePrices": [
                    {
                        "serviceId": "string",
                        "paxId": "string",
                        "fareType": "string",
                        "fareBasisCode": "string",
                        "paxCode": "string",
                        "paxSequence": 0,
                        "isPromo": true,
                        "businessLounge": true,
                        "seatSelection": true,
                        "isSelected": true,
                        "brandCode": "string",
                        "brandKey": "string",
                        "brandName": "string",
                        "freeBaggage": [
                            {
                                "value": 0,
                                "paxCode": "string",
                                "unit": "string",
                                "unitType": "string"
                            }
                        ],
                        "bonus": {
                            "available": true,
                            "amount": 0,
                            "airlineIcon": null
                        },
                        "meal": {
                            "mealCode": "string",
                            "mealName": "string",
                            "mealSubCode": "string",
                            "mealDescription": "string"
                        },
                        "cancellationPolicies": [
                            {
                                "price": 0,
                                "currency": "string",
                                "dateFrom": "string",
                                "dateTo": "string",
                                "hoursBeforeFlight": 0,
                                "isRefundable": true,
                                "text": "string"
                            }
                        ],
                        "changePolicies": [
                            {
                                "price": 0,
                                "currency": "string",
                                "dateFrom": "string",
                                "dateTo": "string",
                                "hoursBeforeFlight": 0,
                                "isChangeable": true,
                                "text": "string"
                            }
                        ],
                        "informationTexts": [
                            {
                                "code": "string",
                                "text": "string"
                            }
                        ],
                        "serviceFee": 0,
                        "serviceFeeOriginal": 0,
                        "serviceFeeDiscount": 0,
                        "tax": 0,
                        "taxDiscount": 0,
                        "netFare": 0,
                        "totalFare": 0,
                        "currency": "string",
                        "priceIncludesRoundPrice": true,
                        "vqFare": 0,
                        "yrFare": 0,
                        "ourFare": 0,
                        "totalPrice": 0,
                        "baseFare": 0,
                        "needsRefresh": true,
                        "cabin": "string",
                        "cabinClass": "string"
                    }
                ],
                "stops": 0,
                "combinations": [
                    {}
                ],
                "serviceFee": 0,
                "serviceFeeOriginal": 0,
                "serviceFeeDiscount": 0,
                "tax": 0,
                "taxDiscount": 0,
                "netFare": 0,
                "totalFare": 0,
                "currency": "string",
                "priceIncludesRoundPrice": true,
                "ourFare": 0,
                "totalPrice": 0,
                "departureDate": "string",
                "departureTime": "string",
                "departureDateTime": "string",
                "arrivalDate": "string",
                "arrivalTime": "string",
                "arrivalDateTime": "string",
                "airlineLabel": "string",
                "airlineMarketing": "string",
                "airlineOperating": "string",
                "providerSearchId": "string",
                "providerId": "string",
                "providerName": "string",
                "bookingProviderId": null,
                "bookingProviderCode": null,
                "cabin": "string",
                "cabinClass": "string",
                "documentRequires": [
                    {
                        "name": "string",
                        "description": "string",
                        "code": "string",
                        "required": true
                    }
                ]
            }
        ],
        "bookingItems": [
            {
                "searchId": "string",
                "flightId": "string",
                "journeyId": "string",
                "flightNumber": "string",
                "isTransit": true,
                "isDomestic": true,
                "duration": "14:15:22Z",
                "airDuration": "14:15:22Z",
                "waitDuration": "14:15:22Z",
                "seatsAvailable": 0,
                "segments": [
                    {
                        "segmentId": "string",
                        "flightNumber": "string",
                        "type": "string",
                        "sequenceNo": 0,
                        "airplaneCode": "string",
                        "airplaneName": "string",
                        "duration": "14:15:22Z",
                        "cabinClass": "string",
                        "cabin": "s",
                        "seatsAvailable": 0,
                        "originAirport": "string",
                        "originAirportCode": "string",
                        "originCity": "string",
                        "originCityCode": "string",
                        "originCountry": "string",
                        "originCountryCode": "string",
                        "destinationAirport": "string",
                        "destinationAirportCode": "string",
                        "destinationCity": "string",
                        "destinationCityCode": "string",
                        "destinationCountry": "string",
                        "destinationCountryCode": "string",
                        "departureDate": "string",
                        "departureTime": "string",
                        "departureDateTime": "string",
                        "arrivalDate": "string",
                        "arrivalTime": "string",
                        "arrivalDateTime": "string",
                        "airlineLabel": "string",
                        "airlineMarketing": "string",
                        "airlineOperating": "string"
                    }
                ],
                "informationTexts": [
                    {
                        "code": "string",
                        "text": "string"
                    }
                ],
                "paxItems": [
                    {
                        "paxId": "string",
                        "serviceId": "string",
                        "paxCode": "ADT",
                        "sequence": 0,
                        "freeBaggage": [
                            {
                                "value": 0,
                                "paxCode": "string",
                                "unit": "string",
                                "unitType": "string"
                            }
                        ],
                        "serviceFee": 0,
                        "serviceFeeOriginal": 0,
                        "serviceFeeDiscount": 0,
                        "tax": 0,
                        "taxDiscount": 0,
                        "netFare": 0,
                        "totalFare": 0,
                        "currency": "string",
                        "priceIncludesRoundPrice": true,
                        "ourFare": 0,
                        "totalPrice": 0
                    }
                ],
                "alternativePrices": [
                    {
                        "serviceId": "string",
                        "paxId": "string",
                        "fareType": "string",
                        "fareBasisCode": "string",
                        "paxCode": "string",
                        "paxSequence": 0,
                        "isPromo": true,
                        "businessLounge": true,
                        "seatSelection": true,
                        "isSelected": true,
                        "brandCode": "string",
                        "brandKey": "string",
                        "brandName": "string",
                        "freeBaggage": [
                            {
                                "value": 0,
                                "paxCode": "string",
                                "unit": "string",
                                "unitType": "string"
                            }
                        ],
                        "bonus": {
                            "available": true,
                            "amount": 0,
                            "airlineIcon": null
                        },
                        "meal": {
                            "mealCode": "string",
                            "mealName": "string",
                            "mealSubCode": "string",
                            "mealDescription": "string"
                        },
                        "cancellationPolicies": [
                            {
                                "price": 0,
                                "currency": "string",
                                "dateFrom": "string",
                                "dateTo": "string",
                                "hoursBeforeFlight": 0,
                                "isRefundable": true,
                                "text": "string"
                            }
                        ],
                        "changePolicies": [
                            {
                                "price": 0,
                                "currency": "string",
                                "dateFrom": "string",
                                "dateTo": "string",
                                "hoursBeforeFlight": 0,
                                "isChangeable": true,
                                "text": "string"
                            }
                        ],
                        "informationTexts": [
                            {
                                "code": "string",
                                "text": "string"
                            }
                        ],
                        "serviceFee": 0,
                        "serviceFeeOriginal": 0,
                        "serviceFeeDiscount": 0,
                        "tax": 0,
                        "taxDiscount": 0,
                        "netFare": 0,
                        "totalFare": 0,
                        "currency": "string",
                        "priceIncludesRoundPrice": true,
                        "vqFare": 0,
                        "yrFare": 0,
                        "ourFare": 0,
                        "totalPrice": 0,
                        "baseFare": 0,
                        "needsRefresh": true,
                        "cabin": "string",
                        "cabinClass": "string"
                    }
                ],
                "stops": 0,
                "combinations": [
                    {}
                ],
                "serviceFee": 0,
                "serviceFeeOriginal": 0,
                "serviceFeeDiscount": 0,
                "tax": 0,
                "taxDiscount": 0,
                "netFare": 0,
                "totalFare": 0,
                "currency": "string",
                "priceIncludesRoundPrice": true,
                "ourFare": 0,
                "totalPrice": 0,
                "departureDate": "string",
                "departureTime": "string",
                "departureDateTime": "string",
                "arrivalDate": "string",
                "arrivalTime": "string",
                "arrivalDateTime": "string",
                "airlineLabel": "string",
                "airlineMarketing": "string",
                "airlineOperating": "string",
                "providerSearchId": "string",
                "providerId": "string",
                "providerName": "string",
                "bookingProviderId": null,
                "bookingProviderCode": null,
                "cabin": "string",
                "cabinClass": "string",
                "documentRequires": [
                    {
                        "name": "string",
                        "description": "string",
                        "code": "string",
                        "required": true
                    }
                ]
            }
        ],
        "relations": {},
        "sortOptions": [
            {
                "name": "string",
                "description": "string",
                "field": "string",
                "type": "string"
            }
        ]
    },
    "success": true,
    "code": 0,
    "message": "string"
}
🟢200Success (Non-async)
Modified at 2024-11-28 01:29:13
Previous
Allocate
Next
Prebooking
Built with