Change Updates

Do not miss any Train Travel API changes, ever again

Subscribe to the Train Travel API changelog to be up to date on recent changes.

RSS

Mar 6, 2024

main
1.0.0
Compare

API structure has changed

5 structure changes including:
2 Breaking changes
3 Modifications
2 Removals
Modified 3 Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data property Added
  • application/xml content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data property Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data property Added
    • application/xml content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data property Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • amount, currency, source properties Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data property Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • id, amount, currency, source, status properties Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data property Added
Webhook POST newBooking
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data property Added
Removed 2 Breaking
DELETE /bookings/{bookingId}
  • Removing a resource is always breaking unless it was deprecated before
    Breaking
GET /bookings/{bookingId}
  • Removing a resource is always breaking unless it was deprecated before
    Breaking