- Auth
- Customer
- Passengers
- invoice Info
- Favorite Flights
- Notifications
- Fast Actions
- Customer - Get ProfileGET
- Customer - Update ProfilePOST
- Customer - Update PasswordPOST
- Search History - FlightGET
- Customer - Remove AccountDELETE
- Utils
- Flight
- Bus
- Hotel
- Socket
- Auto Completes
- Queue / Socket
- Misc
- Payment
- Orders
- Blog
- Contents
- Refund
- Notifications
- Checkout
- Otp VerifyPOST
- StatusGET
Passenger Update
PATCH
https://test-api.ucuzyolu.com/customer/passengers/{{passengerId}}
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
firstName
string
required
lastName
string
required
birthDate
string
required
identity
string
required
phone
string
required
gender
string
required
isLocalCitizen
boolean
required
milecardinfo
array [object {2}]
optional
milecardAirlineCode
string
required
milecardNo
string
required
passportinfo
array [object {3}]
optional
passportNationality
string
required
passportNumber
string
required
passportValidDate
string
required
Example
{
"firstName": "John",
"lastName": "Due",
"birthDate": "1990-01-31",
"identity": "12345678921",
"phone": "+90 533 000 00 00",
"gender": "M",
"isLocalCitizen": true,
"milecardinfo": [
{
"milecardAirlineCode": "TK",
"milecardNo": "228382"
}
],
"passportinfo": [
{
"passportNationality": "TR",
"passportNumber": "39238202-2020",
"passportValidDate": "2029-12-01"
}
]
}
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 -g --request PATCH 'https://test-api.ucuzyolu.com/customer/passengers/' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName": "John",
"lastName": "Due",
"birthDate": "1990-01-31",
"identity": "12345678921",
"phone": "+90 533 000 00 00",
"gender": "M",
"isLocalCitizen": true,
"milecardinfo": [
{
"milecardAirlineCode": "TK",
"milecardNo": "228382"
}
],
"passportinfo": [
{
"passportNationality": "TR",
"passportNumber": "39238202-2020",
"passportValidDate": "2029-12-01"
}
]
}'
Responses
🟢200OK
application/json
Body
data
array[object (CustomerPassenger Response) {10}]
required
id
integer
required
firstName
string
required
lastName
string
required
birthDate
string
required
identity
string
required
phone
string
required
gender
string
required
isLocalCitizen
boolean
required
milecardinfo
array [object {2}]
optional
passportinfo
array [object {3}]
optional
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": [
{
"id": 10,
"identity": "12345678921",
"phone": "+905330000000",
"gender": "M",
"age": 34,
"passportinfo": [
{
"passportNationality": "TR",
"passportNumber": "39238202-2020",
"passportValidDate": "2029-12-01"
}
],
"milecardinfo": [
{
"milecardAirlineCode": "TK",
"milecardNo": "228382"
}
],
"firstName": "John",
"lastName": "Due",
"isLocalCitizen": true,
"birthDate": "1990-01-31"
}
],
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-11-28 01:29:13