- 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
- Search
- Price Alerts
- Load Journey (dev only)GET
- Bus
- Hotel
- Socket
- Auto Completes
- Queue / Socket
- Misc
- Payment
- Orders
- Blog
- Contents
- Refund
- Notifications
- Otp VerifyPOST
Calculate Price Copy
Testing Env
Testing Env
POST
https://test-api.ucuzyolu.com/flight/calculate
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 {3}]
required
searchId
string
required
flightId
string
required
items
array [object {2}]
required
Example
{
"journeyId": "{{journeyId}}",
"flights": [
{
"searchId": "{{searchId}}",
"flightId": "{{flightId}}",
"items": [
{
"paxId": "{{paxId}}",
"serviceId": "{{serviceId}}"
}
]
},
{
"searchId": "{{searchId}}",
"flightId": "{{returnFlightId}}",
"items": [
{
"paxId": "{{returnPaxId}}",
"serviceId": "{{returnServiceId}}"
}
]
}
]
}
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/calculate' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"journeyId": "",
"flights": [
{
"searchId": "",
"flightId": "",
"items": [
{
"paxId": "",
"serviceId": ""
}
]
},
{
"searchId": "",
"flightId": "",
"items": [
{
"paxId": "",
"serviceId": ""
}
]
}
]
}'
Responses
🟢200OK
application/json
Body
data
object
required
flights
array [object {2}]
required
totalPrice
number
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"flights": [
{
"items": [
{
"paxId": "fc2fb887-aefa-412e-8cf4-9a4074512cac",
"serviceId": "E500331A-C6CB-4094-AF39-E06647E1FD34",
"totalPrice": 887.19
}
],
"flightId": "7ab400d7-db06-4604-b400-8718f3b372f2"
},
{
"items": [
{
"paxId": "f994ea73-1b78-4378-b402-7e5fe19386a8",
"serviceId": "4E046CCB-B855-43D6-A7B1-671981376F78",
"totalPrice": 1435.19
}
],
"flightId": "ab5b33a6-cc26-4f5d-a50c-498f0fbee461"
}
],
"totalPrice": 2322.38
},
"success": true,
"code": 0,
"message": ""
}
🟢200Success (Non-async)
Modified at 2024-11-28 01:29:13