{"openapi":"3.1.0","info":{"title":"Buy Vignette Pass — route vignette API","version":"1.0.0","description":"Which motorway vignettes a car trip in Europe needs, and what they cost. Covers Austria, Czech Republic, Slovakia, Hungary, Slovenia, Romania, Bulgaria and Switzerland, and says which countries on the route charge tolls without a vignette. Free and read-only. Prices are the operator's official price plus Buy Vignette Pass's service fee — an independent reseller, not the toll operator; each vignette can also be bought from its operator without the fee.","contact":{"email":"orders@buyvignettepass.com","url":"https://buyvignettepass.com"}},"servers":[{"url":"https://buyvignettepass.com"}],"paths":{"/api/v1/route":{"get":{"operationId":"getRouteVignettes","summary":"Vignettes needed for a car trip between two places","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"},"description":"Start: a city from /api/v1/cities (e.g. Munich, Praha) or an ISO 3166-1 alpha-2 country code (e.g. DE)."},{"name":"to","in":"query","required":true,"schema":{"type":"string"},"description":"Destination: a city or an ISO country code."},{"name":"start","in":"query","schema":{"type":"string","format":"date"},"description":"First day of the trip, YYYY-MM-DD. Default: tomorrow."},{"name":"end","in":"query","schema":{"type":"string","format":"date"},"description":"Last day of the trip, YYYY-MM-DD. Default: start + 9 days (a 10-day trip)."},{"name":"lang","in":"query","schema":{"type":"string","enum":["en","de","cs","pl","ru","uk"]},"description":"Language of the order page in orderUrl."}],"responses":{"200":{"description":"The corridor, the vignettes with prices, and caveats.","content":{"application/json":{"schema":{"type":"object","properties":{"route":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"vignetteRequired":{"type":"boolean"}}}},"trip":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":"string"},"days":{"type":"integer"},"assumed":{"type":"boolean"}}},"vignettes":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"name":{"type":"string"},"product":{"type":"string"},"coverDays":{"type":"integer"},"officialPriceEur":{"type":"number","description":"Euros, two decimals."},"serviceFeeEur":{"type":"number","description":"Euros, two decimals."},"totalEur":{"type":"number","description":"Euros, two decimals."}}}},"totalEur":{"type":"number","description":"Euros, two decimals."},"notes":{"type":"array","description":"Tolls on the route that are not vignettes, and other caveats. Relay these.","items":{"type":"object","properties":{"code":{"type":"string"},"country":{"type":"string"},"text":{"type":"string"}}}},"assumptions":{"type":"array","items":{"type":"string"}},"orderUrl":{"type":"string","description":"Order page with the route pre-filled."},"provider":{"type":"object"}}}}}},"400":{"description":"Unknown city or invalid dates; the message says which."}}}},"/api/v1/countries":{"get":{"operationId":"listVignetteCountries","summary":"Every vignette country with its products and prices","responses":{"200":{"description":"Countries and products."}}}},"/api/v1/cities":{"get":{"operationId":"listCities","summary":"Cities accepted by name in /api/v1/route","responses":{"200":{"description":"City names, countries and aliases."}}}}}}