Show Receipt
const url = 'https://api.wink.travel/receipt/';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/receipt/ \ --header 'Wink-Version: 2.0'Show a receipt with the specified booking identifier.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Booking identifier
Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
object
Booking identifier.
Booking code
Where the booking occurred
Hotel identifier
Hotel name
Line items in this receipt.
object
Room rate internal name.
Room description
The internal currency
The total internal (capture) price.
Stripe Payment Intent ID
Whether the booking was cancelled.
When the booking was cancelled.
Who cancelled the booking.
Cancellation policy type.
Reason for cancellation.
List of refunds on this booking.
object
Refund identifier
Stripe refund identifier
Refund amount in internal currency
When the refund was created
Description of the refund
Reason for the refund
Status of the refund
Who requested the refund
Stripe receipt URL for the refund.
The internal (capture) currency
The total internal (capture) price.
Example
{ "id": "", "bookingCode": "", "serverUrl": "", "hotelIdentifier": "", "hotelName": "", "itemList": "", "stripePaymentIntentId": "", "cancelled": false, "cancelledOn": "", "canceller": "HOTEL", "cancellationType": "DUPLICATE", "cancelReason": "", "refunds": "", "internalCurrency": "", "internalAmount": ""}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
{}