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 theAuthorization header on all requests:
Create a Booking
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
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-datebookingStatus: