Skip to main content
This page covers two closely related endpoints: creating a new booking from a search offer, and retrieving the current status of an existing booking. Use POST /travel/book to convert an offerId from /travel/search into a confirmed reservation, and GET /travel/booking/{id} to check on that booking at any point afterward. Both endpoints are available to Enterprise and Developer partners.
Base URLs
  • International: https://api.rollinggo.ai/v1
  • China: https://api.rollinggo.cn/v1

Authentication

Include your API key as a Bearer token in the Authorization header on all requests:

Create a Booking

Submit an offerId from /travel/search along with passenger details and contact information to create a booking. On success, you receive a bookingId and PNR that you can use to retrieve or reference the booking later.

Request Parameters

string
required
The offer identifier returned by POST /travel/search. This value expires 15 minutes after the search — if it has expired, call /travel/search again to obtain a fresh one.
array
required
A list of passenger objects. The number of passengers must match the passengers count used in the original search.
string
required
Email address where the booking confirmation is sent.
string
required
Passenger contact phone number including country code (e.g., +85291234567).

Example Request

Example Response

Response Fields

string
"ok" on a successful response.
string
A unique identifier for this request. Include this when contacting support.
string
A unique identifier for the created booking. Save this — you use it to retrieve the booking with GET /travel/booking/{id}.
string
The current state of the booking. See Booking Status Values below.
string
The airline-issued Passenger Name Record (PNR) locator code (e.g., RGX7AB). Passengers use this code to check in and manage their reservation directly with the carrier.
object
The total charged amount for the booking.

Retrieve a Booking

Retrieve the current status and full details of an existing booking using its bookingId. The response shape mirrors the booking creation response, reflecting the latest bookingStatus.

Path Parameters

string
required
The bookingId returned by POST /travel/book (e.g., bk_XYZ9012).

Example Request

Example Response

The response has the same shape as the booking creation response, with the most up-to-date bookingStatus:

Booking Status Values


Error Responses

Offer IDs expire 15 minutes after the original search. If you receive an expired_offer error, call POST /travel/search again to get a fresh offerId and re-submit your booking request.