Ir al contenido

Listar viajes del equipo

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

Lista todos los viajes de un equipo

teamId
required
string format: uuid

ID del equipo (UUID)

Lista de viajes

Media typeapplication/json
object
trips
Array<object>
object
id
string format: uuid
teamId
string format: uuid
status

Estado del viaje

string
Allowed values: NO_INICIADO EN_PROCESO FINALIZADO_A_TIEMPO FINALIZADO_CON_RETRASO CANCELADO
routeId
string format: uuid
nullable
routeName
string
nullable
clientId
string format: uuid
nullable
clientName
string
nullable
driverId
string format: uuid
nullable
driverName
string
nullable
driverPhone
string
nullable
vehicleId
string format: uuid
nullable
vehiclePlate
string
nullable
startDate
string format: date-time
nullable
endDate
string format: date-time
nullable
actualEndDate
string format: date-time
nullable
cargoDescription
string
nullable
cargoWeight

Weight in kg

number
nullable
cargoVolume

Volume in m3

number
nullable
cost
number
nullable
revenue
number
nullable
notes
string
nullable
specialInstructions
string
nullable
cancelledAt
string format: date-time
nullable
cancelledBy
string
nullable
createdAt
string format: date-time
Example
{
"trips": [
{
"status": "NO_INICIADO"
}
]
}

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"
}