- 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 - Validate Rooms
POST
https://test-api.ucuzyolu.com/hotel/validate-room
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
hotelId
string
required
roomId
string
required
paxes
array [object {2}]
required
paxType
string
optional
additionalServices
array[string]
optional
Example
{
"journeyId": "{{journeyId}}",
"hotelId": "{{hotelId}}",
"roomId": "{{roomId}}",
"paxes": [
{
"paxType": "adt",
"additionalServices": []
}
]
}
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/validate-room' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"journeyId": "",
"hotelId": "",
"roomId": "",
"paxes": [
{
"paxType": "adt",
"additionalServices": []
}
]
}'
Responses
🟢200OK
application/json
Body
data
object (Search Hotel)
required
journeyId
string
required
success
boolean
required
type
string
required
currency
string
required
action
string
required
destinations
array[string]
required
searchStatus
string
required
bookingStatus
string
required
results
array[object (Hotel) {5}]
required
booking
optional
ttl
integer
required
filters
array[string]
required
success
boolean
required
code
integer
required
message
string
required
Example
{ "data": { "journeyId": "DBDAD32C-889B-4190-B60D-0196133623F3", "success": true, "type": "hotel", "currency": "TRY", "action": "search", "destinations": [], "searchStatus": "completed", "bookingStatus": "prebooked", "results": [], "booking": { "providerSearchId": "6b24c46c0f3a40f682cfbe1323454f47", "hotelId": "KTR468666", "reservationKey": "6b24c46c0f3a40f682cfbe1323454f47|", "hotel": { "hotelId": "KTR468666", "providerSearchId": "6b24c46c0f3a40f682cfbe1323454f47", "provider": "bookingagora", "hotel": { "hotelId": "KTR468666", "provider": "bookingagora", "destinationId": "522990", "name": "Dosso Dossi Hotels&Spa Downtown", "address": "Vatan Caddesi No:46-48 Fatih", "location": "Istanbul", "countryCode": "TR", "phone": "00902126381200", "email": "info@dossodossihotels.com", "fax": "00902125331008", "hotelCode": "KTR468666", "image": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvZDNmM2FlMmNfYi5qcGc=", "categoryName": "Hotel", "geoLocation": { "latitude": 41.017, "longitude": 28.940866 }, "hotelImages": [ { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvZDdjNmQxODFfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvOGU5OGIzNmRfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvMmJkNGJkZDlfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvNTY5MDZmNzhfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvNDA1ZTdmNTJfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvZDQ5ZDBkZGJfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvZTllY2NkNzlfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvNDVkMDlmMWNfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvN2U3NTdhMTVfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMDAvOTk5MDAwMC85OTgxOTAwLzk5ODE4MzkvYjQ3NmI4MjhfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50c
Modified at 2024-11-28 01:29:13