Show Cancellation Policy
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/cancellation-policy/cancellation-policy-1';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
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/hotel-1/extranet/cancellation-policy/cancellation-policy-1 \ --header 'Wink-Version: 2.0'Retrieve a cancellation policy by its identifier.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Show single cancellation policy owned by this property identifier.
Example
hotel-1Show single cancellation policy with this identifier.
Example
cancellation-policy-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Property this cancellation is associated with
Whether this cancellation policy is refundable or not
When the cancellation policy is refundable, this flag can be set and indicates there is more rules involved than just a no-questions-asked refundable.
If advanceCancellationFreeOfCharge rules is not honored, this property explains what the guest will be charged.
In case the ‘Refundable cancellation charge’ is set, a different no show charge can be applied.
When the cancellation policy is non-refundable, this flag can be set and indicates there is more rules involved to calculate what the guest will owe in case of a cancellation.
The non-refundable charge might can have a deadline. If that deadline passes, the guest might be charged more.
If the guest does not honor the non-refundable deadline rule, this charge dictates what she owes after the deadline passes.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "hotelIdentifier": "", "refundable": false, "advanceCancellationFreeOfCharge": "UNTIL_EIGHTEEN_HUNDRED_HOURS_ON_DAY_OF_ARRIVAL", "refundableCancellationCharge": "FIRST_NIGHT", "noShowCharge": "SAME_AS_CANCELLATION_FEE", "nonRefundableCancellationCharge": "FIRST_NIGHT", "nonRefundableDeadline": "ONE_DAY_BEFORE_ARRIVAL", "nonRefundableAfterDeadlineCancellationCharge": "FIRST_NIGHT"}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
{}