Skip to content

Get a booking

Request

Returns the details of a specific booking.

Security
OAuth2(Required scopes: read)
Path
bookingIdstring, (uuid)required

The ID of the booking to retrieve.

Example:1725ff48-ab45-4bb5-9d02-88745177dedb
curl -i -X GET \
  https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The booking details

Headers
RateLimitstring

The RateLimit header communicates quota policies. It contains a limit to convey the expiring limit, remaining to convey the remaining quota units, and reset to convey the time window reset time.

Body
idstring, (uuid)read-only

Unique identifier for the booking

trip_idstring, (uuid)

Identifier of the booked trip

passenger_namestring

Name of the passenger

has_bicycleboolean

Indicates whether the passenger has a bicycle.

has_dogboolean

Indicates whether the passenger has a dog.

Response
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" } }