Official Api
latest
  • latest
  • 1.0.0
  1. Orders
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
      GET
    • Enums - FlightSearchFilters
      GET
  • 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
          • Get Job (Flight)
          • Calculate Price Copy Copy
          • Allocate
          • Set Passengers
          • Prebooking
          • Payment Types
        • 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
    • 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
      POST
    • Get Order
      GET
    • Upcoming Travels
      GET
    • Check Pnr
      POST
    • Check Order Status
      GET
  • 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. Orders

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
Previous
Get Order
Next
Check Pnr
Built with