- 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 - Set Paxes
POST
https://test-api.ucuzyolu.com/hotel/set-paxes
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
paxes
array [object {9}]
required
paxCode
string
optional
firstName
string
optional
lastName
string
optional
email
string
optional
gender
string
optional
birthDate
string
optional
phone
string
optional
nationality
string
optional
identityNumber
string
optional
Example
{
"journeyId": "{{journeyId}}",
"paxes": [
{
"paxCode": "ADT",
"firstName": "John",
"lastName": "Due",
"email": "johndue@example.com",
"gender": "M",
"birthDate": "1989-04-20",
"phone": "+905300010000",
"nationality": "TR",
"identityNumber": "11111111111"
}
]
}
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/set-paxes' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"journeyId": "",
"paxes": [
{
"paxCode": "ADT",
"firstName": "John",
"lastName": "Due",
"email": "johndue@example.com",
"gender": "M",
"birthDate": "1989-04-20",
"phone": "+905300010000",
"nationality": "TR",
"identityNumber": "11111111111"
}
]
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{ "data": { "journeyId": "30FD5459-D598-4D55-A0EC-3F4A80CC4DF2", "success": true, "type": "hotel", "currency": "TRY", "action": "search", "destinations": [], "searchStatus": "completed", "bookingStatus": "passenger_settled", "results": [], "booking": { "providerSearchId": "9e4be218851a4f439ec783ce2a591d52", "hotelId": "KTR467859", "reservationKey": "9e4be218851a4f439ec783ce2a591d52|", "hotel": { "hotelId": "KTR467859", "providerSearchId": "9e4be218851a4f439ec783ce2a591d52", "provider": "bookingagora", "hotel": { "hotelId": "KTR467859", "provider": "bookingagora", "destinationId": "522990", "name": "Divan Istanbul", "address": "Asker Ocagi Cd. No:1, Taksim, Sisli", "location": "Istanbul", "countryCode": "TR", "phone": "00902123155525", "email": "info.divanistanbul@divan.com.tr", "fax": "00902123155510", "hotelCode": "KTR467859", "image": "https://cdn.kplus.com.tr/?url=Y2RuLm9zdHJvdm9rLnJ1L3QvMTAyNHg3NjgvY29udGVudC9mNS9jOS9mNWM5MmJmNTZjYzAxZmFiMTE4MWI2ZTJjZWFlMzNlZTMyMTc0YjljLmpwZWc=", "categoryName": "Hotel", "geoLocation": { "latitude": 41.041206, "longitude": 28.987055 }, "hotelImages": [ { "imageTitle": "Primary image", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvYzZkMzVmYjVfYi5qcGc=" }, { "imageTitle": "Lobby lounge", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvNDQ0NTIyOTZfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvYWRhNzdiNmZfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvMzhmOWI4YzNfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvOTIxN2JkM2FfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvNTMwMjI3NzdfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvZjM2MTIyZDlfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvZTRjZDBlZDVfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvNjkxYjk4OTdfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvNGFkOTY5NDBfYi5qcGc=" }, { "imageTitle": "Room", "imageType": 0, "imageUrl": "https://cdn.kplus.com.tr/?url=aS50cmF2ZWxhcGkuY29tL2xvZGdpbmcvMTAwMDAwMC8xMDAwMC80NzAwLzQ2MDEvYmQ0OWVhMTBfYi5qc
Modified at 2024-11-28 01:29:13