handleGetRatePlans
POST
/api/services/cloudbeds/GetRatePlans
const url = 'https://integrations.wink.travel/api/services/cloudbeds/GetRatePlans';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"}'};
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/GetRatePlans \ --header 'Content-Type: application/json' \ --data '{ "verb": "example", "guid": "example", "ota_property_id": "example", "mya_property_id": "example", "shared_secret": "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
Example generated
{ "verb": "example", "guid": "example", "ota_property_id": "example", "mya_property_id": "example", "shared_secret": "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
RatePlans
Array<object>
object
roomTypeID
required
string
roomType
string
rateTypeID
required
string
rateType
string
fromDate
string format: date
toDate
string format: date
minNight
integer format: int32
stopSell
integer format: int32
coa
integer format: int32
cod
integer format: int32
Example generated
{ "success": true, "guid": "example", "errors": [ { "id": "example", "type": "example", "msg": "example" } ], "RatePlans": [ { "roomTypeID": "example", "roomType": "example", "rateTypeID": "example", "rateType": "example", "fromDate": "2026-04-15", "toDate": "2026-04-15", "minNight": 1, "stopSell": 1, "coa": 1, "cod": 1 } ]}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
{}