---
uuid: 626ba5a8-941f-423b-b979-4e2738edfff7
date_created: 2025-07-05T08:07:49.887Z
date_updated: 2026-03-11T09:25:34.696Z
outdated: true
end_of_support_date: 2023-09-16
routes: 
  - GET /v1/proposals/{proposal_id}/transport_details
---

# Impact migration of the route GET /v1/proposals/{proposal\_id}/transport\_details

## Context

Upgrade from **GET** - `/v1/proposals/{proposal_id}/transport_details` to **GET** -  `/v3/proposals/{proposal_id}/transport_details`

⭐  **Key benefits :** Having the same values in `travel_sections.transport.class`  like all our API endpoints
ℹ️ Values of travel\_sections.transport.class field become: PLANE\_ECONOMY, PLANE\_ECONOMY\_PLUS, PLANE\_BUSINESS, PLANE\_PREMIUM, PLANE\_FIRST, TRAIN\_FIRST, TRAIN\_SECOND instead of ECO, BUS, FIR, 1CL, 2CL, EC+, DIB, DIV, PCR, PRE

***

> As a BE B2B Dev
> I want to be able to use the same mapping for all transport\_class fields
> In order to avoid multiple mappings for the same fields in several endpoints

***

⭐  **Key benefits :** Having the cancellation\_policy\_type one level lower: under each travel\_section

***

> As a BE B2B Dev
> I want to retrieve the cancellation\_policy\_type of my transportation under each travel\_section
> In order to display it on the front-end

***

## Impacts

Route to call :

* **GET** - `/v3/proposals/{proposal_id}/transport_details`

❗ `travel_sections.transport.class` is a string having a new mapping (new values names): PLANE\_ECONOMY, PLANE\_ECONOMY\_PLUS, PLANE\_BUSINESS, PLANE\_PREMIUM, PLANE\_FIRST, TRAIN\_FIRST, TRAIN\_SECOND

❗ `travel_sections.cancellation_policy_type` is an ENUM \[ AUCUN, THEO, WEBTHEO, NDC ]

**Model**

| Champ API                                            | Définition                                                                  | Example        | Type                                 |
| ---------------------------------------------------- | --------------------------------------------------------------------------- | -------------- | ------------------------------------ |
| travel\_sections.transport.class                     | Transport information indicating its class                                  | PLANE\_ECONOMY | String                               |
| \[0].travel\_sections\[0].cancellation\_policy\_type | Used to determine which cancellation policy is to be applied to this travel | THEO           | ENUM: \[ AUCUN, THEO, WEBTHEO, NDC ] |

**GET** */v3/proposals/{proposal\_id}/transport\_details*

**Output Became**

```diff
[
  {
    "way": "INBOUND",
    "total_duration_in_min": 745,
-    "cancellation_policy_type": "THEO",
    "travel_sections": [
      {
        "departure": {
          "city": {
            "id": "PAR",
            "label": "PARIS"
          },
          "date": "20160812",
          "time": "17:00:00",
          "location": {
            "id": "CDG",
            "label": "PARIS-ROISSY CDG",
            "terminal_code": "2A"
          }
        },
        "arrival": {
          "city": {
            "id": "PAR",
            "label": "PARIS"
          },
          "date": "20160812",
          "time": "17:00:00",
          "location": {
            "id": "CDG",
            "label": "PARIS-ROISSY CDG",
            "terminal_code": "2A"
          }
        },
        "technical_stops": 0,
+       "cancellation_policy_type": "THEO", 
        "connection_duration_in_min": 130,
        "stopover_duration_in_min": 130,
        "transport": {
          "type": "PLANE",
          "company": {
            "operator": {
              "id": "SQ",
              "label": "SINGAPORE AIRLINES",
              "logo": "http://www.airfrance.fr/logo"
            },
            "exploiter": {
              "id": "SQ",
              "label": "SINGAPORE AIRLINES",
              "logo": "http://www.airfrance.fr/logo"
            }
          },
          "travel_number": "SQ1234",
          "baggage": {
            "quantity": "2",
            "weight": "23kg"
          },
          "vehicle_type": "BOEING 747",
+          "class": "PLANE_ECONOMY",
          "reference": "SQ1234",
          "fare_class": "U"
        },
        "duration_in_min": 250,
        "clubmed_transport": false,
        "flight_code": "THEO9E"
      }
    ]
  }
]
```
