Documentation
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}}"
},
"requestdata": {
"brochure": 185,
"code": 6971,
"language": "1"
}
}
Response
Response fields
- catalog [int] β Catalog code the circuit belongs to.
- brochure [int] β Brochure code the circuit belongs to.
- code [int] β Circuit code.
- name [string] β Circuit name.
- minprice [int] β Minimum price per person in double.
- currency [int] β Currency code of the minimum price.
- length [int] β Duration in days.
- rates [array:rate] β Circuit categories.
- supplements [array:supplement] β Supplements of the circuit.
- discounts [array:discount] β Discounts of the circuit.
- departuredates [array:date] β Circuit departure dates.
- hotels [array:service] β Hotels included in the circuit.
- cities [array:city] β Cities the circuit passes through.
- itinerary [array:itineraryline] β Shows the day-by-day itinerary.
- pickups [array:pickup] β Pick-up points.
- foodplan [int] β Returns food plan code, food plan name and codetype.
- trfin / trfout β Transfers (values: additional / included / not included).
- iatacitystart / iatacityend β IATA codes of the starting and ending cities.
Comportamiento
Currently, gettour
also returns the codes of supplements (both optional and included) and discounts applied.
This new tag groups the different types of supplements/discounts under a common concept code.
For example:
codconce
15 groups all supplements related to transfers.codconce
17 groups supplements of meal plan.codconce
4 groups general discounts.
β οΈ Important: This codconce
must not be confused with the code used when sending a quotation (bookprice
).
In that case, what must be used is the codsuple
(code) of each specific supplement or discount.
codconce
is only a grouping code for concepts; it does not replace the individual code of each item.