updateInventory
POST
/api/services/travelclick/secured/update/inventory
const url = 'https://integrations.wink.travel/api/services/travelclick/secured/update/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 "inventories": {\n "hotelCode": "example",\n "inventory": [\n {\n "statusApplicationControl": {\n "start": "example",\n "end": "example",\n "invTypeCode": "example",\n "ratePlanCode": "example"\n },\n "invCounts": {\n "invCount": {\n "count": 1,\n "countType": "example"\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/update/inventory \ --header 'Content-Type: application/xml' \ --data '{ "timestamp": "2026-04-15T12:00:00Z", "version": "example", "echoToken": "example", "inventories": { "hotelCode": "example", "inventory": [ { "statusApplicationControl": { "start": "example", "end": "example", "invTypeCode": "example", "ratePlanCode": "example" }, "invCounts": { "invCount": { "count": 1, "countType": "example" } } } ] }}'Request Body required
Section titled “Request Body required ” Media type application/xml
object
timestamp
string format: date-time
version
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
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
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
{}