Quote Group Cancellation
const url = 'https://api.wink.travel/api/booking/group/G-UOCWALXX/refund-preview?hotelIdentifier=hotel-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/booking/group/G-UOCWALXX/refund-preview?hotelIdentifier=hotel-1' \ --header 'Wink-Version: 2.0'Preview the refund for cancelling a group booking (optionally scoped to a hotel) without cancelling anything.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Quote cancellation for this group identifier
Example
G-UOCWALXXQuery Parameters
Section titled “Query Parameters ”Optional. Restrict the quote to bookings for this hotel within the group.
Example
hotel-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
The group code being quoted.
Hotel the quote is scoped to, or null for the whole trip.
The traveler’s display currency code.
Aggregate refund across all lines, in display currency.
One entry per booking that would be cancelled.
object
The booking’s internal identifier.
The human-readable booking code.
The hotel name for this booking.
Check-in date.
Check-out date.
Whether this booking refunds any money when cancelled.
Refund amount in the traveler’s display currency (0 when non-refundable).
Whether the refund is FULL, PARTIAL, or NONE.
Human-readable cancellation policy text (may be long).
Example
{ "groupIdentifier": "", "hotelIdentifier": "", "displayCurrency": "", "totalRefundDisplayAmount": "", "lines": ""}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
{}