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 Additions
3 Modifications
Modified 3 Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • application/xml content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
    • application/xml content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • amount, currency, source properties Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, amount, currency, source, status properties Added
Webhook POST newBooking
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
Added 2
DELETE /bookings/{bookingId}
GET /bookings/{bookingId}