getRate
POST
/api/services/travelclick/secured/get/rate
const url = 'https://integrations.wink.travel/api/services/travelclick/secured/get/rate';const options = { method: 'POST', headers: {'Content-Type': 'application/xml'}, body: '{\n "timestamp": "2026-04-15T12:00:00Z",\n "version": "example",\n "echoToken": "example",\n "ratePlans": {\n "ratePlan": [\n {\n "roomTypeID": "example",\n "roomType": "example",\n "rateTypeID": "example",\n "rateType": "example",\n "fromDate": "2026-04-15",\n "toDate": "2026-04-15",\n "minNight": 1,\n "stopSell": 1,\n "coa": 1,\n "cod": 1\n }\n ]\n }\n}'};
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/travelclick/secured/get/rate \ --header 'Content-Type: application/xml' \ --data '{ "timestamp": "2026-04-15T12:00:00Z", "version": "example", "echoToken": "example", "ratePlans": { "ratePlan": [ { "roomTypeID": "example", "roomType": "example", "rateTypeID": "example", "rateType": "example", "fromDate": "2026-04-15", "toDate": "2026-04-15", "minNight": 1, "stopSell": 1, "coa": 1, "cod": 1 } ] }}'Request Body required
Section titled “Request Body required ” Media type application/xml
object
timestamp
string format: date-time
version
string
echoToken
string
ratePlans
object
ratePlan
required
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
Responses
Section titled “ Responses ”OK
Media type application/xml
object
timestamp
string format: date-time
version
string
success
object
successMsg
required
string
errors
object
errorCode
required
string
errorMessage
required
string
echoToken
string
ratePlans
object
ratePlan
required
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
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
{}