Official Api
latest
  • latest
  • 1.0.0
  1. Refund
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
      POST
    • Bus - Search
      POST
    • Get Job (Bus)
      GET
    • Bus - Bus Details
      POST
    • Bus - Check Seat Status
      POST
    • Bus - Set Passengers
      POST
    • Bus - Finalize (Local Dev Only)
      POST
    • Bus - Search - Filter
      POST
  • 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
    • Get Order
    • Upcoming Travels
    • Check Pnr
    • Check Order Status
  • 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)
      POST
    • Flight Refund (Complete)
      POST
  • Notifications
    • Notification List
    • Notification - Mark as Read
  • Checkout
    • Coupons
      • Apply Coupon
      • Remove Coupon
    • Cart
  • Otp Verify
    POST
  • Status
    GET
  1. Refund

Flight Refund (Complete)

Developing
POST
https://test-api.ucuzyolu.com/flight/refund/approve

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
token
string 
required
Example
{
    "token": "{{cancelToken}}"
}

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/refund/approve' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": ""
}'

Responses

🟢200OK
application/json
Body
data
object 
required
id
integer 
required
token
string 
required
summary
number 
required
total
number 
required
status
string 
required
payment
object 
required
invoice
object 
required
items
object 
required
currencyCode
string 
required
paymentCost
integer 
required
statusName
string 
required
success
boolean 
required
code
integer 
required
message
string 
required
Example
{
    "data": {
        "id": 11,
        "token": "ugyEbsZPxhesEwOWua4f1NVTVAalGefNOwyW",
        "summary": 1138.64,
        "total": 1138.64,
        "status": "completed",
        "payment": {
            "token": "PQ2oMgL0ijEHxv6C2oiM9duN8QPRweP7EjJs4ehjGhaTmOZHEGed1nGKHUIqcefgsuDUX1KJAoygtSM89sKQkRNJxYCKOCjd995vrp8uUhdwuTK3ydMmaTgWbzN3POhP",
            "amount": 1138.64,
            "state": "new",
            "comission": 0,
            "total": 1138.64,
            "details": {
                "cardExpiry": "11/40",
                "cardHolder": "John Due",
                "cardNumber": "552608******0006",
                "customerIp": "192.168.0.1",
                "cardAssociation": "Mastercard"
            },
            "paymentType": "Parolapara POS",
            "is3d": true,
            "authMode": "preauth"
        },
        "invoice": {
            "email": "johndue1@example.com",
            "phone": "+905322808035",
            "address": "Test mah",
            "district": "Cad.",
            "zipcode": "58060",
            "city": "İstanbul",
            "country": "Türkiye",
            "isCorporate": true,
            "invoiceName": "Mehmet Gülbilge",
            "taxOffice": "Avcılar",
            "taxNumber": "7590477978",
            "invoiceNumber": null
        },
        "items": {
            "flights": [
                {
                    "id": 11,
                    "pnr": "TMKDDP",
                    "refundable": false,
                    "domestic": false,
                    "duration": "01:05",
                    "yr": 149,
                    "vq": 109.03,
                    "date": "2024-11-20",
                    "origin": "IST",
                    "destination": "ESB",
                    "segments": [
                        {
                            "origin": "IST",
                            "destination": "ESB",
                            "date": "2024-11-20",
                            "airline": "TK",
                            "cabin": "T",
                            "price": 871.61,
                            "tax": 258.03,
                            "total": 1135.64,
                            "margin": 3,
                            "returnDate": null,
                            "flightNumber": "TK2190",
                            "cabinClass": "economy",
                            "currencyCode": "TRY",
                            "grandTotal": 1138.64,
                            "originName": "Atatürk Havalimanı",
                            "destinationName": "Esenboğa Havalimanı",
                            "airlineName": "Turkish Airlines",
                            "originCity": "Istanbul",
                            "destinationCity": "Ankara",
                            "airlineIcon": "http://api.tripingram.local/uploads/TK.png",
                            "arrivalTime": "02:05",
                            "departureTime": "01:00",
                            "arrivalDate": "2024-11-20",
                            "departureDate": "2024-11-20"
                        }
                    ],
                    "passengers": [
                        {
                            "id": 13,
                            "status": 1,
                            "pnr": "TMKDDP",
                            "gender": "M",
                            "birthdate": "1989-04-20",
                            "email": "JOHNDUE@EXAMPLE.COM",
                            "identity": "49852133948",
                            "nationality": "TR",
                            "phone": "+905322808035",
                            "total": 1132.64,
                            "sequenceNo": 1,
                            "ticketNumber": "2352236697492",
                            "firstName": "MEHMET",
                            "lastName": "GULBILGE",
                            "isLocalCitizen": true,
                            "passportCountry": null,
                            "passportNo": null,
                            "passportValidDate": null,
                            "paxCode": "ADT",
                            "priceHandLuggage": 0,
                            "priceBaggage": 0
                        }
                    ],
                    "sequenceNo": 0,
                    "flightId": "2bb92103-3852-4f48-a4d8-318089413ac0",
                    "passengerCount": 1,
                    "flightType": "oneway",
                    "grandTotal": 1138.64,
                    "airDuration": "01:05",
                    "airlineIcon": "http://api.tripingram.local/uploads/TK.png",
                    "originCity": "Istanbul",
                    "originName": "Atatürk Havalimanı",
                    "returnDate": null,
                    "arrivalDate": "2024-11-20",
                    "arrivalTime": "02:05",
                    "departureTime": "01:00",
                    "destinationCity": "Ankara",
                    "destinationName": "Esenboğa Havalimanı"
                }
            ],
            "buses": [],
            "hotels": []
        },
        "currencyCode": "TRY",
        "paymentCost": 0,
        "statusName": "Tamamlandı"
    },
    "success": true,
    "code": 0,
    "message": "İade işleminizi başarıyla gerçekleştirdik."
}
Modified at 2024-11-19 22:53:34
Previous
Flight Refund (Query)
Next
Notification List
Built with