gettour

Returns the complete information of the tour.

πŸ’‘ Full representation of a circuit. This is the main product that can be booked using this system considering a brochure and a departure date. We can identify a circuit through its itinerary code and brochure code. The same circuit can be repeated in different brochures.

We must distinguish two types of itineraries:

Tourist circuit (excursions): Short trip made for leisure, sport or study.

Circuit: An itinerary is a closed trip, usually predefined, that returns to the starting point when it ends.

Endpoints

https://newapi.vpttours.com/gettour

Postman request

{
  "logindata": {
    "useremail": "{{vpt_login}}",
    "userpass": "{{vpt_pass}}",
    "integrator_token": "XXXXXX"
  },
  "requestdata": {
    "brochure": 185,
    "code": 6971,
    "language": "1"
  }
}

Response

See responsegettour.json


Response fields

Circuit optionals

The optionals node returned by gettour is informational only.

Do not use the brochure or code values from this node to book a circuit optional.

To obtain the booking data for an optional service, use getoptionals.

For circuit optional reservations, use the values returned by the same getoptionals item:

If the same optional service appears more than once in getoptionals, treat each result independently and do not combine brochure, code, date or price values from different results.


Comportamiento

gettour returns supplements and discounts with a comportamiento field.

The value returned in comportamiento corresponds to the internal codconce: a grouping or concept code used to classify related supplements and discounts.

This field must not be confused with the specific supplement code.

For example:

{
  "code": "123",
  "comportamiento": "15"
}

In this example, 123 is the specific supplement code, while 15 is the concept/grouping code.

Likewise, a supplement with code: "15" is not related to another supplement simply because that other supplement has comportamiento: "15".

Existing integrations that identify specific supplements by code must continue using that field.

For example:

This behavior has not changed.

Optional and automatic supplements

The isoptional field indicates whether a supplement requires explicit selection.

Non-optional supplements may include, for example, single-room supplements, mandatory supplements for specific departure dates or periods, and municipal taxes or similar mandatory charges.

A supplement returned by gettour with isoptional: false does not need to be manually added to the supplements array in getbookprice.

getbookprice applies it automatically when the corresponding conditions are met.

For example:

{
  "code": "594",
  "name": "TASA MUNICIPALES",
  "amount": "70.00",
  "percent": "0.00",
  "isoptional": false,
  "comportamiento": "18"
}

In this case:

iscommissionable

The iscommissionable field indicates whether the supplement is commissionable:

This field is informational and does not change the existing supplement logic.

observaciones

The observaciones field contains additional information about the supplement when available.

It is informational, does not participate in the price calculation and does not need to be sent back to the API.

amount and percent

When percent is 0, the configured fixed amount is used.

The number of times an amount is applied cannot be determined from amount alone. It depends on the conditions of the specific supplement, such as passenger eligibility, room occupancy, departure dates or other booking conditions.

For this reason, the definitive price must always be obtained from getbookprice.