Documentation
getoptionals
Returns the optional services available for a tour (extras/add-ons).
endpoints
production
https://newapi.vpttours.com/getoptionals
request parameters
brochure
[int][required]
Brochure code.
code
[int][required]
Tour code.
language
[int]
Language code in which we want to make the request.
departure
[string][optional]
Departure identifier (if required by the API).
date
[date][optional]
Selected date for the tour (YYYY-MM-DD).
pax
[int][optional]
Number of passengers (if the API filters optionals by headcount).
response data
[optional]
Array of optionals available for the given tour. Each item typically contains:
- code
(string) → optional service code
- name
(string) → label/description
- price
(number) → unit price
- currency
(string) → currency code
- mandatory
(bool) → whether the optional is compulsory
- notes
(string) → extra information
request example
{
"login": "YOUR_LOGIN",
"password": "YOUR_PASSWORD",
"brochure": 123,
"code": 456,
"language": 1
}
response example
[
{
"code": "DINNER",
"name": "Extra dinner package",
"price": 45.00,
"currency": "EUR",
"mandatory": false,
"notes": "Available on selected dates"
}
]
notes
- Confirm exact required/optional parameters with the official spec (Notion). Replace or remove the placeholder fields (
departure
,date
,pax
) if not applicable. - Authentication fields (
login
,password
) are sent in the body as usual.