getInventory
POST
/api/services/travelclick/secured/get/inventory
const url = 'https://integrations.wink.travel/api/services/travelclick/secured/get/inventory';const options = { method: 'POST', headers: {'Content-Type': 'application/xml'}, body: '{\n "timestamp": "2026-04-15T12:00:00Z",\n "version": "example",\n "echoToken": "example",\n "hotelInvCountRequests": {\n "hotelInvCountRequest": [\n {\n "hotelRef": {\n "hotelCode": "example"\n },\n "dateRange": {\n "start": "example",\n "end": "example"\n },\n "roomTypeCandidates": {\n "list": [\n {\n "roomTypeCode": "example"\n }\n ]\n }\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/inventory \ --header 'Content-Type: application/xml' \ --data '{ "timestamp": "2026-04-15T12:00:00Z", "version": "example", "echoToken": "example", "hotelInvCountRequests": { "hotelInvCountRequest": [ { "hotelRef": { "hotelCode": "example" }, "dateRange": { "start": "example", "end": "example" }, "roomTypeCandidates": { "list": [ { "roomTypeCode": "example" } ] } } ] }}'Request Body required
Section titled “Request Body required ” Media type application/xml
object
timestamp
string format: date-time
version
string
echoToken
string
hotelInvCountRequests
object
hotelInvCountRequest
Array<object>
object
hotelRef
object
hotelCode
string
dateRange
object
start
string
end
string
roomTypeCandidates
object
list
Array<object>
object
roomTypeCode
string
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
inventories
object
hotelCode
string
inventory
Array<object>
object
statusApplicationControl
object
start
string
end
string
invTypeCode
string
ratePlanCode
string
invCounts
object
invCount
object
count
integer format: int32
countType
string
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
{}