X-Request-Id header.
Common Status Codes
Retry Guidance
- Safe to retry:
GETendpoints andPOST /hotels/bookwith the sameIdempotency-Keyand identical request body. - Use caution:
POST /hotels/prebook, because supplier availability can change. - Do not create a new booking retry key unless the user intentionally starts a new booking attempt.
429 and transient 500 responses, delay the retry and increase the delay
between consecutive attempts. Do not retry a failed validation request until you
have corrected the input.
Expired Tokens
Roombooking_token and prebooking IDs are short lived. If a token expires, restart from room availability or search.
Search Refreshes
- Poll
GET /hotels/search/{searchId}/pricesevery 2 seconds only while the customer is viewing a search result page. - Stop polling when the refresh status is
COMPLETEorEXPIRED. - Use
refresh_idsto prioritize hotel cards currently visible to the customer.