Skip to content

Getting started

This page covers authentication, authorization, rate limiting, and versioning for the RtB API.

Authentication

As with any other Connectivity API, you can use machine account based authentication.

Authorization

RtB API requires the same property permissions as the Reservations API.

Rate limiting

We apply rate limiting in the RtB API, please see connectivity rate limiting for more information.

Versioning

Use the X-Booking-Api-Version header to select the API version, which in turn selects the RtB contract your integration follows.

X-Booking-Api-Version: 2.0.0

If you omit the header, the API defaults to 1.0.1.

API versions

RtB is offered as two major versions, each with a different inventory behavior:

  • Version 1.x (INQUIRY flow). A pending request is informational and does not hold inventory. Block availability only when the request becomes BOOKED.
  • Version 2.x (RTB flow). Each request carries a requestType field that determines its inventory behavior. For RTB requests, a pending request holds inventory, so you block and release provider-side availability based on the request status. For INQUIRY requests, the behavior matches version 1.x: the pending request is informational and does not hold inventory. This is the model described in the RtB 2.0 section.

Pick the version that matches your integration via the version header. Incremental features (such as withdrawal) ship to both major versions independently, so each has its own version history.

Version history

VersionMajor versionWhat it adds
1.0.11.x (INQUIRY flow)Base RtB. Used by default when no version header is sent.
1.1.01.xWithdrawal (WITHDRAWN_PENDING_APPROVAL request status).
2.0.02.x (RTB flow)The requestType field, status-based availability holds, the FAILED_TO_PROCESS status, and payment pre-authorization with VCC settlement. See RtB 2.0 API changes.
2.1.02.xWithdrawal (WITHDRAWN_PENDING_APPROVAL request status).

Request headers

Include the following headers in your RtB API requests.

HeaderDescriptionTypeRequired
AuthorizationJWT access token. Example: Bearer {JWT}StringRequired
X-Booking-Api-VersionAPI VersionStringRequired

Messaging

For pre-reservation messaging via Messaging API, see pre-reservation messaging section.

This requires implementing the Messaging API.