- 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
Upcoming Travels
Developing
GET
https://test-api.ucuzyolu.com/orders/upcomings
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
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 GET 'https://test-api.ucuzyolu.com/orders/upcomings' \
--header 'client-id: 302382-1928283273-237723829-292999'
Responses
🟢200OK
application/json
Body
data
array [object {14}]
required
id
integer
required
token
string
required
summary
number
required
discount
number
required
total
number
required
status
string
required
payment
object | null
required
items
object | null
required
currencyCode
string
required
statusName
string
required
invoice
object | null
optional
coupons
array[object (Cart Coupon) {3}]
required
daysLeft
integer
optional
daysName
string
optional
Examples:
BugünYarın2 gün sonra
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": [
{
"id": 0,
"token": "string",
"summary": 0,
"discount": 0,
"total": 0,
"status": "string",
"payment": {
"token": "string",
"amount": 0,
"state": "string",
"comission": 0,
"total": 0,
"details": [
"string"
],
"paymentType": "string",
"is3d": true,
"authMode": "string"
},
"items": {
"flights": [
{
"id": 0,
"pnr": "string",
"refundable": true,
"domestic": true,
"duration": "string",
"yr": 0,
"vq": 0,
"date": "string",
"origin": "string",
"destination": "string",
"segments": [
{
"origin": "string",
"destination": "string",
"date": "string",
"airline": "string",
"cabin": "string",
"price": 0,
"tax": 0,
"total": 0,
"margin": 0,
"returnDate": null,
"flightNumber": "string",
"cabinClass": "string",
"currencyCode": "string",
"grandTotal": 0,
"originName": "string",
"destinationName": "string",
"airlineName": "string",
"arrivalTime": "string",
"departureTime": "string"
}
],
"passengers": [
{
"id": 0,
"status": 0,
"pnr": "string",
"gender": "string",
"birthdate": "string",
"email": "string",
"identity": "string",
"nationality": "string",
"phone": "string",
"total": 0,
"sequenceNo": 0,
"ticketNumber": null,
"firstName": "string",
"lastName": "string",
"isLocalCitizen": true,
"passportCountry": null,
"passportNo": null,
"passportValidDate": null,
"paxCode": "string",
"priceHandLuggage": 0,
"priceBaggage": 0
}
],
"sequenceNo": 0,
"flightId": "string",
"passengerCount": 0,
"flightType": "string",
"grandTotal": 0,
"airDuration": "string",
"originCity": "string",
"originName": "string",
"returnDate": "string",
"arrivalTime": "string",
"departureTime": "string",
"destinationCity": "string",
"destinationName": "string"
}
],
"bus": [
{
"id": 0,
"origin": "string",
"destination": "string",
"price": 0,
"markup": 0,
"pnr": "string",
"passengers": [
{
"id": 0,
"firstName": "string",
"lastName": "string",
"seatNo": "string",
"status": true,
"price": 0,
"gender": "M",
"email": "user@example.com",
"phone": "string",
"identity": "string",
"nationality": "st",
"ticketNumber": "string",
"isSingle": true,
"isLocalCitizen": true
}
],
"originId": 0,
"destinationId": 0,
"companyLogo": "string",
"companyName": "string",
"passengerCount": 0,
"tripTrackingNumber": "string",
"seatType": "1+1",
"departureDate": "2019-08-24",
"departureTime": "14:15:22Z",
"grandTotal": 0,
"busClass": 0,
"busPlate": "string",
"hasBreak": true,
"arrivalDate": "2019-08-24",
"arrivalTime": "14:15:22Z",
"totalDuration": "14:15:22Z"
}
]
},
"currencyCode": "string",
"statusName": "string",
"invoice": {
"address": "string",
"district": "string",
"zipcode": "string",
"city": "string",
"country": "string",
"isCorporate": true,
"invoiceName": "string",
"taxOffice": "string",
"taxNumber": "string",
"invoiceNumber": "string"
},
"coupons": [
{
"discount": 0,
"couponName": "string",
"couponCode": "string"
}
],
"daysLeft": 0,
"daysName": "Bugün"
}
],
"success": true,
"code": 0,
"message": "string"
}
Modified at 2024-11-19 20:09:00