updateRatesDeprecated
Deprecated
PUT
/api/services/channelmanager/secured/property/{propertyIdentifier}/roomrate/{masterRateIdentifier}
const url = 'https://integrations.wink.travel/api/services/channelmanager/secured/property/example/roomrate/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/hal+json'}, body: '{ "startDate": "2026-04-15", "endDate": "2026-04-15", "amount": 1, "currencyCode": "example", "master": true, "closedOnArrival": true, "closedOnDeparture": true, "quantity": 1, "minLengthOfStay": 1, "maxLengthOfStay": 1, "minOccupancy": 1, "maxOccupancy": 1, "singleOccupancyRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" }, "extraPaxRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" }, "extraChildRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" } }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://integrations.wink.travel/api/services/channelmanager/secured/property/example/roomrate/example \ --header 'Content-Type: application/hal+json' \ --data '{ "startDate": "2026-04-15", "endDate": "2026-04-15", "amount": 1, "currencyCode": "example", "master": true, "closedOnArrival": true, "closedOnDeparture": true, "quantity": 1, "minLengthOfStay": 1, "maxLengthOfStay": 1, "minOccupancy": 1, "maxOccupancy": 1, "singleOccupancyRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" }, "extraPaxRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" }, "extraChildRateModifier": { "type": "FIXED", "percent": "##default", "fixedAmount": "##default" } }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” propertyIdentifier
required
string
masterRateIdentifier
required
string
Request Body required
Section titled “Request Body required ” Media type application/hal+json
object
startDate
required
string format: date
endDate
required
string format: date
amount
number
currencyCode
string
master
boolean
closedOnArrival
boolean
closedOnDeparture
boolean
quantity
integer format: int32
minLengthOfStay
integer format: int32
maxLengthOfStay
integer format: int32
minOccupancy
integer format: int32
maxOccupancy
integer format: int32
singleOccupancyRateModifier
object
type
required
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
string
percent
A percentage of the total stay amount for an early check-in or late check-out
number format: float
Example
0.25 fixedAmount
A localized amount
object
amount
required
number
currency
required
string
extraPaxRateModifier
object
type
required
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
string
percent
A percentage of the total stay amount for an early check-in or late check-out
number format: float
Example
0.25 fixedAmount
A localized amount
object
amount
required
number
currency
required
string
extraChildRateModifier
object
type
required
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
string
percent
A percentage of the total stay amount for an early check-in or late check-out
number format: float
Example
0.25 fixedAmount
A localized amount
object
amount
required
number
currency
required
string
Responses
Section titled “ Responses ”OK
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
{}