[<https://content.view-travel.com/v3/api/transports/>](<https://content.view-travel.com/v3/api/transports/>)
There are a variety of transport types. In this example, we'll take flight. List of parameters for creating the transports. The hotel transport type
| PARAMETERS | MANDATORY | TYPE | VALUES THAT CAN BE TAKEN |
|---|---|---|---|
| my_view | YES | string | view code to which you want to add transports |
| transport_type | YES | string | Transport type code: “hotel” see list of transport type codes |
| arrival | YES | string | City IATA code see list of IATA codes |
| departure_date | NO | string | Flight departure entry in the format "yyyy-mm-dd” |
| arrival_date | NO | string | Flight arrival date in the format "yyyy-mm-dd” |
| hotel | NO | string | Hotel id or hotel code. See list of Hotels |
| room_type | NO | integer | Room_type id: See table Room Type |
| feeding | NO | integer | Feeding id: See table Feeding |
| photo_hotel | NO | integer | |
| video | NO | integer | |
| price | Only when no price package is used | float | Price of your transport |
| other_value | Only when you select room type id 10 | string | New value for “room_type” |
Table Room Type
| ID | NAME |
|---|---|
| 1 | Standard Single Room |
| 2 | Double Standard Room |
| 3 | Double Executive Room |
| 4 | Standard Triple Room |
| 5 | Suite Room |
| 6 | Junior Suite Room |
| 7 | Standard Family Room |
| 8 | Double Room Single Use |
| 9 | Suite Presidencial Room |
| 10 | Others (If you select ID “10” in the transport, pass the “other_value” parameter) |
Table Feeding
| ID | NAME |
|---|---|
| 1 | Accommodation only |
| 2 | Bed and breakfast |
| 3 | Half pension |
| 4 | Full board |
| 5 | All included |
Include in headers
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': Bearer YOUR_TOKEN_REFRESH' ,
}
Parameters to send the request
{
"my_view": "AFBB29B72B0C",
"transport_type":"hotel",
"arrival": "LIM",
"departure_date":"2025-05-21",
"arrival_date":"2025-05-30",
"room_type": 2,
"feeding": 2,
"hotel": "fpH6MJnZyuBf",
"photo_hotel": 367731,
"departure_date": "2025-05-18",
"arrival_date": "2025-05-18",
"price": null,
"order": 1,
"dnd_order": 1,
"comment": null,
"is_active": true,
"video": null,
"description": null,
}
{
"id": 3787,
"package_code": "ONE",
"title": null,
"my_view": {
"code": "AFBB29B72B0C",
},
"arrival": {
"id": 2540,
"code": "LIM",
"name": "Lima",
"country": {
"id": 170,
"code": "PE",
"name": "Peru",
"prefix_code": "51"
},
"citydescription": {
"id": 708,
"short_description": "Lima es la ciudad capital de la República del Perú. Se encuentra situada en la costa central del país, a orillas del océano Pacífico, conformando una extensa y populosa área urbana conocida como Lima Metropolitana, flanqueada por el desierto costero y extendida sobre los valles de los ríos Chillón, Rímac y Lurín. Según el censo peruano de 2007, Lima contaba con más de 7,6 millones de habitantes; mientras que su aglomeración urbana contaba con más de 8,5 millones de habitantes, el 30% de la población peruana, cifras que la convierten en la ciudad más poblada del país."
}
},
"transport_type": {
"id": 15,
"code": "hotel",
"name": "Hotel",
},
"room_type": {
"id": 2,
"nombre": "Hab. Doble Estándar ",
"nombre_corto": "Hab. Doble Estándar "
},
"feeding": {
"id": 2,
"nombre": "Alojamiento y desayuno",
"nombre_corto": null
},
"hotel": {
"id": 124458,
"code": "fpH6MJnZyuBf",
"nombre": "Casa Andina Premium Miraflores",
"slug": "casa-andina-premium-miraflores",
"direccion": "Av La Paz, 463 - Miraflores, Miraflores, Lima 18 Lima, Perú",
"categoria": 5,
"number_stars": "<span class=\\"inline-flex items-baseline\\"><svg aria-hidden=\\"true\\" class=\\"w-5 h-5 text-yellow-400\\" fill=\\"currentColor\\" viewBox=\\"0 0 20 20\\" xmlns=\\"<http://www.w3.org/2000/svg\\>">\\n\\t\\t\\t<title>First star</title>\\n\\t\\t\\t<path d=\\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\\"></path>\\n\\t\\t\\t</svg><svg aria-hidden=\\"true\\" class=\\"w-5 h-5 text-yellow-400\\" fill=\\"currentColor\\" viewBox=\\"0 0 20 20\\" xmlns=\\"<http://www.w3.org/2000/svg\\>">\\n\\t\\t\\t<title>First star</title>\\n\\t\\t\\t<path d=\\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\\"></path>\\n\\t\\t\\t</svg><svg aria-hidden=\\"true\\" class=\\"w-5 h-5 text-yellow-400\\" fill=\\"currentColor\\" viewBox=\\"0 0 20 20\\" xmlns=\\"<http://www.w3.org/2000/svg\\>">\\n\\t\\t\\t<title>First star</title>\\n\\t\\t\\t<path d=\\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\\"></path>\\n\\t\\t\\t</svg><svg aria-hidden=\\"true\\" class=\\"w-5 h-5 text-yellow-400\\" fill=\\"currentColor\\" viewBox=\\"0 0 20 20\\" xmlns=\\"<http://www.w3.org/2000/svg\\>">\\n\\t\\t\\t<title>First star</title>\\n\\t\\t\\t<path d=\\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\\"></path>\\n\\t\\t\\t</svg><svg aria-hidden=\\"true\\" class=\\"w-5 h-5 text-yellow-400\\" fill=\\"currentColor\\" viewBox=\\"0 0 20 20\\" xmlns=\\"<http://www.w3.org/2000/svg\\>">\\n\\t\\t\\t<title>First star</title>\\n\\t\\t\\t<path d=\\"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z\\"></path>\\n\\t\\t\\t</svg></span>"
},
"photo_hotel": {
"id": 367731,
.
.
.
},
"departure_date": "2025-05-18",
"arrival_date": "2025-05-18",
"price": null,
"order": 1,
"dnd_order": 1,
"comment": null,
"is_active": true,
"name": null,
"video": null,
"description": null,
"supplements": [],
"slug": "3787",
"user": {
"id": 615,
"first_name": "Lenin",
"last_name": "Espinoza Cueva",
"email": "[email protected]",
"username": "leninesc"
}
}
Response to the request