Skip to main content

Get Driver Profile

GET /conductor/get_profile.php
Retrieve complete driver profile including license and vehicle information.

Query Parameters

conductor_id
integer
required
Driver/conductor ID

Response

success
boolean
Operation success status
profile
object
Complete driver profile

Request Example

curl -X GET "https://76.13.114.194/conductor/get_profile.php?conductor_id=25" \
  -H "Accept: application/json"

Response Example

Success
{
  "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

conductor_id
integer
required
Driver ID to update
nombre_completo
string
Full name
telefono
string
Phone number
direccion
string
Home address

Response

success
boolean
Update success status
message
string
Success message
profile
object
Updated profile data

Request Example

cURL
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

conductor_id
integer
required
Driver ID

Response

success
boolean
Submission success status
message
string
Confirmation message

Request Example

cURL
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
{
  "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

conductor_id
integer
required
Driver ID

Response

success
boolean
Request success status
status
object
Verification status details

Request Example

cURL
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

404
Not Found
Driver not found
400
Bad Request
Invalid parameters

See Also

Build docs developers (and LLMs) love