# List existing bookings Returns a list of all trip bookings by the authenticated user. Endpoint: GET /bookings Version: 1.0.0 Security: OAuth2 ## Response 200 fields (application/json): - `data` (array) The wrapper for a collection is an array of objects. - `data.id` (string) Unique identifier for the booking - `data.trip_id` (string) Identifier of the booked trip - `data.passenger_name` (string) Name of the passenger - `data.has_bicycle` (boolean) Indicates whether the passenger has a bicycle. - `data.has_dog` (boolean) Indicates whether the passenger has a dog. - `links` (object) A set of hypermedia links which serve as controls for the client. - `links.self` (string) - `links.next` (string) - `links.prev` (string) ## Response 400 fields (application/problem+json): - `type` (string) A URI reference that identifies the problem type Example: "https://example.com/probs/out-of-credit" - `title` (string) A short, human-readable summary of the problem type Example: "You do not have enough credit." - `detail` (string) A human-readable explanation specific to this occurrence of the problem Example: "Your current balance is 30, but that costs 50." - `instance` (string) A URI reference that identifies the specific occurrence of the problem Example: "/account/12345/msgs/abc" - `status` (integer) The HTTP status code Example: 400 ## Response 401 fields (application/problem+json): - `type` (string) A URI reference that identifies the problem type Example: "https://example.com/probs/out-of-credit" - `title` (string) A short, human-readable summary of the problem type Example: "You do not have enough credit." - `detail` (string) A human-readable explanation specific to this occurrence of the problem Example: "Your current balance is 30, but that costs 50." - `instance` (string) A URI reference that identifies the specific occurrence of the problem Example: "/account/12345/msgs/abc" - `status` (integer) The HTTP status code Example: 400 ## Response 403 fields (application/problem+json): - `type` (string) A URI reference that identifies the problem type Example: "https://example.com/probs/out-of-credit" - `title` (string) A short, human-readable summary of the problem type Example: "You do not have enough credit." - `detail` (string) A human-readable explanation specific to this occurrence of the problem Example: "Your current balance is 30, but that costs 50." - `instance` (string) A URI reference that identifies the specific occurrence of the problem Example: "/account/12345/msgs/abc" - `status` (integer) The HTTP status code Example: 400 ## Response 429 fields (application/problem+json): - `type` (string) A URI reference that identifies the problem type Example: "https://example.com/probs/out-of-credit" - `title` (string) A short, human-readable summary of the problem type Example: "You do not have enough credit." - `detail` (string) A human-readable explanation specific to this occurrence of the problem Example: "Your current balance is 30, but that costs 50." - `instance` (string) A URI reference that identifies the specific occurrence of the problem Example: "/account/12345/msgs/abc" - `status` (integer) The HTTP status code Example: 400 ## Response 500 fields (application/problem+json): - `type` (string) A URI reference that identifies the problem type Example: "https://example.com/probs/out-of-credit" - `title` (string) A short, human-readable summary of the problem type Example: "You do not have enough credit." - `detail` (string) A human-readable explanation specific to this occurrence of the problem Example: "Your current balance is 30, but that costs 50." - `instance` (string) A URI reference that identifies the specific occurrence of the problem Example: "/account/12345/msgs/abc" - `status` (integer) The HTTP status code Example: 400