Request urls API | Method POST

[<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 services. List of parameters for creating the transports. The services transport type

PARAMETERS MANDATORY TYPE VALUES THAT CAN BE TAKEN
title NO string Title with which you wish to create the transport
my_view YES string view code to which you want to add transports
transport_type YES string Transport type code “services” see list of transport type codes
arrival YES string City IATA code see list of IATA codes
arrival_date NO string Flight arrival date in the format "yyyy-mm-dd”
arrival_time NO string Flight arrival time in the format "HH:MM”
photo NO integer
video NO integer
description YES string Description with which you want to present the view
price Only when no price package is used float Price of your transport
service YES integer Service ID. See how to search for the service id
entity_type YES integer `1. Service
  1. Transfer
  2. Means of transport` | | dnd_order | NO | integer | To order transports |

Include in headers

headers: {
		'Content-Type': 'application/json',
    'Accept': 'application/json',
    'Authorization': Bearer YOUR_TOKEN_REFRESH' ,
}

Parameters to send the request and perform a post method

{
    "my_view": "TXnmRVrt",
    "transport_type":"services",
    "title": "Title of the service",
    "arrival": "LIM",
    "service": 2346,
    "photo": 1490738,
    "description": "The description of the service.",
    "arrival_date":"2025-05-30",
    "arrival_time":"15:30",
    "entity_type": 1,
}

Response to the request

{
		"id": 4334,
		"package_code": "ONE",
		"title": null,
		"my_view": {
				"code": "TXnmRVrt",
        "title": "Un view completo con fechas",
        .
        .
        .
    },
    "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."
         }
    },
    "photo": {
		    "id": 1490738,
		    "foto": "<https://staticfiles.view-travel.com/destinos/inspiravia/photos/lima_peruthe_plaza_de_armas_de_lima_by_day_8444360764-s.jpg>",
		    "foto_mediana": "<https://staticfiles.view-travel.com/destinos/inspiravia/photos/lima_peruthe_plaza_de_armas_de_lima_by_day_8444360764-m.jpg>",
		    "foto_grande": "<https://staticfiles.view-travel.com/destinos/inspiravia/photos/lima_peruthe_plaza_de_armas_de_lima_by_day_8444360764-l.jpg>"
    },
    "transport_type": {
		    "id": 23,
		    "code": "services",
		    "name": "Servicios",
        .
        .
        .
     },
     "arrival_date":"2025-05-30",
     "arrival_time":"15:30",
     "price": null,
     "order": 1,
     "dnd_order": 4,
     "is_active": true,
     "name": null,
     "service": {
		     "id": 1490738,
		     .
		     .
		     .
     },
     "video": {
		     "id": 46442,
		     "user": {
				     "id": 41,
				     "first_name": "oscar",
				     "last_name": "guiu asensio",
				     "email": "[email protected]",
				     "username": "oscar"
          },
          "title": "Lima",
          "code": "4Bn537mO7CDc",
          "poster": "<https://staticfiles.view-travel.com/posters/inspiravia/54fb40b1693a45f182370d317712163d.png>",
           "is_view": true,
           "agencia": null
     },
     "description": "The description of the service.",
     "entity_type": 3,
     "slug": "4334",
     "user": {
		     "id": 615,
		     "first_name": "Lenin",
		     "last_name": "Espinoza Cueva",
		     "email": "[email protected]",
		     "username": "leninesc"
    }
}