# Conductores



# Lista de conductores - driverGetAll



# Listar conductores - driverGetAll

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/driverGetAll

Obtiene la lista de todos los conductores que pertenecen al cliente.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><div><table class="table" style="height: 139px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">licencia</td><td style="width: 320px;">**(Opcional)** Número de Licencia.</td><td style="width: 301px;"><span style="color: #3366ff;">123456</span></td></tr></tbody></table>

</div></div></details><p class="callout info">**Nota:** Si requiere solo la información de un conductor en especifico, debe mandar en la solicitud el parámetro **licencia** con el número de licencia que tiene asignado el conductor.</p>

##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/driverGetAll' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
          {
            "id": "43530",
            "numero": "0987654321",
            "alias": "test_new_driver",
            "nombre": "Test Nombre",
            "apellido": "New Driver",
            "identificador": "TEST0987654NWD",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR001",
            "licencia": "78979TEST123",
            "vigencia": "2022-05-14",
            "direccion": "test de domicilio de conductor test",
            "email": "test@test.com",
            "idvehiculo": "37922",
            "idgrupo": "0",
            "nombregrupo": "",
            "observaciones": "creacion de conductor test1",
            "usuario": "driver_test1",
            "password": "MTIzNDU2"
        },
        {
            "id": "43531",
            "numero": "0987654321",
            "alias": "test_new_driver2",
            "nombre": "Test Nombre 2",
            "apellido": "New Driver 2",
            "identificador": "TEST89956156",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR002",
            "licencia": "78979TEST1232",
            "vigencia": "2022-05-15",
            "direccion": "test de domicilio de conductor test2",
            "email": "test2@test.com",
            "idvehiculo": "37923",
            "idgrupo": "0",
            "nombregrupo": "",
            "observaciones": "creacion de conductor test2",
            "usuario": "driver_test2",
            "password": "MTIzNDU2"
        },
        {
            "id": "43532",
            "numero": "098765432133",
            "alias": "test_new_driver3",
            "nombre": "Test Nombre 3",
            "apellido": "New Driver 3",
            "identificador": "TEST895662563",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR003",
            "licencia": "78979TEST1233",
            "vigencia": "2022-06-15",
            "direccion": "test de domicilio de conductor test3",
            "email": "test3@test.com",
            "idvehiculo": "37924",
            "idgrupo": "0",
            "nombregrupo": "",
            "observaciones": "creacion de conductor test3",
            "usuario": "driver_test3",
            "password": "MTIz"
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 886px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">id</td><td style="width: 392px; height: 41px;">Identificador único asignado al conductor.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero</td><td style="width: 392px; height: 47px;">Código interno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">alias</td><td style="width: 392px; height: 47px;">Nombre alterno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">nombre

</td><td style="width: 392px; height: 35px;">Nombre del conductor.</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">apellido

</td><td style="width: 392px; height: 35px;">Apellido del conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">identificador

</td><td style="width: 392px; height: 35px;">Código de iButton o RFID asignado al conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">fecha\_alta

</td><td style="width: 392px; height: 35px;">Fecha en que se creó el conductor en el sistema.

</td><td style="height: 35px; width: 243px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">telefono</td><td style="width: 392px; height: 47px;">Identificador único de la ruta en el sistema.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cedula

</td><td style="width: 392px; height: 47px;">Número de cédula.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">licencia

</td><td style="width: 392px; height: 47px;">Número de licencia.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">vigencia

</td><td style="width: 392px; height: 47px;">Fecha en que expira la licencia del conductor.

</td><td style="width: 243px; height: 47px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">direccion

</td><td style="width: 392px; height: 47px;">Ubicación del domicilio del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">email

</td><td style="width: 392px; height: 47px;">E-mail de contacto del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idvehiculo

</td><td style="width: 392px; height: 47px;">Id del vehículo asignado al conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idgrupo

</td><td style="width: 392px; height: 47px;">Id del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombregrupo

</td><td style="width: 392px; height: 47px;">Nombre del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">observaciones

</td><td style="width: 392px; height: 47px;">Observaciones realizadas por el operador.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">usuario

</td><td style="width: 392px; height: 47px;">Usuario del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">password

</td><td style="width: 392px; height: 47px;">Contraseña del conductor codificada en base64.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr></tbody></table>

</div></details>

# Crear conductor - createDriver

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/createDriver

Permite realizar el alta de un conductor al sistema. **\* Campos requeridos.**

<p class="callout info">Todos los **parámetros** deben enviarse en la solicitud, los marcados con **\*** es obligatorio que tengan un valor.</p>

<details class="mb-m" id="bkmrk-body-parametersparam" open="open"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="width: 809px; height: 897px;"><tbody><tr style="height: 41px;"><th style="width: 145.99px; height: 41px;">Parámetros</th><th style="width: 370px; height: 41px;">Descripción</th><th style="width: 292.986px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 145.99px; height: 41px;">apikey</td><td style="width: 370px; height: 41px;">Llave de autorización para uso de los Servicios Web. \*</td><td style="width: 292.986px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 145.99px; height: 41px;">token</td><td style="width: 370px; height: 41px;">Token devuelto por el método getToken. \*</td><td style="width: 292.986px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 69px;"><td style="width: 145.99px; height: 69px;">nombre</td><td style="width: 370px; height: 69px;">Nombre del conductor. \*

</td><td style="width: 292.986px; height: 69px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">Test Nombre 3</span></span></td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">apellido

</td><td style="width: 370px; height: 47px;">Apellido del conductor.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">New Driver 3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">alias

</td><td style="width: 370px; height: 47px;">Nombre alterno para identificar al conductor.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">test\_new\_driver3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">identificador

</td><td style="width: 370px; height: 47px;">Código de iButton o RFID asignado al conductor.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">TEST895662563</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">numero

</td><td style="width: 370px; height: 47px;">Código interno para identificar al conductor.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">0987654321</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">telefono

</td><td style="width: 370px; height: 47px;">Número de teléfono del conductor. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">1234567890</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">cedula

</td><td style="width: 370px; height: 47px;">Número de cédula.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">FSGBSTR003</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">licencia

</td><td style="width: 370px; height: 47px;">Número de licencia. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">78979TEST1233</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">vigencia

</td><td style="width: 370px; height: 47px;">Fecha en que expira la licencia del conductor. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">2022-06-15</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">direccion

</td><td style="width: 370px; height: 47px;">Ubicación del domicilio del conductor. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">test de domicilio de conductor test3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">email

</td><td style="width: 370px; height: 47px;">E-mail de contacto del conductor. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">test3@test.com</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">idvehiculo

</td><td style="width: 370px; height: 47px;">Id del vehículo asignado al conductor. \*

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">37924</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">observaciones

</td><td style="width: 370px; height: 47px;">Observaciones realizadas por el operador.

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">Observación de conductor test3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">idgrupo

</td><td style="width: 370px; height: 47px;">Identificador del grupo

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">user

</td><td style="width: 370px; height: 47px;">Usuario del conductor. **(Opcional)**

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">driver\_test3</span>

</td></tr><tr style="height: 47px;"><td style="width: 145.99px; height: 47px;">password

</td><td style="width: 370px; height: 47px;">Contraseña del conductor. **(Opcional)**

</td><td style="width: 292.986px; height: 47px;"><span style="color: #3366ff;">pass123</span>

</td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/createDriver' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="Test Nombre 3"' \
--form 'apellido="New Driver 3"' \
--form 'alias="test_new_driver3"' \
--form 'identificador="TEST895662563"' \
--form 'numero="0987654321"' \
--form 'telefono="1234567890"' \
--form 'cedula="FSGBSTR003"' \
--form 'licencia="78979TEST1233"' \
--form 'vigencia="2022-06-15"' \
--form 'direccion="test de domicilio de conductor test3"' \
--form 'email="test3@test.com"' \
--form 'idvehiculo="37924"' \
--form 'idgrupo="3"' \
--form 'observaciones="Observación de conductor test3"' \
--form 'user="driver_test3"' \
--form 'password="pass123"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "id": "710900",
        "msg": "Se creó el conductor"
    }
}
```

<p class="callout info">**Nota**: Si el **usuario** a crear ya existe, se mostrará el siguiente mensaje.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "code": 30700,
        "message": "No se pudo crear el usuario driver_test"
    }
}
```

