Show Property Rate Period
const url = 'https://api.wink.travel/api/public//inventory/period?customizationIdentifier=';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"hotelIdentifier":"","startDate":"","periodInDays":5,"adults":2,"language":"en","currency":"USD","ratePlanNameMatchesRegEx":""}'};
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//inventory/period?customizationIdentifier=' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "hotelIdentifier": "", "startDate": "", "periodInDays": 5, "adults": 2, "language": "en", "currency": "USD", "ratePlanNameMatchesRegEx": "" }'Returns all possible date range combinations of best rates for a property.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Query Parameters
Section titled “Query Parameters ”Customization identifier
Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”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
Responses
Section titled “ Responses ”OK
object
The property to query for.
The property name.
The actual amount of adults as determined by the hotel’s policy
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 or not
object
Total amount with any extra charges included
object
Source total amount with any extra charges included
object
Example
{ "hotelIdentifier": "", "name": "", "adults": "", "list": [ "" ]}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
{}