New Booking

POST https://webhook.example.com

Subscribe to new bookings being created, to update integrations for your users. Related data is available via the links provided in the request.

application/json

Body

  • trip_id string(uuid)

    Identifier of the booked trip

  • Name of the passenger

  • Indicates whether the passenger has a bicycle.

  • has_dog boolean

    Indicates whether the passenger has a dog.

Responses

  • Return a 200 status to indicate that the data was received successfully.

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