{
    "id": 3809,
    "package_code": "ONE",
    "title": "Terms and conditions",
    "my_view": {
        "code": "TXnmRVrt",
        "title": "Un view completo con fechas",
        "subtitle": "",
        "type_view": "destination",
        "thematic": null,
        "description": "",
        "is_photoview": false,
        "is_videoview": true,
        "agency": {
            "id": 8,
            "name": "Viewtravel Custom"
        },
        "user": {
            "id": 615,
            "first_name": "Lenin",
            "last_name": "Espinoza Cueva",
            "email": "[email protected]",
            "username": "leninesc"
        },
        "price": null,
        "currency": null,
        "reservation_number": null,
        "ticket_issued": null,
        "theme": {
            "id": 1,
            "name": "Viewtravel Version 3"
        },
        "is_active": true,
        "is_new": true,
        "edit_url": "<https://view-travel.com/allinone/edit/TXnmRVrt>",
        "url_mytrip": "<https://view-travel.com/mytrip/TXnmRVrt>"
    },
    "transport_type": {
        "id": 25,
        "code": "conditions",
        "name": "Condiciones",
        "icono": ".",
        "imagen": null,
        "icon": "<svg class=\\"w-4 h-4\\" xmlns=\\"<http://www.w3.org/2000/svg\\>" viewBox=\\"0 0 384 512\\"><path d=\\"M192 0c-41.8 0-77.4 26.7-90.5 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64l-37.5 0C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM72 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm104-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM72 368a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm88 0c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z\\"/></svg>",
        "icono_rojo": null,
        "is_old": false,
        "divider": false,
        "is_hidden": false,
        "orden": 24,
        "new_order": 20
    },
    "order": 1,
    "dnd_order": 1,
    "is_active": true,
    "description": "Description of terms and conditions",
    "entity_type": 0,
    "term_service_types": [
        {
            "id": 6,
            "name": "Crucero"
        },
        .
        .
        .
    ],
    "terms": null,
    "slug": "terminos-y-condiciones",
    "user": {
        "id": 615,
        "first_name": "Lenin",
        "last_name": "Espinoza Cueva",
        "email": "[email protected]",
        "username": "leninesc"
    }
}

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 “conditions”. List of parameters for creating the transports. The conditions 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 “conditions” see list of transport type codes
title YES string Title to display in the budget
description Only when you want to add terms and conditions directly string Terms and conditions
terms Only when you want to add terms and conditions from the existing database integer Terms ID. See list of terms
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":"conditions",
    "title": "Terms and conditions",
    "description": "Description of terms and conditions"
}

Note: If you want to add terms and conditions from the database, add the terms parameter.

Response to the request