- 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
- Otp VerifyPOST
Favorites - Add Flight
Testing Env
Testing Env
POST
https://test-api.ucuzyolu.com/customer/favorites/flight
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
object {0}
Example
{
"origin": "VAS",
"destination": "ESB"
}
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/customer/favorites/flight' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"origin":"VAS",
"destination":"ESB"
}'
Responses
🟢200OK
application/json
Body
data
object (Customer Flight Favorite)
required
id
integer
required
origin
string
required
destination
string
required
date
string
required
adt
integer
required
chd
integer
required
inf
integer
required
createdAt
string
required
returnDate
string | null
required
flightType
string
required
originAirport
object
required
destinationAirport
object
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 4,
"origin": "IST",
"destination": "ESB",
"date": "2024-10-30",
"adt": 1,
"chd": 0,
"inf": 0,
"createdAt": "2024-09-23T17:38:45.000000Z",
"returnDate": null,
"flightType": "roundtrip",
"originAirport": {
"name": "Atatürk Havalimanı",
"code": "IST",
"city": "Istanbul"
},
"destinationAirport": {
"name": "Esenboğa Havalimanı",
"code": "ESB",
"city": "Ankara"
}
},
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-11-28 01:29:13