Skip to main content

Get Mission Details

Retrieve specific mission information or get the last recorded mileage for a vehicle.

GET /mision/

Get a specific mission with stops and invoices included.

Path Parameters

id
integer
required
ID of the mission to retrieve.

Response

success
boolean
Indicates if the request was successful.
message
string
Response message: “Misión obtenida exitosamente”
data
object
The mission object with complete details including stops and invoices.
curl -X GET "https://api.example.com/mision/1"
{
  "success": true,
  "message": "Misión obtenida exitosamente",
  "data": {
    "idMision": 1,
    "idSolicitud": 1,
    "idVehiculoAsignado": 1,
    "idMotoristaAsignado": 5,
    "idLugarOrigen": 1,
    "idLugarDestino": 2,
    "descripcion": "Traslado de personal al aeropuerto",
    "fechaProgramada": "2025-06-15",
    "horaSalidaProgramada": "08:00:00",
    "horaLlegadaEstimada": "09:30:00",
    "kilometrajeInicio": 45230,
    "kilometrajeFin": 45450,
    "kilometrajeRecorrido": 220,
    "combustibleInicialGalones": 12.5,
    "combustibleFinalGalones": 8.0,
    "combustibleConsumidoGalones": 4.5,
    "observaciones": "Llevar documentos",
    "incidencias": "Sin novedad",
    "idEstadoMision": 5,
    "codigoEstado": "COMPLETADA",
    "fechaHoraInicio": "2025-06-15 08:05:30",
    "fechaHoraFin": "2025-06-15 09:45:20",
    "paradas": [
      {
        "idMisionParada": 1,
        "idLugarDestino": 2,
        "numeroParada": 1,
        "descripcion": "Aeropuerto Internacional",
        "esParadaFinal": true,
        "fechaHoraLlegadaEstimada": "2025-06-15 09:30:00",
        "fechaHoraLlegadaReal": "2025-06-15 09:28:15"
      }
    ],
    "facturas": []
  }
}

GET /mision/kilometraje/

Get the last recorded mileage for a vehicle by license plate.

Path Parameters

placa
string
required
License plate of the vehicle.

Response

success
boolean
Indicates if the request was successful.
message
string
Response message: “Último kilometraje obtenido exitosamente”
data
object
Object containing the vehicle information and last mileage.
curl -X GET "https://api.example.com/mision/kilometraje/ABC123"
{
  "success": true,
  "message": "Último kilometraje obtenido exitosamente",
  "data": {
    "placa": "ABC123",
    "idVehiculo": 1,
    "ultimoKilometraje": 45450
  }
}

Build docs developers (and LLMs) love