DATE:
AUTHOR:
The Duffel team
API

Segments on offers and orders in the API are now more consistent

DATE:
AUTHOR: The Duffel team

We want offers and orders in our API to be as consistent as possible.

On offers' segments, we have the following. attri departing_at, origin_terminal, arriving_at and destination_terminal attributes.

On orders' segments, we have departure_datetime, departure_terminal, arrival_datetime and arrival_terminal.

To make these more consistent, we've now added the departing_at, origin_terminal, arriving_at and destination_terminal attributes to orders' segments, and have marked the old names (departure_datetime, departure_terminal, arrival_datetime and arrival_terminal) as deprecated.

For now, if you've built your integration using the old attribute names, you can continue using them without any changes. Before we drop support for the old attributes, we'll give you plenty of warning, and will share a guide on upgrading your integration.

Powered by LaunchNotes