# Actualizar conductor - updateDriver

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/updateDriver

Permite realizar la modificación de la información de un conductor. **\* Campos requeridos.**

<p class="callout info">Todos los **parámetros** deben enviarse en la solicitud, los marcados con **\*** es obligatorio que tengan un valor.</p>

<details class="mb-m" id="bkmrk-body-parametersparam" open="open"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="width: 809px; height: 946px;"><tbody><tr style="height: 41px;"><th style="width: 146px; height: 41px;">Parámetros</th><th style="width: 370px; height: 41px;">Descripción</th><th style="width: 293px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 146px; height: 41px;">apikey</td><td style="width: 370px; height: 41px;">Llave de autorización para uso de los Servicios Web. \*</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 146px; height: 41px;">token</td><td style="width: 370px; height: 41px;">Token devuelto por el método getToken. \*</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 146px;"><div><div>idConductor</div></div></td><td style="width: 370px;">Id del conductor \*

</td><td style="width: 293px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">123456</span></span></td></tr><tr style="height: 69px;"><td style="width: 146px; height: 69px;">nombre</td><td style="width: 370px; height: 69px;">Nombre del conductor. \*

</td><td style="width: 293px; height: 69px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;">Update Test Nombre 3</span></span></td></tr><tr><td style="width: 146px;">apellido

</td><td style="width: 370px;">Apellido del conductor.

</td><td style="width: 293px;"><span style="color: #3366ff;">New Driver 3</span>

</td></tr><tr><td style="width: 146px;">alias

</td><td style="width: 370px;">Nombre alterno para identificar al conductor.

</td><td style="width: 293px;"><span style="color: #3366ff;">test\_new\_driver3</span>

</td></tr><tr><td style="width: 146px;">identificador

</td><td style="width: 370px;">Código de iButton o RFID asignado al conductor.

</td><td style="width: 293px;"><span style="color: #3366ff;">TEST895662563</span>

</td></tr><tr><td style="width: 146px;">numero

</td><td style="width: 370px;">Código interno para identificar al conductor.

</td><td style="width: 293px;"><span style="color: #3366ff;">0987654321</span>

</td></tr><tr><td style="width: 146px;">telefono

</td><td style="width: 370px;">Número de teléfono del conductor. \*

</td><td style="width: 293px;"><span style="color: #3366ff;">1234567890</span>

</td></tr><tr><td style="width: 146px;">cedula

</td><td style="width: 370px;">Número de cédula.

</td><td style="width: 293px;"><span style="color: #3366ff;">FSGBSTR003</span>

</td></tr><tr><td style="width: 146px;">licencia

</td><td style="width: 370px;">Número de licencia. \*

</td><td style="width: 293px;"><span style="color: #3366ff;">78979TEST1233</span>

</td></tr><tr><td style="width: 146px;">vigencia

</td><td style="width: 370px;">Fecha en que expira la licencia del conductor. \*

</td><td style="width: 293px;"><span style="color: #3366ff;">2022-06-15</span>

</td></tr><tr><td style="width: 146px;">direccion

</td><td style="width: 370px;">Ubicación del domicilio del conductor. \*

</td><td style="width: 293px;"><span style="color: #3366ff;">test de domicilio de conductor test3</span>

</td></tr><tr><td style="width: 146px;">email

</td><td style="width: 370px;">E-mail de contacto del conductor. \*

</td><td style="width: 293px;"><span style="color: #3366ff;">test3@test.com</span>

</td></tr><tr><td style="width: 146px;">idvehiculo

</td><td style="width: 370px;">Id del vehículo asignado al conductor.

</td><td style="width: 293px;"><span style="color: #3366ff;">37924</span>

</td></tr><tr><td style="width: 146px;">observaciones

</td><td style="width: 370px;">Observaciones realizadas por el operador.

</td><td style="width: 293px;"><span style="color: #3366ff;">Observación de conductor test3</span>

</td></tr><tr><td style="width: 146px;">idgrupo

</td><td style="width: 370px;">Identificador del grupo

</td><td style="width: 293px;"><span style="color: #3366ff;">0</span>

</td></tr><tr><td style="width: 146px;">user

</td><td style="width: 370px;">Usuario del conductor. **(Opcional)**

</td><td style="width: 293px;"><span style="color: #3366ff;">driver\_test3</span>

</td></tr><tr><td style="width: 146px;">password

</td><td style="width: 370px;">Contraseña del conductor. **(Opcional)**

</td><td style="width: 293px;"><span style="color: #3366ff;">pass123</span>

</td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/updateDriver' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idConductor="123456"' \
--form 'nombre="Update Test Nombre 3"' \
--form 'apellido="New Driver 3"' \
--form 'alias="test_new_driver3"' \
--form 'identificador="TEST895662563"' \
--form 'numero="0987654321"' \
--form 'telefono="1234567890"' \
--form 'cedula="FSGBSTR003"' \
--form 'licencia="78979TEST1233"' \
--form 'vigencia="2022-06-15"' \
--form 'direccion="test de domicilio de conductor test3"' \
--form 'email="test3@test.com"' \
--form 'idvehiculo="37924"' \
--form 'observaciones="Observación de conductor test3"' \
--form 'idgrupo="0"' \
--form 'user="driver_test3"' \
--form 'password="pass123"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "id": "123456",
        "msg": "Se actualizó el conductor"
    }
}
```

<p class="callout info">**Nota**: El **usuario** a actualizar debe pertenecer al cliente, de lo contrario no se realiza la actualización y se muestra el siguiente mensaje.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "code": 30700,
        "message": "El usuario driver_test3 ya existe"
    }
}
```

