- 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
Hotel - Search by Destination
POST
https://test-api.ucuzyolu.com/hotel/search
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
destinations
array[integer]
required
checkInDate
string <date>
required
checkOutDate
string <date>
required
nationality
string
required
adt
integer
required
chd
integer
optional
Example
{
"destinations": [
10033097
],
"checkInDate": "2025-02-01",
"checkOutDate": "2025-02-05",
"nationality": "TR",
"adt": 1,
"chd": 0
}
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/hotel/search' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"destinations": [10033097],
"checkInDate": "2025-02-01",
"checkOutDate": "2025-02-05",
"nationality": "TR",
"adt": 1,
"chd": 0
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"data": {
"jobId": "BJthPxEySqy0qk6d",
"status": "queued",
"attempts": 0,
"payload": {
"journeyId": "9FD76578-6014-4D50-BA63-B74DABF667D8",
"success": true,
"type": "hotel",
"currency": "TRY",
"action": "search",
"destinations": [],
"searchStatus": "pending",
"bookingStatus": "pending",
"results": [],
"ttl": 3600,
"filters": []
}
},
"success": true,
"code": 102,
"message": ""
}
Modified at 2024-11-28 01:29:13