Room types
const url = 'https://api.wink.travel/api/managing-entity/d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04/studio/transactional-url/room-types?supplierIdentifier=7c9a2e5f-3d8b-4a1c-b6e2-8f0d1c4a9b3e';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.wink.travel/api/managing-entity/d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04/studio/transactional-url/room-types?supplierIdentifier=7c9a2e5f-3d8b-4a1c-b6e2-8f0d1c4a9b3e' \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Active room types of a hotel, each with the rate plans that have an active master rate for it; used to focus a transactional URL.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Managing entity identifier
Example
d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04Query Parameters
Section titled “Query Parameters”Hotel identifier
Example
7c9a2e5f-3d8b-4a1c-b6e2-8f0d1c4a9b3eHeader Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Active room types of the hotel, each with its active rate plans
object
Room type identifier.
Room type name.
Rate plans with an active master rate for this room type, sorted by name.
object
Rate plan identifier.
Rate plan name.
Example
[ { "identifier": "5b7e2c1a-9d4f-4e8b-a3c6-1f0d2e9b8a74", "name": "Deluxe", "ratePlans": [ { "identifier": "9a3c6e1d-2b8f-4d7a-b5e0-4c1f8a2d6e93", "name": "Flexible" } ] }]Bad Request — missing or invalid request parameter or body
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Unauthorized — authentication is required or the session has expired
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Forbidden — authenticated but lacking the required permission or scope
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Not Found — the requested resource does not exist
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Unsupported Media Type — use application/json
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Internal Server Error — an unexpected failure occurred on the server
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}Service Unavailable — a downstream dependency is unreachable
object
object
Example generated
{ "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }, "status": 1, "title": "example", "type": "https://example.com"}