Migration of the route POST /v3/proposals/{proposal_id}/transport_details to POST /v4/proposals/{proposal_id}/transport_details

  • Outdated
  • June 1, 2025
  • 1 related route

Context

Upgrade from POST - ​/v3/proposals/{proposal_id}/transport_details to POST - ​/v4/proposals/{proposal_id}/transport_details

4 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
  • The dates are now in ISO format YYYY-MM-DD

Impacts

Route to call :

  • POST - ​​/v4/proposals/{proposal_id}/transport_details

Output

[
  {
    "way": "INBOUND",
    "total_duration_in_min": 120,
    "travel_sections": [
      {
        "attendees": [
          {
            "id": "A",
            "ticket_number": "147-5250548512",
            "status": "VALIDATED",
            "reservation_number": "ZTG2MO",
            "pnr": "UP7XZH"
          }
        ],
        "departure": {
          "city": {
            "id": "PAR",
            "label": "PARIS"
          },
          "location": {
            "id": "CDG",
            "label": "PARIS-ROISSY CDG",
            "terminal_code": "2A"
          },
          "date": "2022-04-15",
          "time": "17:00:00"
        },
        "arrival": {
          "city": {
            "id": "PAR",
            "label": "PARIS"
          },
          "location": {
            "id": "CDG",
            "label": "PARIS-ROISSY CDG",
            "terminal_code": "2A"
          },
          "date": "2022-04-15",
          "time": "17:00:00"
        },
        "transport": {
          "type": "PLANE",
          "class": "PLANE_ECONOMY",
          "company": {
            "operator": {
              "id": "SQ",
              "label": "SINGAPORE AIRLINES",
              "logo": "http://www.airfrance.fr/logo",
              "_links": [
                {
                  "rel": "self",
                  "method": "GET",
                  "href": "https://api.clubmed.com/products",
                  "label": "A label"
                }
              ]
            },
            "exploiter": {
              "id": "SQ",
              "label": "SINGAPORE AIRLINES",
              "logo": "http://www.airfrance.fr/logo",
              "_links": [
                {
                  "rel": "self",
                  "method": "GET",
                  "href": "https://api.clubmed.com/products",
                  "label": "A label"
                }
              ]
            }
          },
          "travel_number": "SQ1234",
          "baggage": {
            "quantity": 2,
!           "weight": 23,
+           "unit": "KG"
          },
          "vehicle_type": "BOEING 747",
          "reference": "SQ1234",
          "fare_class": "U"
        },
        "clubmed_transport": false,
        "flight_code": "THEO9E",
        "cancellation_policy_type": "THEO",
        "technical_stops": 0,
        "connection_duration_in_min": 130,
        "stopover_duration_in_min": 130
      }
    ]
  }
]