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: '{"adults":2,"currency":"USD","language":"en","periodInDays":5}'};
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 '{ "adults": 2, "currency": "USD", "language": "en", "periodInDays": 5 }'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 Bodyrequired
Section titled “Request Bodyrequired”Rate calendar request containing the hotel identifier and the date range to calculate best available rates for each night
object
The period to query within.
The currency to display prices in.
The property to query for.
The language to display room type name.
The period to query within.
Start of period.
Example
{ "adults": 2, "currency": "USD", "language": "en", "periodInDays": 5}Responses
Section titled “Responses”OK
Aggregate response containing best available rates for a property across a date range period.
object
The actual amount of adults as determined by the hotel’s policy
The property to query for.
Utilify flag to verify whether this property has internet
List of rates for requested period.
object
Utilify flag to verify whether this rate is available
Utilify flag to verify whether this rate is includes breakfast
SimpleDateTimeItinerary endDate
object
Source total amount with any extra charges included
object
Monetary amount value
ISO 4217 currency code
Total amount with any extra charges included
object
Monetary amount value
ISO 4217 currency code
Utilify flag to verify whether this rate is refundable
Number of days from now until this rate stops being refundable; -1 when not refundable at all
The room type.
object
Unique record identifier
Maximum number of guest allowed in a room type.
Internal name of inventory.
Number of nights the guests will be staying
SimpleDateTimeItinerary startDate
The property name.
Utilify flag to verify whether this property has parking
Example
{ "adults": 2, "children": 0, "hotelIdentifier": "the-siam-residences", "internetIncluded": true, "list": [ { "adults": 2, "available": true, "breakfastIncluded": false, "children": 0, "endDate": "2026-01-17", "price": { "sourceTotal": { "amount": 15750, "currency": "THB" }, "userSpecifiedCurrencyTotal": { "amount": 450, "currency": "USD" } }, "refundable": true, "room": { "identifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51", "maxOccupancy": 2, "name": "Deluxe Garden View Room" }, "roomNights": 3, "startDate": "2026-01-14" } ], "name": "The Siam Residences", "parkingIncluded": false}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
Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version
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