# Eliminar conductor - deleteDriver

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/deleteDriver

Este método permite eliminar un conductor especifico.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="width: 809px;"><tbody><tr><th style="width: 146px;">Parámetros</th><th style="width: 370px;">Descripción</th><th style="width: 293px;">Ejemplo</th></tr><tr><td style="width: 146px;">apikey</td><td style="width: 370px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 293px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr><td style="width: 146px;">token</td><td style="width: 370px;">Token devuelto por el método getToken.</td><td style="width: 293px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 146px;">idConductor</td><td style="width: 370px;" width="351">Identificador único del conductor en el sistema.

</td><td style="width: 293px;"><span role="presentation" style="padding-right: 0.1px;"><span style="color: #3366ff;"> 138225</span></span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/deleteDriver' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idConductor="138225"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": ""
}
```

<p class="callout danger"><span style="color: #800000;">**Nota:** Si en la respuesta de la solicitud aparece  **"status": 30700** es un error al obtener los datos.</span></p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 30700,
    "data": ""
}
```

# Listar conductores con grupo y vehículo - driverInfoGetAll

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/driverInfoGetAll

Obtiene la lista de todos los conductores del cliente con la relación vehículo y grupo conductor.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/driverInfoGetAll' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
		{
            "id": "43530",
            "numero": "0987654321",
            "alias": "test_new_driver",
            "nombre": "Test Nombre",
            "apellido": "New Driver",
            "identificador": "TEST0987654NWD",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR001",
            "licencia": "78979TEST123",
            "vigencia": "2022-05-14",
            "direccion": "test de domicilio de conductor test",
            "email": "test@test.com",
            "idvehiculo": "37922",
            "idgrupo": "10",
            "observaciones": "creacion de conductor test",
            "idgrupo_conductor": "10",
            "nombrevehiculo": "Ford GS",
            "patente": "GSI-78955",
            "nombregrupo": "Test1"
        },
        {
            "id": "43531",
            "numero": "0987654321",
            "alias": "test_new_driver2",
            "nombre": "Test Nombre 2",
            "apellido": "New Driver 2",
            "identificador": "TEST89956156",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR002",
            "licencia": "78979TEST1232",
            "vigencia": "2022-05-15",
            "direccion": "test de domicilio de conductor test2",
            "email": "test2@test.com",
            "idvehiculo": "37923",
            "idgrupo": "11",
            "observaciones": "creacion de conductor test2",
            "idgrupo_conductor": "11",
            "nombrevehiculo": "KIA IZURIETA",
            "patente": "GSI-7206",
            "nombregrupo": "Test2"
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 933px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">id</td><td style="width: 392px; height: 41px;">Identificador único asignado al conductor.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero</td><td style="width: 392px; height: 47px;">Código interno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">alias</td><td style="width: 392px; height: 47px;">Nombre alterno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">nombre

</td><td style="width: 392px; height: 35px;">Nombre del conductor.</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">apellido

</td><td style="width: 392px; height: 35px;">Apellido del conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">identificador

</td><td style="width: 392px; height: 35px;">Código de iButton o RFID asignado al conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">fecha\_alta

</td><td style="width: 392px; height: 35px;">Fecha en que se creó el conductor en el sistema.

</td><td style="height: 35px; width: 243px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">telefono</td><td style="width: 392px; height: 47px;">Identificador único de la ruta en el sistema.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cedula

</td><td style="width: 392px; height: 47px;">Número de cédula.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">licencia

</td><td style="width: 392px; height: 47px;">Número de licencia.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">vigencia

</td><td style="width: 392px; height: 47px;">Fecha en que expira la licencia del conductor.

</td><td style="width: 243px; height: 47px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">direccion

</td><td style="width: 392px; height: 47px;">Ubicación del domicilio del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">email

</td><td style="width: 392px; height: 47px;">E-mail de contacto del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idvehiculo

</td><td style="width: 392px; height: 47px;">Id del vehículo asignado al conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idgrupo

</td><td style="width: 392px; height: 47px;">Id del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">observaciones

</td><td style="width: 392px; height: 47px;">Observaciones realizadas por el operador.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idgrupo\_conductor

</td><td style="width: 392px; height: 47px;">Identificador del grupo que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombrevehiculo

</td><td style="width: 392px; height: 47px;">Nombre del vehículo.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">patente

</td><td style="width: 392px; height: 47px;">Patente del vehículo.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombregrupo

</td><td style="width: 392px; height: 47px;">Nombre del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr></tbody></table>

</div></details>

# Listar catálogo de grupos de conductores - driverGetGroups

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/driverGetGroups

Obtiene el catálogo de los grupos de conductores del cliente.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/driverGetGroups' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "143": "Conductores Sur",
      	"160": "Conductores Centrales",
      	"172": "Conductores Estacion Oriente",
        "173": "Conductores Estacion Poniente"
    }
}
```

# Listar conductor por licencia  - getDriverByIdCard

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/getDriverByIdCard

Obtiene la información del conductor por el parámetro licencia.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="height: 139px;"><tbody><tr style="height: 41px;"><th style="width: 188px; height: 41px;">Parámetros</th><th style="width: 320px; height: 41px;">Descripción</th><th style="width: 301px; height: 41px;">Ejemplo</th></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 320px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 301px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">token</td><td style="width: 320px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 188px;">licencia </td><td style="width: 320px;">Número de licencia.</td><td style="width: 301px;"><span style="color: #3366ff;"> 78979TEST123</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/getDriverByIdCard' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'\
--form 'licencia="78979TEST123"'\
```

