Update Daily Rates by List
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/rate/update';const options = { method: 'PUT', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '[{"key":null,"value":null}]'};
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://api.wink.travel/api/managing-entity/hotel-1/extranet/rate/update \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '[ { "key": null, "value": null } ]'Update daily rates with list of daily rate records.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Update daily rates list owned by this property identifier.
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Unique key for this rate update
object
Values to update this rate
object
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
Example
0.25A localized amount
object
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
Example
0.25A localized amount
object
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
Example
0.25A localized amount
object
Responses
Section titled “ Responses ”OK
Holds all the information for one rate date
object
Document UUID
Owner of daily rate.
Indicate where this rate originated from. Leave as TRAVELIKO unless you are a channel manager and responsible for the property’s rates externally of this platform.
Rate plan associated with this daily rate.
Guest room associated with this daily rate.
Guest room associated with this daily rate.
The currencyCode property operates in.
This flag indicates whether this rate is available for this date.
This flag indicates whether a guest can arrive at the property on this date.
This flag indicates whether a guest can leave the property on this date.
Day of month
Month
Year
Amount of rooms available for this date.
Control the minimum length of stay at the day-level. This means that a guest arriving within this date range is required to stay at least these number of days in order to get this rate. Leave empty if you don’t want to update this property.
Control the maximum length of stay at the day-level. This means that a guest arriving within this date range is required to stay no longer than these number of days in order to get this rate. Leave empty if you don’t want to update this property.
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
A localized amount
object
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
A localized amount
object
object
When the type is FIXED, fixedAmount is required. When the type is PERCENTAGE, percent is required.
A percentage of the total stay amount for an early check-in or late check-out
A localized amount
object
When this rate can be safely removed.
Example
[ null]Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}