Migration of the route POST /v0/proposals/{proposal_id}/available_transports to POST /v1/proposals/{proposal_id}/available_transports

  • Outdated
  • June 1, 2025
  • 1 related route

Context

Upgrade from POST - ​/v0/proposals/{proposal_id}/available_transports to POST - ​/v1/proposals/{proposal_id}/available_transports

3 Key benefits :

  • Add a new field unit to precise the luggage weight unit
  • No longer display the weight unit of the luggage
  • The luggage unit will now be specific to each locale, by default it is KG

Impacts

Route to call :

  • POST - ​/v1/proposals/{proposal_id}/available_transports

Output

[

  {
    "id": "2:6fad0:fd955",
    "price": {
      "amount": 2350,
      "currency": "EUR"
    },
    "total_differential_price": {
      "amount": 200,
      "currency": "EUR",
      "is_best_differential_price": false
    },
    "journeys": [
      {
        "way": "INBOUND",
        "total_duration_in_min": 860,
        "travel_sections": [
          {
            "technical_stops": 0,
            "connection_duration_in_min": null,
            "stopover_duration_in_min": null,
            "duration_in_min": null,
            "clubmed_transport": false,
            "cancellation_policy_type": "THEO",
            "departure": {
              "date": "20250307",
              "time": "14:10:00",
              "city": {
                "id": "LON",
                "label": "LONDON"
              },
              "location": {
                "id": "LHR",
                "label": "LONDON-HEATHROW",
                "terminal_code": "5"
              }
            },
            "arrival": {
              "date": "20250308",
              "time": "00:20:00",
              "city": {
                "id": "DOH",
                "label": "DOHA"
              },
              "location": {
                "id": "DOH",
                "label": "DOHA",
                "terminal_code": ""
              }
            },
            "transport": {
              "type": "PLANE",
              "class": "PLANE_ECONOMY",
              "travel_number": "123",
              "vehicle_type": "",
              "company": {
                "operator": {
                  "id": "BA",
                  "label": "BRITISH AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/BA.png",
                  "_links": []
                },
                "exploiter": {
                  "id": "BA",
                  "label": "BRITISH AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/BA.png",
                  "_links": []
                }
              },
              "baggage": {
 !               "weight": "55.7",
+              "unit":"LBS",
!               "quantity": "2"
              },
              "fare_class": "O"
            },
            "flight_code": "TO07E2"
          },
          {
            "technical_stops": 0,
            "connection_duration_in_min": null,
            "stopover_duration_in_min": 150,
            "duration_in_min": null,
            "clubmed_transport": false,
            "cancellation_policy_type": "THEO",
            "departure": {
              "date": "20250308",
              "time": "02:50:00",
              "city": {
                "id": "DOH",
                "label": "DOHA"
              },
              "location": {
                "id": "DOH",
                "label": "DOHA",
                "terminal_code": ""
              }
            },
            "arrival": {
              "date": "20250308",
              "time": "08:30:00",
              "city": {
                "id": "SEZ",
                "label": "SEYCHELLES"
              },
              "location": {
                "id": "SEZ",
                "label": "SEYCHELLES",
                "terminal_code": "I"
              }
            },
            "transport": {
              "type": "PLANE",
              "class": "PLANE_ECONOMY",
              "travel_number": "678",
              "vehicle_type": "BOEING 777-200LR",
              "company": {
                "operator": {
                  "id": "QR",
                  "label": "QATAR AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/QR.png",
                  "_links": []
                },
                "exploiter": {
                  "id": "QR",
                  "label": "QATAR AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/QR.png",
                  "_links": []
                }
              },
              "baggage": {
 !               "weight": "55.7",
+              "unit":"LBS",
!               "quantity": "2"
              },
              "fare_class": "O"
            },
            "flight_code": "TO07E2"
          }
        ]
      },
      {
        "way": "OUTBOUND",
        "total_duration_in_min": 965,
        "travel_sections": [
          {
            "technical_stops": 0,
            "connection_duration_in_min": null,
            "stopover_duration_in_min": null,
            "duration_in_min": null,
            "clubmed_transport": false,
            "cancellation_policy_type": "THEO",
            "departure": {
              "date": "20250315",
              "time": "18:10:00",
              "city": {
                "id": "SEZ",
                "label": "SEYCHELLES"
              },
              "location": {
                "id": "SEZ",
                "label": "SEYCHELLES",
                "terminal_code": "I"
              }
            },
            "arrival": {
              "date": "20250315",
              "time": "22:00:00",
              "city": {
                "id": "DOH",
                "label": "DOHA"
              },
              "location": {
                "id": "DOH",
                "label": "DOHA",
                "terminal_code": ""
              }
            },
            "transport": {
              "type": "PLANE",
              "class": "PLANE_ECONOMY",
              "travel_number": "679",
              "vehicle_type": "BOEING 777-200LR",
              "company": {
                "operator": {
                  "id": "QR",
                  "label": "QATAR AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/QR.png",
                  "_links": []
                },
                "exploiter": {
                  "id": "QR",
                  "label": "QATAR AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/QR.png",
                  "_links": []
                }
              },
              "baggage": {
                ! "weight": "55.7",
               + "unit":"LBS",
                !  "quantity": "2"
              },
              "fare_class": "O"
            },
            "flight_code": "TO07E2"
          },
          {
            "technical_stops": 0,
            "connection_duration_in_min": null,
            "stopover_duration_in_min": 225,
            "duration_in_min": null,
            "clubmed_transport": false,
            "cancellation_policy_type": "THEO",
            "departure": {
              "date": "20250316",
              "time": "01:45:00",
              "city": {
                "id": "DOH",
                "label": "DOHA"
              },
              "location": {
                "id": "DOH",
                "label": "DOHA",
                "terminal_code": ""
              }
            },
            "arrival": {
              "date": "20250316",
              "time": "06:15:00",
              "city": {
                "id": "LON",
                "label": "LONDON"
              },
              "location": {
                "id": "LHR",
                "label": "LONDON-HEATHROW",
                "terminal_code": "5"
              }
            },
            "transport": {
              "type": "PLANE",
              "class": "PLANE_ECONOMY",
              "travel_number": "5943",
              "vehicle_type": "BOEING 777-200/300",
              "company": {
                "operator": {
                  "id": "QR",
                  "label": "QATAR AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/QR.png",
                  "_links": []
                },
                "exploiter": {
                  "id": "BA",
                  "label": "BRITISH AIRWAYS",
                  "logo": "https://ns.clubmed.com/it/2013/img/be/airline_logos/BA.png",
                  "_links": []
                }
              },
              "baggage": {
!               "weight": "55.7",
+              "unit":"LBS",
!               "quantity": "2"
              },
              "fare_class": "O"
            },
            "flight_code": "TO07E2"
          }
        ]
      }
    ],
    "is_applied_transportation": false
  }
]