- 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
Apply Coupon
Developing
POST
https://test-api.ucuzyolu.com/cart/coupon/
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
couponCode
string
required
Example
{
"journeyId": "{{journeyId}}",
"couponCode": "UCZI4FKX"
}
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/cart/coupon/' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"journeyId": "",
"couponCode": "UCZI4FKX"
}'
Responses
🟢200OK
application/json
Body
data
object (Cart)
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
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 478,
"token": "cdeuKZFxYdZmYxeBhBvTUJlUkyW9axLKuY4k",
"summary": 3996.49,
"discount": 399.65,
"total": 3596.84,
"status": "new",
"payment": null,
"invoice": null,
"coupons": [
{
"discount": 399.65,
"couponName": "Hoşgeldin",
"couponCode": "UCZI4FKX"
}
],
"items": {
"flights": [
{
"id": 463,
"pnr": "SBBG5C",
"direction": "dep",
"refundable": false,
"domestic": false,
"duration": "01:15",
"yr": 0,
"vq": 0,
"date": "2025-07-22",
"origin": "IST",
"destination": "ESB",
"segments": [
{
"origin": "IST",
"destination": "ESB",
"date": "2025-07-22",
"airline": "TK",
"cabin": "B",
"price": 3605.61,
"tax": 387.88,
"total": 3993.49,
"margin": 0,
"returnDate": null,
"flightNumber": "TK2116",
"cabinClass": "economy",
"currencyCode": "TRY",
"grandTotal": 3996.49,
"originName": "Atatürk Havalimanı",
"destinationName": "Esenboğa Havalimanı",
"airlineName": "Turkish Airlines",
"originCity": "İstanbul",
"destinationCity": "Ankara",
"airlineIcon": "http://api.tripingram.local/uploads/TK.png",
"arrivalTime": "07:15",
"departureTime": "06:00",
"arrivalDate": "2025-07-22",
"departureDate": "2025-07-22"
}
],
"passengers": [
{
"id": 288,
"status": 0,
"pnr": "SBBG5C",
"gender": "M",
"birthdate": "1989-04-20",
"email": "JOHNDUE@EXAMPLE.COM",
"identity": "74140595702",
"nationality": "TR",
"phone": "+905322808035",
"total": 3996.49,
"sequenceNo": 1,
"ticketNumber": null,
"firstName": "MEHMET",
"lastName": "GULBILGE",
"isLocalCitizen": true,
"paxCode": "ADT",
"priceHandLuggage": 0,
"priceBaggage": 0,
"baggageInfo": [
{
"unit": "KG",
"value": 15,
"paxCode": "ADT",
"unitType": "weight"
},
{
"unit": "KG",
"value": 8,
"paxCode": "ADT",
"unitType": "carry"
}
]
}
],
"sequenceNo": 0,
"flightId": "f07904da-345b-4e85-b90d-bb9e02b2a16a",
"passengerCount": 1,
"flightType": "oneway",
"grandTotal": 3996.49,
"journeyDuration": "01:15:00",
"airDuration": "01:15",
"airlineIcon": "http://api.tripingram.local/uploads/TK.png",
"originCity": "İstanbul",
"originName": "Atatürk Havalimanı",
"returnDate": null,
"arrivalDate": "2025-07-22",
"arrivalTime": "07:15",
"departureTime": "06:00",
"destinationCity": "Ankara",
"destinationName": "Esenboğa Havalimanı"
}
],
"buses": [],
"hotels": []
},
"currencyCode": "TRY",
"paymentCost": 0,
"statusName": "Taslak"
},
"success": true,
"code": 0,
"message": ""
}
Modified at 2025-02-17 03:38:27