New Webhook Event

We've implemented a new webhook event “Trip created/updated”, triggered whenever a new trip is created or an old one is updated or cancelled.

Take a look at an example payload sent with this webhook:

{
   "id": "123",
   "trip_name": "spontaneousCakeSynthesisInvestigation🧁",
   "start": "2017-04-17T07:00:00+00:00",
   "end": "2022-05-17T13:20:00+00:00",
   "status": "booked",
   "modified": "2022-04-28T16:59:35.360815+00:00",
   "start_location": {
      "name": "North Tara Airport",
      "address": "",
      "latitude": "76.5021054",
      "longitude": "42.3743066",
      "iata_code": "BCN"
   },
   "end_location": {
      "name": "North Tara Airport",
      "address": "",
      "latitude": "76.5021054",
      "longitude": "42.3743066",
      "iata_code": "BCN"
   },
   "bookings": [
     {
       "id": "456",
       "start": "2017-04-17T07:00:00+00:00",
       "end": "2022-06-04T13:20:00+00:00",
       "type": "flight",
       "location": null,
       "drop_off_location": null,
       "legs": [
         {
           "segments": [
             {
               "origin": {
                 "location": {
                   "address": "",
                   "iata_code": "BCN",
                   "latitude": "76.5021054",
                   "longitude": "42.3743066",
                   "name": "North Tara Airport"
                 },
                 "time", "2017-04-17T07:00:00+02:00"
               },
               "destination": {
                 "location": {
                   "address": "",
                   "iata_code": "MAD",
                   "latitude": "15.4886261",
                   "longitude": "131.0075138",
                   "name": "Salasstad Airport"
                 },
                 "time", "2017-04-17T08:25:00+02:00"
               },
               "external_id": "VY1044",
             }
         }
       ]
     }
   ]
}

Here is our webhook documentation: Webhooks