##### Respuesta de ejemplo:

```JSON

{
    "status": 200,
    "data": [
          {
            "id": "43530",
            "numero": "0987654321",
            "alias": "test_new_driver",
            "nombre": "Test Nombre",
            "apellido": "New Driver",
            "identificador": "TEST0987654NWD",
            "fecha_alta": "2022-02-25",
            "telefono": "1234567890",
            "cedula": "FSGBSTR001",
            "licencia": "78979TEST123",
            "vigencia": "2022-05-14",
            "direccion": "test de domicilio de conductor test",
            "email": "test@test.com",
            "idvehiculo": "37922",
            "idgrupo": "0",
            "nombregrupo": "",
            "observaciones": "creacion de conductor test1",
            "usuario": "driver_test1",
            "password": "cGFzczEyMw=="
        }
    ]
}
```

<details class="mb-m" id="bkmrk-ver-par%C3%A1metros%3A-par%C3%A1"><summary class="text-muted">Ver campos de respuesta:</summary>

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 886px;"><tbody><tr style="height: 47px;"><th style="width: 174px; height: 47px;">Campo</th><th style="width: 392px; height: 47px;">Descripción

</th><th style="width: 243px; height: 47px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">id</td><td style="width: 392px; height: 41px;">Identificador único asignado al conductor.

</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero</td><td style="width: 392px; height: 47px;">Código interno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">alias</td><td style="width: 392px; height: 47px;">Nombre alterno para identificar al conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">nombre

</td><td style="width: 392px; height: 35px;">Nombre del conductor.</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">apellido

</td><td style="width: 392px; height: 35px;">Apellido del conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">identificador

</td><td style="width: 392px; height: 35px;">Código de iButton o RFID asignado al conductor.

</td><td style="height: 35px; width: 243px;">Cadena de texto

</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">fecha\_alta

</td><td style="width: 392px; height: 35px;">Fecha en que se creó el conductor en el sistema.

</td><td style="height: 35px; width: 243px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">telefono</td><td style="width: 392px; height: 47px;">Identificador único de la ruta en el sistema.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cedula

</td><td style="width: 392px; height: 47px;">Número de cédula.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">licencia

</td><td style="width: 392px; height: 47px;">Número de licencia.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">vigencia

</td><td style="width: 392px; height: 47px;">Fecha en que expira la licencia del conductor.

</td><td style="width: 243px; height: 47px;">Date (aaaa-mm-dd)</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">direccion

</td><td style="width: 392px; height: 47px;">Ubicación del domicilio del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">email

</td><td style="width: 392px; height: 47px;">E-mail de contacto del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idvehiculo

</td><td style="width: 392px; height: 47px;">Id del vehículo asignado al conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idgrupo

</td><td style="width: 392px; height: 47px;">Id del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombregrupo

</td><td style="width: 392px; height: 47px;">Nombre del grupo al que pertenece el conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">observaciones

</td><td style="width: 392px; height: 47px;">Observaciones realizadas por el operador.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">usuario

</td><td style="width: 392px; height: 47px;">Usuario del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">password

</td><td style="width: 392px; height: 47px;">Contraseña del conductor.

</td><td style="width: 243px; height: 47px;">Cadena de texto</td></tr></tbody></table>

</div></details>