Skip to content

What gets charged

The billing unit is the hotel-quote, not the request. A batch of 20 hotels (POST /v1/quotes) costs 20 times what quoting just one costs (GET /v1/quotes) — the benefit of batching is latency, not price.

Every successful response carries these headers — they’re part of the contract, unlike other infrastructure headers (Via, ETag, X-Powered-By) that also show up in the response but we don’t document because they can change without notice:

Header What it reports
X-HotelQuotes-Charged How many hotel-quotes THIS call charged (in a batch, the sum of the ones actually quoted).
X-Quota-Limit Your total monthly quota.
X-Quota-Used How much you’ve used this month, including this call.
X-Quota-Remaining What’s left.
X-Request-Id This specific call’s identifier, useful for support.

Real example (capture get-ok): X-HotelQuotes-Charged: 1, X-Quota-Limit: 25000, X-Quota-Used: 24, X-Quota-Remaining: 24976.

The same capture also carries ratelimit-limit: 10 and ratelimit-remaining: 119 — remaining greater than limit is not a mistake on this page: ratelimit-limit is your per-second rate and ratelimit-remaining counts a burst (an accumulated capacity, independent of and larger than the per-second rate). See errors and limits for the detail on those headers — they’re not billing headers, they’re rate-limit headers.

Nothing is charged when the call delivered no value:

  • overloaded (503): our own queue rejected the call before asking anything of any channel.
  • hotel_not_found, not_quotable, not_supported (422): nothing got quoted.
  • upstream_error (502): an external channel failed, not us.
  • 400 and 401: the request never even got built as a quote.

no_availability (200) IS charged: we queried the channels, and the response — no channel with a rate — is as valid as an ok.