Rate calendar
const url = 'https://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/inventory/period?customizationIdentifier=2c5b9e3a-7f1d-4a8c-b6e2-0d4f1a9b3c72';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"periodInDays":5,"adults":2,"language":"en","currency":"USD"}'};
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://api.wink.travel/api/public/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/inventory/period?customizationIdentifier=2c5b9e3a-7f1d-4a8c-b6e2-0d4f1a9b3c72' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "periodInDays": 5, "adults": 2, "language": "en", "currency": "USD" }'Return the best available rate for every check-in/check-out date-range combination for a property.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Query Parameters
Section titled “Query Parameters ”Booking engine customization identifier; when omitted the managing entity’s default configuration is used
Example
2c5b9e3a-7f1d-4a8c-b6e2-0d4f1a9b3c72Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Rate calendar request containing the hotel identifier and the date range to calculate best available rates for each night
object
The property to query for.
Start of period.
The period to query within.
The period to query within.
The language to display room type name.
The currency to display prices in.
A regular expression to apply to the rate plan name
Example
{ "periodInDays": 5, "adults": 2, "language": "en", "currency": "USD"}Responses
Section titled “ Responses ”OK
Aggregate response containing best available rates for a property across a date range period.
object
The property to query for.
The property name.
The actual amount of adults as determined by the hotel’s policy
Utilify flag to verify whether this property has internet
Utilify flag to verify whether this property has parking
List of rates for requested period.
object
The room type.
object
Unique record identifier
Internal name of inventory.
Maximum number of guest allowed in a room type.
SimpleDateTimeItinerary startDate
SimpleDateTimeItinerary endDate
Number of nights the guests will be staying
Utilify flag to verify whether this rate is available
Utilify flag to verify whether this rate is refundable
Utilify flag to verify whether this rate is includes breakfast
object
Total amount with any extra charges included
object
Monetary amount value
ISO 4217 currency code
Source total amount with any extra charges included
object
Monetary amount value
ISO 4217 currency code
Example
{ "hotelIdentifier": "the-siam-residences", "name": "The Siam Residences", "adults": 2, "children": 0, "internetIncluded": true, "parkingIncluded": false, "list": [ { "room": { "identifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51", "name": "Deluxe Garden View Room", "maxOccupancy": 2 }, "adults": 2, "children": 0, "startDate": "2026-01-14", "endDate": "2026-01-17", "roomNights": 3, "available": true, "refundable": true, "breakfastIncluded": false, "price": { "userSpecifiedCurrencyTotal": { "amount": 450, "currency": "USD" }, "sourceTotal": { "amount": 15750, "currency": "THB" } } } ]}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable