Use Case: Display Visa Options Using Trips v3
You can use our /trips v3
endpoint to determine & display visa options. You can find the guide on retrieving and displaying data from this endpoint in our Tutorial: Retrieving the Requirements for a Trip.
The API reference and the Postman collection are available.
The endpoint returns all travel requirements. This means that if you only need to read visa requirements, you must do so recursively.
Here is a link to an example of such implementation using Stackblitz.
In many examples, the data.attributes.traveller.vaccinations
is set to the following object:
"vaccinations": [
{
"type": "COVID_19",
"status": "FULLY_VACCINATED"
}
]
However, you can go ahead and ignore this field and not include the key/value pair in the payload.
Updated 11 months ago