Skip to content

Build a hotel booking link

Returns the wego.com checkout URL for a chosen rate.

GET /v1/hotels/{hotelId}/rates/{rateId}/booking-link

Returns the wego.com checkout URL for a chosen rate. Pure build: no upstream call, no booking, no payment, only 400/401/429.

Operation ID: getHotelRateBookingLink

Parameters

Name In Type Required Description
hotelId path integer yes
rateId path string yes
searchId query string no
locale query string no
guests query string no
countryCode query string no
siteCode query string no Wego market (point of sale) as a 2-letter code, e.g. AE. Optional: if omitted the API defaults to US. A client that knows the user’s market (the wego CLI derives it from the id_token) passes it as an explicit siteCode.

Responses

Status Description
200 The checkout URL.
400 Invalid request parameters.
401 Missing or invalid bearer token.
429 Rate limit exceeded; retry after the Retry-After seconds.

Example

curl -s -H "Authorization: Bearer $TOKEN" \
  "https://api.wego.com/v1/hotels/$HOTEL_ID/rates/$RATE_ID/booking-link"
Navigation

Type to search…

↑↓ navigate↵ selectEsc close