Get Driver Profile
GET /conductor/get_profile.php
Retrieve complete driver profile including license and vehicle information.
Query Parameters
Response
Complete driver profile
Whether driver is approved to operate
Rejection reason if not approved
Approval timestamp (ISO 8601)
Driver’s license information
Request Example
curl -X GET "https://76.13.114.194/conductor/get_profile.php?conductor_id=25" \
-H "Accept: application/json"
Response Example
{
"success": true,
"profile": {
"id": 10,
"conductor_id": 25,
"nombre_completo": "Juan Carlos Martínez",
"telefono": "+573101234567",
"direccion": "Carrera 50 #30-20",
"aprobado": true,
"motivo_rechazo": null,
"fecha_aprobacion": "2024-02-10T09:00:00.000Z",
"fecha_creacion": "2024-02-01T14:30:00.000Z",
"fecha_actualizacion": "2024-03-15T10:15:00.000Z",
"licencia": {
"numero": "12345678",
"tipo": "C1",
"fecha_emision": "2020-05-15T00:00:00.000Z",
"fecha_expiracion": "2030-05-15T00:00:00.000Z",
"imagen_frente": "https://example.com/licenses/front_12345.jpg",
"imagen_reverso": "https://example.com/licenses/back_12345.jpg"
},
"vehiculo": {
"marca": "Yamaha",
"modelo": "FZ-16",
"anio": 2022,
"placa": "ABC123",
"color": "Negro",
"capacidad_pasajeros": 1,
"tipo": "moto"
}
}
}
Update Driver Profile
POST /conductor/update_profile.php
Update driver profile information.
Request Body
Response
Request Example
curl -X POST https://76.13.114.194/conductor/update_profile.php \
-H "Content-Type: application/json" \
-d '{
"conductor_id": 25,
"nombre_completo": "Juan Carlos Martínez López",
"telefono": "+573109876543",
"direccion": "Calle 40 #25-10"
}'
Submit for Approval
POST /conductor/submit_for_approval.php
Submit driver profile for admin approval after completing all required information.
Request Body
Response
Submission success status
Request Example
curl -X POST https://76.13.114.194/conductor/submit_for_approval.php \
-H "Content-Type: application/json" \
-d '{"conductor_id": 25}'
Response Example
{
"success": true,
"message": "Perfil enviado para aprobación"
}
The driver profile must be complete (personal info, license, and vehicle) before submission.
Get Verification Status
GET /conductor/verification_status.php
Check the current verification/approval status of a driver.
Query Parameters
Response
Verification status details
Rejection reason if rejected
Approval date if approved
Request Example
curl -X GET "https://76.13.114.194/conductor/verification_status.php?conductor_id=25" \
-H "Accept: application/json"
Response Example
{
"success": true,
"status": {
"aprobado": true,
"motivo_rechazo": null,
"fecha_aprobacion": "2024-02-10T09:00:00.000Z"
}
}
Error Responses
See Also