handleAPI_3
POST
/api/services/cloudbeds/GetBookingId
const url = 'https://integrations.wink.travel/api/services/cloudbeds/GetBookingId';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"verb":"example","guid":"example","ota_property_id":"example","mya_property_id":"example","shared_secret":"example","booking_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://integrations.wink.travel/api/services/cloudbeds/GetBookingId \ --header 'Content-Type: application/json' \ --data '{ "verb": "example", "guid": "example", "ota_property_id": "example", "mya_property_id": "example", "shared_secret": "example", "booking_id": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
verb
string
guid
string
ota_property_id
string
mya_property_id
string
shared_secret
string
booking_id
string
Example generated
{ "verb": "example", "guid": "example", "ota_property_id": "example", "mya_property_id": "example", "shared_secret": "example", "booking_id": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
success
boolean
guid
string
errors
Array<object>
object
id
string
type
string
msg
string
Booking
object
Customers
Array<object>
object
CustomerLName
string
CustomerEmail
string
CustomerFName
string
CustomerCountry
string
IsCancellation
integer format: int32
IsModification
integer format: int32
OrderAdults
integer format: int32
OrderChildren
integer format: int32
OrderCustomers
integer format: int32
OrderDate
string format: date
OrderTime
string
OrderId
string
TotalCurrency
string
TotalPrice
number
PaymentCollect
string
Rooms
Array<object>
object
Adults
integer format: int32
Babies
integer format: int32
ChannelRoomType
string
Children
integer format: int32
Currency
string
DayRates
Array<object>
object
Currency
string
Rate
number
Description
string
Date
string format: date
RateId
string
rateId
string
StartDate
string format: date
EndDate
string format: date
Occupancy
integer format: int32
Price
number
Units
integer format: int32
RateDesc
string
RateId
string
Example generated
{ "success": true, "guid": "example", "errors": [ { "id": "example", "type": "example", "msg": "example" } ], "Booking": { "Customers": [ { "CustomerLName": "example", "CustomerEmail": "example", "CustomerFName": "example", "CustomerCountry": "example" } ], "IsCancellation": 1, "IsModification": 1, "OrderAdults": 1, "OrderChildren": 1, "OrderCustomers": 1, "OrderDate": "2026-04-15", "OrderTime": "example", "OrderId": "example", "TotalCurrency": "example", "TotalPrice": 1, "PaymentCollect": "example", "Rooms": [ { "Adults": 1, "Babies": 1, "ChannelRoomType": "example", "Children": 1, "Currency": "example", "DayRates": [ { "Currency": "example", "Rate": 1, "Description": "example", "Date": "2026-04-15", "RateId": "example", "rateId": "example" } ], "StartDate": "2026-04-15", "EndDate": "2026-04-15", "Occupancy": 1, "Price": 1, "Units": 1, "RateDesc": "example", "RateId": "example" } ] }}Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}