Confirm a rate
Before booking, confirm the rate. This re-prices it against the source and checks it is still available, then stores the confirmed rate so you can create an order from it.
Confirm a rate
GET/v3/HAPI/hotels/rates/{id}
Requires the hotels:read scope. The {id} is the hrt_ id from a search.
curl https://api.hermeseus.com/v3/HAPI/hotels/rates/hrt_Ym9va2FwcDphYmMxMjM \ -H "Authorization: Bearer $ACCESS_TOKEN"
Response
The same hotel_rate shape as search, re-priced, with revalidated set to true.
{
"object": "hotel_rate",
"id": "hrt_Ym9va2FwcDphYmMxMjM",
"check_in": "2026-11-14",
"check_out": "2026-11-16",
"nights": 2,
"total": { "amount": "360.00", "currency": "USD" },
"refundable": true,
"hotel": { /* … */ },
"rooms": [ /* … */ ],
"cancellation": { "non_refundable": false, "policy_text": "…", "policies": [ /* … */ ] },
"revalidated": true
}
Confirmation is required before an order.
Creating an order from a rate you have not confirmed in the current session returns
409 rate_not_revalidated. Confirm the rate immediately before creating the order, and read the returned total and cancellation so you charge and disclose the confirmed terms.
Errors
| Status | Code | Meaning |
|---|---|---|
| 404 | rate_not_found | The id is malformed or not a rate id. |
| 409 | rate_expired | The rate is no longer available; run a fresh search. |
Was this page helpful?