origemstringRequiredPostal code (with or without a hyphen) or departure city name/address.
minLength3maxLength150Parameters, data structure and responses from the versioned contract.
/vale-pedagio/roteirizarTechnical descriptions are translated from the versioned contract. Original identifiers and JSON are preserved; data examples are omitted.
Calculates the road route between origin and destination, identifying toll plazas along the way, individual toll charges for the specified axle count, and consolidated costs by route type (planejada, estendida, and customizada).
To specify the path (a particular highway or a route from your route planner), provide pontos_parada — intermediate cities or coordinates in trip order. The operator routes through these points and returns the toll plazas; purchase (/vale-pedagio/comprar) uses the selected route's toll plazas, not its geometry.
[
{
"oauth2": []
},
{
"chaveApi": []
}
]No parameters declared for this operation.
Required
application/jsonorigemstringRequiredPostal code (with or without a hyphen) or departure city name/address.
minLength3maxLength150destinostringRequiredPostal code (with or without a hyphen) or destination city name/address.
minLength3maxLength150eixosintegerRequiredTotal axle count of the commercial vehicle or vehicle combination.
minimum2maximum10placastring | nullOptionalCommercial vehicle license plate (Mercosur or legacy Brazilian format).
maxLength10modalidadestring | nullOptionalRequested route option (planejada: optimized direct route; estendida: route allowing detours; customizada: specific toll plazas).
"planejada" · "estendida" · "customizada"pontos_paradaarray | nullOptionalIntermediate waypoints, in the order the vehicle visits them, between origem and destino. The operator does not accept a polyline: the route is defined by waypoints. Each waypoint can be a city (cidade, in "City, State" format) or a latitude/longitude pair in decimal degrees (for example, relevant vertices of your own route). If a waypoint includes both a city and coordinates, the city takes precedence. Use this field to route through a specific highway or reproduce a route from your routing engine. Without this field, the operator chooses the route between origin and destination.
maxItems20tipo_rotastring | nullOptionalOperator's criterion for determining the main route between the points.
"mais_rapida" · "mais_curta"200 HTTP ResponseRoutes and toll charges calculated successfully
401 HTTP ResponseUnauthenticated (autenticacao): missing, invalid or expired credentials, including an API key used in the wrong environment. A sandbox key is not valid in production, nor a production key in the sandbox; the error message indicates the expected environment.
429 HTTP ResponseRequest limit exceeded (limite_requisicoes). Wait for the interval specified in the Retry-After header before retrying. This may be a limit forwarded from the provider or FleetPay's own anti-abuse limit, counted per authenticated company and route group, with a short window for bursts and a long window for slower automated traffic. Limits are intentionally generous: genuine integrations, including large batches processed at once, should remain well below them. If yours reaches a limit, contact FleetPay.
{
"tags": [
"Vale-Pedágio (VPO)"
],
"summary": "Roteirizar trajeto e calcular tarifas de pedágio",
"operationId": "roteirizarValePedagio",
"description": "Calcula o trajeto rodoviário entre origem e destino, identificando as praças de pedágio no percurso,\nvalores tarifários unitários para a quantidade de eixos informada e os custos consolidados por modalidade\nde rota (`planejada`, `estendida` e `customizada`).\n\nPara forçar o trajeto (rodovia específica, rota do seu roteirizador), informe `pontos_parada` — cidades\nou coordenadas intermediárias, na ordem da viagem. A operadora traça a rota por esses pontos e devolve as\npraças; a compra (`/vale-pedagio/comprar`) usa as praças da rota escolhida, não a geometria.\n",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CotarVpoRequest"
}
}
}
},
"responses": {
"200": {
"description": "Rotas e tarifas de pedágio calculadas com sucesso",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CotarVpoResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/Erro400"
},
"401": {
"$ref": "#/components/responses/Erro401"
},
"403": {
"$ref": "#/components/responses/Erro403"
},
"429": {
"$ref": "#/components/responses/Erro429"
},
"500": {
"$ref": "#/components/responses/Erro500"
}
},
"method": "POST",
"path": "/vale-pedagio/roteirizar",
"parameters": []
}