- 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
- Pay with Account Balance (For Corporate Customers)
- Credit Card Storage
- Pay with Credit Card (New Card)
- Pay with Credit Card (Saved Card)
- Orders
- Blog
- Contents
- Refund
- Notifications
- Otp VerifyPOST
Payment - Account - Make Payment
Developing
Testing Env
Testing Env
POST
https://test-api.ucuzyolu.com/pay/account/purchase
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
{}
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/pay/account/purchase' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
data
object (Cart)
required
id
integer
required
token
string
required
total
number
required
status
string
required
payment
object
required
items
object
required
currencyCode
string
required
statusName
string
required
invoice
object | null
optional
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 15,
"token": "6dmYWonBMrwQ5QukwYpxHAWTrJEMz07j",
"total": 2395.57,
"status": "pending",
"payment": {
"token": "F5cXIN1QdGbeKHWYTQUpMYaXgHMYeH28d1qB72WasOa47dzY7tHgicvhUxEc6p3LVzPJTm2RTD9YXBinR1B1xlEh0zRpAONBACwQcYPirGILlVdjTnJu5XZaz3aGhUv9",
"amount": 2395.57,
"state": "new",
"comission": 0,
"total": 2395.57,
"details": [],
"paymentType": "Cari Hesap",
"is3d": true,
"authMode": "preauth"
},
"items": {
"flights": [
{
"id": 12,
"pnr": "WN3ZE3",
"refundable": false,
"domestic": false,
"duration": "01:35",
"yr": 149,
"vq": 113.96,
"segments": [
{
"origin": "IST",
"destination": "VAS",
"date": "2024-09-26",
"airline": "TK",
"cabin": "B",
"price": 2123.61,
"tax": 262.96,
"total": 2392.57,
"margin": 3,
"returnDate": null,
"flightNumber": "TK2658",
"cabinClass": "economy",
"currencyCode": "TRY",
"grandTotal": 2395.57,
"originName": "Atatürk Havalimanı",
"destinationName": "Nuri Demirağ Havalimanı",
"airlineName": "Turkish Airlines"
}
],
"sequenceNo": 0,
"flightId": "29760604-af53-4a0b-9269-df06a550d1f8",
"passengerCount": 1,
"flightType": "oneway",
"grandTotal": 2395.57,
"airDuration": "01:35"
}
]
},
"currencyCode": "TRY",
"statusName": "Onay Bekleniyor",
"paymentType": "Cari Hesap"
},
"success": true,
"code": 200,
"message": "İşlem başarılı"
}
Modified at 2024-09-22 21:30:44