Ir al contenido

Listar rutas del equipo

GET
/teams/{teamId}/routes
curl --request GET \
--url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/routes \
--header 'Authorization: Bearer <token>'

Lista todas las rutas de un equipo

teamId
required
string format: uuid

ID del equipo (UUID)

Lista de rutas

Media typeapplication/json
object
routes
Array<object>
object
id
string format: uuid
teamId
string format: uuid
name
string
description
string
nullable
clientId
string format: uuid
nullable
clientName
string
nullable
stops
Array<object>
object
order
required
integer
routePointId
required
string format: uuid
routePointName
string
nullable
address
string
nullable
estimatedArrival
string
nullable
estimatedDuration

Duration in minutes

integer
<= 1440
notes
string
nullable <= 500 characters
totalDistance

Distance in km

number
nullable
estimatedDuration

Duration in minutes

integer
nullable
isActive
boolean
default: true
createdAt
string format: date-time
Example
{
"routes": [
{
"isActive": true
}
]
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}