getreservationpaxs {.u-pearl}

Returns all passengers associated with a reservation, including personal data and transfer-in / transfer-out flight information when available.

endpoints {.u-pearl}

production {.u-lightPearl}

https://newapi.vpttours.com/getreservationpaxs

request parameters {.u-pearl}

reservationcode {.u-red}
[int][required] {.u-lightPearl}

Reservation locator.


request example {.u-pearl}

{
    "logindata": {
        "useremail": "user@agency.com",
        "userpass": "********",
        "integrator_token": "********"
    },
    "requestdata": {
        "reservationcode": 123456
    }
}

response data {.u-pearl}

Returns an array of passengers, one entry per passenger and service.

A reservation with several services (for example a tour plus an optional) returns the passengers once for each service, with the same id in each one. Use serviceloc to tell them apart.

id {.u-red}
[int] {.u-lightPearl}

Passenger identifier inside the service.

It is not unique inside the reservation: the same id can appear in several services. The pair serviceloc + id identifies the passenger.

Use this value as paxid when calling modreservationpax.

Do not use the passenger array position as the passenger identifier.


serviceloc {.u-red}
[int] {.u-lightPearl}

Locator of the service the passenger belongs to (the same serviceloc returned by booktour).

Send it together with paxid when calling modreservationpax.


name {.u-pearl}
[string] {.u-lightPearl}

Passenger first name.


surname {.u-pearl}
[string] {.u-lightPearl}

Passenger surname.


passport {.u-pearl}
[string] {.u-lightPearl}

Passport or document number.


doc_fecha_exp {.u-pearl}
[date:yyyy-mm-dd|null] {.u-lightPearl}

Document issue date.


doc_fecha_cad {.u-pearl}
[date:yyyy-mm-dd|null] {.u-lightPearl}

Document expiration date.


nationality {.u-pearl}
[string:2|null] {.u-lightPearl}

Passenger nationality code.

Example: ES.


email {.u-pearl}
[string|null] {.u-lightPearl}

Passenger email address.


phone {.u-pearl}
[string|null] {.u-lightPearl}

Passenger phone number.


birthdate {.u-pearl}
[date:yyyy-mm-dd|null] {.u-lightPearl}

Passenger birth date.


age {.u-pearl}
[int|null] {.u-lightPearl}

Passenger age.


transferin {.u-pearl}
[object|null] {.u-lightPearl}

Passenger arrival flight data.

Fields:


transferout {.u-pearl}
[object|null] {.u-lightPearl}

Passenger departure flight data.

Fields:


response example {.u-pearl}

Reservation with a tour (123456000) and an optional (123456001) for the same passenger:

[
    {
        "id": "1",
        "serviceloc": "123456000",
        "name": "Test name",
        "surname": "Test surname",
        "passport": "P123456",
        "doc_fecha_exp": null,
        "doc_fecha_cad": null,
        "nationality": null,
        "email": null,
        "phone": null,
        "birthdate": null,
        "age": "30",
        "transferin": {
            "airport": "MAD",
            "aircompany": "IB",
            "flightnumber": "1234",
            "flighttime": "2027-12-12 14:35"
        },
        "transferout": null
    },
    {
        "id": "1",
        "serviceloc": "123456001",
        "name": "Test name",
        "surname": "Test surname",
        "passport": "P123456",
        "doc_fecha_exp": null,
        "doc_fecha_cad": null,
        "nationality": null,
        "email": null,
        "phone": null,
        "birthdate": null,
        "age": "30",
        "transferin": null,
        "transferout": null
    }
]