# Distribuidor

Métodos / endpoints exclusivos para cuando el apikey es a nivel distribuidor.

# Obtener la lista de todos los clientes - getClients

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

Obtiene el listado de todos los clientes del distribuidor.

<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;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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/getClients' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data":[ 
      	{
            "id": "10",
            "nombre": "cliente 1",
            "es_suspendido": "0",
            "razon_social": "cliente sa de cv",
            "cuit_rfc": "cliente01",
            "ciudad": "Puebla",
            "domicilio": "Avenida principal",
            "telefonos": "1343243241",
          	"contactos": "Test1 2245789645",
            "email": "cliente01@gmail.com",
            "last_update": "2021-12-09 15:15:16",
            "fecha_suspendido": "0000-00-00",
            "es_activo": "1"
        },
        {
            "id": "11",
            "nombre": "cliente 2",
            "es_suspendido": "1",
            "razon_social": "cliente 2 sa de cv",
            "cuit_rfc": "cliente02",
            "ciudad": "Monterrey",
            "domicilio": "Avenida central",
            "telefonos": "3245643",
          	"contactos": "Test2 5589568989",
            "email": "cliente02@gmail.com",
            "last_update": "2021-12-17 10:41:25",
            "fecha_suspendido": "0000-00-00",
            "es_activo": "1"
        },
    ]
}
```

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

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

</td><td style="width: 243px; height: 47px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del cliente

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombre</td><td style="width: 392px; height: 47px;">Nombre asignado al cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">es\_suspendido</td><td style="width: 392px; height: 47px;">Bandera o estado si está o no suspendido,.

1 = suspendido

0 = no suspendido

</td><td style="width: 243px; height: 47px;">Booleano</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">razon\_social</td><td style="width: 392px; height: 47px;">Razón social del cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cuit\_rfc</td><td style="width: 392px; height: 47px;">RFC del cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">ciudad</td><td style="width: 392px; height: 47px;">Ciudad de dónde es el cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">domicilio</td><td style="width: 392px; height: 47px;">Domicilio o dirección de dónde es el cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">telefonos</td><td style="width: 392px; height: 47px;">Teléfono(s) del cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr><td style="width: 174px;"><div><div>contactos</div></div></td><td style="width: 392px;">Contacto(s) del cliente

</td><td style="width: 243px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">email</td><td style="width: 392px; height: 47px;">Correo electrónico del cliente

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">last\_update</td><td style="width: 392px; height: 47px;">Fecha Hora de la última actualización del cliente

</td><td style="width: 243px; height: 47px;">FechaHora</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_suspendido</td><td style="width: 392px; height: 47px;">Fecha de cuándo se suspendió el cliente

</td><td style="width: 243px; height: 47px;">Fecha</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">es\_activo</td><td style="width: 392px; height: 69px;">Bandera o estado si está activo o no el cliente.

1 = activo

0 = no activo

</td><td style="width: 243px; height: 69px;">Booleano</td></tr></tbody></table>

</div></details>

# Crea o actualiza un cliente - setClient

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

Crea o actualiza un 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: 525px; width: 822px;"><tbody><tr><td style="width: 217.222px;">**Parámetros**</td><td style="width: 321.337px;">**Descripción**</td><td style="width: 270.33px;"><span style="color: #000000;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</span></td></tr><tr style="height: 57px;"><td style="width: 217.222px; height: 57px;">apikey</td><td style="width: 321.337px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 270.33px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e7</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">token</td><td style="width: 321.337px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 217.222px; height: 58px;"><div><div>idcliente</div></div></td><td style="width: 321.337px; height: 58px;">**(Opcional)** Identificador único del cliente. **Sólo cuando se va actualizar.**</td><td style="width: 270.33px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 321.337px; height: 41px;">**(Requerido)** Nombre que va tener el cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">Test nombre</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">razon\_social</td><td style="width: 321.337px; height: 41px;">**(Requerido)** Razón social del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">Test Razon Social</span></td></tr><tr><td style="width: 217.222px;">idzona\_horaria</td><td style="width: 321.337px;">**(Opcional)** Identificador único de la zona horaria  
\- Obtener los tipos en el método **[getTimeZone](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-zonas-horarias-gettimezone).**

</td><td style="width: 270.33px;"><span style="color: #3366ff;">1</span></td></tr><tr><td style="width: 217.222px;">IdTipo\_informacion\_tributaria</td><td style="width: 321.337px;">**(Opcional)** Identificador del tipo de información tributaria.

\- Si no requiere tipo, se asigna 0

\- Obtener los tipos en el método **[getTypesTax](https://docs.redgps.com/books/webservice/page/listar-tipos-tributarios-gettypestax).**

</td><td style="width: 270.33px;"><span style="color: #3366ff;">5</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">email</td><td style="width: 321.337px; height: 41px;">**(Requerido)** Correo del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">test@test.com</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">rfc</td><td style="width: 321.337px; height: 41px;">**(Opcional)** RFC del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">RFC0123456789</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">ciudad</td><td style="width: 321.337px; height: 41px;">**(Opcional)** Ciudad de dónde es el cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">Puebla</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">domicilio</td><td style="width: 321.337px; height: 41px;">**(Opcional)** Domicilio o dirección del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">Test domicilio</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">codpostal</td><td style="width: 321.337px; height: 41px;">**(Opcional)** Código postal de la ubicación del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">72111</span></td></tr><tr><td style="width: 217.222px;">contactos</td><td style="width: 321.337px;">**(Opcional)** Datos del contacto.</td><td style="width: 270.33px;"><span style="color: #3366ff;">test contacto </span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">telefonos</td><td style="width: 321.337px; height: 41px;">**(Opcional)** Teléfono(s) para contactar al cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">2228562144</span></td></tr><tr style="height: 41px;"><td style="width: 217.222px; height: 41px;">descripcion</td><td style="width: 321.337px; height: 41px;">**(Opcional)** Alguna descripción o información del cliente.</td><td style="width: 270.33px; height: 41px;"><span style="color: #3366ff;">Test Cliente Descripcion</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo crear un cliente:

```shell
curl --location 'https://api.service24gps.com/api/v1/setClient' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="Test nombre"' \
--form 'razon_social="Test Razon Social"' \
--form 'idzona_horaria="1"' \
--form 'IdTipo_informacion_tributaria="5"' \
--form 'email="test@test.com"' \
--form 'rfc="RFC0123456789"' \
--form 'ciudad="Puebla"' \
--form 'domicilio="Test domicilio"' \
--form 'codpostal="72111"' \
--form 'contactos="test contacto "' \
--form 'telefonos="2228562144"' \
--form 'descripcion="Test Cliente Descripcion"'
```

##### Respuesta de ejemplo:

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

##### Solicitud de ejemplo editar un cliente:

```shell
curl --location 'https://api.service24gps.com/api/v1/setClient' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idcliente="11"' \
--form 'nombre="Test nombre"' \
--form 'razon_social="Test Razon Social"' \
--form 'idzona_horaria="1"' \
--form 'IdTipo_informacion_tributaria="5"' \
--form 'email="test@test.com"' \
--form 'rfc="RFC0123456789"' \
--form 'ciudad="Puebla"' \
--form 'domicilio="Test domicilio"' \
--form 'codpostal="72111"' \
--form 'contactos="test contacto "' \
--form 'telefonos="2228562144"' \
--form 'descripcion="Test Cliente Descripcion"'
```

##### Respuesta de ejemplo:

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

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

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

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del cliente

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

</div></details>

# Suspender cliente - allowClient

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

Suspende un 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: 525px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Parámetros**</td><td style="width: 301px;"><span style="color: #000000;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</span></td></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 style="height: 58px;"><td style="width: 188px; height: 58px;"><div><div>idclient</div></div></td><td style="width: 320px; height: 58px;">Identificador único del cliente.</td><td style="width: 301px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div><div><div>sino_suspend</div></div></div></div></td><td style="width: 320px; height: 41px;"><span style="color: #000000;">Valor a actualizar:</span>

<span style="color: #000000;"> 1 = suspende</span>

<span style="color: #000000;">0 = activa</span>

</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">1</span>

</td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">razon\_suspend</td><td style="width: 320px; height: 41px;">Razón, motivo o causa del porque se suspende.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">motivo test</span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/allowClient' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idclient="12"' \
--form 'sino_suspend="1"' \
--form 'razon_suspend="motivo test"'

```

##### Respuesta de ejemplo:

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

# Obtener usuarios de algún cliente - getUsers

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

Obtiene el listado de los usuarios de un cliente en específico.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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;"><div><div>idcliente</div></div></td><td style="width: 320px;">Identificador único del cliente</td><td style="width: 301px;"><span style="color: #3366ff;">11</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data":[ 
      	{
            "id": "156211",
            "nombre": "user01",
            "usuario": "usuario primero",
            "es_activo": "1",
            "last_update": "2021-11-08 17:05:14",
            "last_update_password": "",
            "loginas": "https://plataforma.service24gps.com/loginas/cred;WE49hX5TngeG8z3kk0yZW_rljZbkHVuEBD9taqOPcD5gaIL4xm-WZ8XdSWN6Mr6_66444443333U_EGEsWd9VqvyZl6msm1MBy4VCTDUizCirgUgTQ34n24BSVV9XkEUfnenPTJuRBEknIJvg11gfdSynXkQ,,"
        },
        {
            "id": "516311",
            "nombre": "user02",
            "usuario": "usuario dos",
            "es_activo": "1",
            "last_update": "2022-01-17 22:59:47",
            "last_update_password": "",
            "loginas": "https://plataforma.service24gps.com/loginas/cred;WE49hX5TngeG8z3kk0yZW_rljZbkHVuEykhXihWJj-EDJb15YcPikU0LbWRv1cl4qjOZXxY444444999128888909T_GgiTA80qFYb1MvsFKv_e7-_-VzWoTXSpqDnwTJ462DHabbD2v7o2RdstNM62wEHbxLclgfzbpLJ2LFnWHQXuXo"
        }
    ]
}
```

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

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

</td><td style="width: 243px;">**Formato**</td></tr><tr><td style="width: 174px;">id</td><td style="width: 392px;">Identificador único del usuario

</td><td style="width: 243px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombre</td><td style="width: 392px; height: 47px;">Nombre asignado al usuario

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">usuario</td><td style="width: 392px; height: 47px;">Nombre del usuario, para después iniciar sesión en plataforma

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">last\_update</td><td style="width: 392px; height: 47px;">Fecha hora de la última actualización del usuario

</td><td style="width: 243px; height: 47px;">FechaHora</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">last\_update\_password</td><td style="width: 392px; height: 47px;">Fecha hora de la última actualización de la contraseña del usuario

</td><td style="width: 243px; height: 47px;">FechaHora</td></tr><tr><td style="width: 174px;">es\_activo</td><td style="width: 392px;">Bandera o estado si está activo o no el cliente, 1 = activo, 0 = no activo

</td><td style="width: 243px;">Booleano</td></tr><tr><td style="width: 174px;">loginas</td><td style="width: 392px;">Link o url para el inicio de sesión de la plataforma

</td><td style="width: 243px;">Texto</td></tr></tbody></table>

</div></details>

# Obtener la información del usuario - getMyUser

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

Obtener la información del usuario y cliente referente al token que se está utilizando.

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

<div><table class="table" style="height: 257px; width: 829px;" width="804"><tbody><tr style="height: 42px;"><th style="width: 104px; height: 42px;">Parámetros</th><th style="width: 340px; height: 42px;">Descripción</th><th style="width: 100px; height: 42px;">Longitud</th><th style="width: 285px; height: 42px;">Ejemplo</th></tr><tr style="height: 58px;"><td style="width: 104px; height: 58px;">apikey</td><td style="width: 340px; height: 58px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 100px; height: 58px;"><span style="color: #3366ff;">50</span></td><td style="width: 285px; height: 58px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 104px; height: 41px;">token</td><td style="width: 340px; height: 41px;">Token devuelto por el método **[getToken](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef)** o token devuelto por plataforma.</td><td style="width: 100px; height: 41px;"><span style="color: #3366ff;">500</span></td><td style="width: 285px; 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/getMyUser' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="SJx5eXC7PtGHwHcSY8O8DVLVjXycEFKiQ/kQ9A3NcWfiy7iqrjrkVw=="'
```

##### Respuesta de ejemplo:

```JSON
{
	"status": 200,
	"data": {
        "iduser": "11",
        "user": "user_01",
        "nameuser": "Usuario uno",
        "idclient": "12",
        "nameclient": "Empresa SA de CV"
    }
}
```

<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: 292px;"><tbody><tr style="height: 46px;"><th style="width: 174px; height: 46px;">Campo</th><th style="width: 392px; height: 46px;">Descripción

</th><th style="width: 243px; height: 46px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">iduser</td><td style="width: 392px; height: 41px;">Identificador único del usuario en plataforma.</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">idcliente</td><td style="width: 392px; height: 41px;">Identificador único del cliente en plataforma.</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nameuser</td><td style="width: 392px; height: 47px;">Nombre del usuario en plataforma.

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

</td><td style="width: 392px; height: 47px;">Nombre del cliente en plataforma.

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

</td><td style="height: 35px; width: 392px;">Usuario para ingresar a plataforma.

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

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

</div></details>

# Crea o actualiza un usuario - setUser

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

Crea o actualiza un usuario.

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

<div><table class="table" style="height: 640px; width: 810px;"><tbody><tr style="height: 41px;"><td style="width: 198px; height: 41px;">**Parámetros**</td><td style="width: 310px; height: 41px;">**Descripción**</td><td style="width: 26px; height: 41px;">**<span role="presentation" style="padding-right: 0.1px;"> </span>**</td><td style="width: 276px; height: 41px;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</td></tr><tr style="height: 57px;"><td style="width: 198px; height: 57px;">apikey</td><td style="width: 310px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 26px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> </span></td><td style="width: 276px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 42px;">token</td><td style="width: 310px; height: 42px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 26px; height: 42px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 42px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 198px; height: 58px;"><div><div>idusuario</div></div></td><td style="width: 310px; height: 58px;">**(Opcional)** Identificador único del usuario. **Sólo cuando se va actualizar.**</td><td style="width: 26px; height: 58px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 58px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 310px; height: 41px;">**(Requerido)** Nombre que va tener el usuario.</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">User 111</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;">user</td><td style="width: 310px; height: 41px;">**(Requerido)** Usuario con el que se va autenticar.</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">user\_111</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;">password</td><td style="width: 310px; height: 41px;">**(Requerido)** Contraseña para el usuario.</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">123456</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;">email</td><td style="width: 310px; height: 41px;">**(Requerido)** Correo electrónico del usuario.</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">user111@gmail.com</span></td></tr><tr style="height: 58px;"><td style="width: 198px; height: 58px;">idcliente</td><td style="width: 310px; height: 58px;">**(Requerido)** Identificador único del cliente al que va pertenecer el usuario.</td><td style="width: 26px; height: 58px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 80px;"><td style="width: 198px; height: 80px;">idzona\_horaria</td><td style="width: 310px; height: 80px;">**(Opcional)** Identificador único de la zona horaria.  
\- Obtener los tipos en el método **[getTimeZone](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-zonas-horarias-gettimezone).**

</td><td style="width: 26px; height: 80px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 80px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;">parar\_motor</td><td style="width: 310px; height: 41px;">**(Opcional)** Activar comando de paro de motor.  
1 = Si  
0 = No</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">0</span></td></tr><tr style="height: 41px;"><td style="width: 198px; height: 41px;">enviar\_sms</td><td style="width: 310px; height: 41px;">**(Opcional)** Enviar comando y alertas por SMS.  
1 = Si  
0 = No</td><td style="width: 26px; height: 41px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 41px;"><span style="color: #3366ff;">0</span></td></tr><tr style="height: 58px;"><td style="width: 198px; height: 58px;">cargar\_geocercas\_al\_inicio</td><td style="width: 310px; height: 58px;">**(Opcional)** Cargar geocercas al inicio de cada sesión.  
1 = Si  
0 = No</td><td style="width: 26px; height: 58px;"><span style="color: #3366ff;"> </span></td><td style="width: 276px; height: 58px;"><span style="color: #3366ff;">1</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo crear un usuario:

```shell
curl --location 'https://api.service24gps.com/api/v1/setUser' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="User 111"' \
--form 'user="user_111"' \
--form 'password="123456"' \
--form 'email="user111@gmail.com"' \
--form 'idcliente="11"' \
--form 'idzona_horaria="1"' \
--form 'parar_motor="0"' \
--form 'enviar_sms="0"' \
--form 'cargar_geocercas_al_inicio="0"'
```

##### Respuesta de ejemplo:

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

##### Solicitud de ejemplo editar un usuario:

```shell
curl --location 'https://api.service24gps.com/api/v1/setUser' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'idusuario="1"' \
--form 'nombre="User 111"' \
--form 'user="user_111"' \
--form 'password="123456"' \
--form 'email="user111@gmail.com"' \
--form 'idcliente="11"' \
--form 'idzona_horaria="1"' \
--form 'parar_motor="0"' \
--form 'enviar_sms="0"' \
--form 'cargar_geocercas_al_inicio="0"'
```

##### Respuesta de ejemplo:

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

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

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

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del usuario

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

</div></div></details>

# Crear Activo  - createAsset

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

Crea un activo.

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

<div><table class="table" style="height: 717px; width: 822px;"><tbody><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">**Parámetros**</td><td style="width: 305.375px; height: 41px;">**Descripción**</td><td style="width: 270.344px; height: 41px;"><span style="color: #000000;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</span></td></tr><tr style="height: 57px;"><td style="width: 233.281px; height: 57px;">apikey</td><td style="width: 305.375px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 270.344px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e7</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">token</td><td style="width: 305.375px; height: 41px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 305.375px; height: 41px;">**(Requerido)** Nombre que va tener el activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">Test nombre</span></td></tr><tr style="height: 80px;"><td style="width: 233.281px; height: 80px;">tipo\_vehiculo</td><td style="width: 305.375px; height: 80px;">**(Requerido)** Identificador único del tipo del activo.  
- Obtener los tipos en el método **[getVehiclesType](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-tipo-de-vehiculos-getvehiclestype)[.](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-tipo-de-vehiculos-getvehicletype)**</td><td style="width: 270.344px; height: 80px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">marca</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Identificador único de marca del activo.  
- Obtener los tipos en el método **[getVehiclesBrands](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-marcas-de-activos-getvehiclesbrands)**[**.**](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-marcas-de-activos-getbrandtype)</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">modelo</td><td style="width: 305.375px; height: 41px;">**(Requerido)** Modelo del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">Mazda</span></td></tr><tr style="height: 47px;"><td style="width: 233.281px; height: 47px;">anio</td><td style="width: 305.375px; height: 47px;">**(Opcional)** Año del activo.

</td><td style="width: 270.344px; height: 47px;"><span style="color: #3366ff;">2017</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">patente</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Patente del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">test123</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">idcliente</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Identificador único del cliente.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">equipo\_gps</td><td style="width: 305.375px; height: 41px;">**(Requerido)** Equipo GPS del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">123456789</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">color</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Color del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">Negro</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">numero\_serie</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Número de serie del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">55500056544</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">numero\_motor</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Número de motor del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">M211</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">numero\_economico</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Número económico del activo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">0227</span></td></tr><tr style="height: 41px;"><td style="width: 233.281px; height: 41px;">rendimiento\_combustible</td><td style="width: 305.375px; height: 41px;">**(Opcional)** Rendimiento del combustible.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">0</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo crear un activo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/createAsset' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="Test nombre"' \
--form 'tipo_vehiculo="1"' \
--form 'marca="1"' \
--form 'modelo="Mazda"' \
--form 'anio="2017"' \
--form 'patente="test123"' \
--form 'idcliente="11"' \
--form 'equipo_gps="123456789"' \
--form 'color="Negro"' \
--form 'numero_serie="55500056544"' \
--form 'numero_motor="M211"' \
--form 'numero_economico="0227"' \
--form 'rendimiento_combustible="0"'
```

##### Respuesta de ejemplo:

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

<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: 94px;"><tbody><tr><td style="width: 174px;">**Campo**</td><td style="width: 392px;">**Descripción**

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del activo.

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

</div></details>

# Actualizar un Activo - updateAsset

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

Actualiza información de un activo.

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

<div><table class="table" style="height: 607px;"><tbody><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.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">idvehiculo</td><td style="width: 320px; height: 58px;">**(Requerido)** Identificador único del vehículo a actualizar.</td><td style="width: 301px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 320px; height: 41px;">**(Requerido)** Nombre que va ocupar el vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">Activo 01</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">modelo</td><td style="width: 320px; height: 41px;">**(Opcional)** Nombre del modelo del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">Ibiza</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">anio</td><td style="width: 320px; height: 41px;">**(Opcional)** Año del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">2021</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">numero\_economico</td><td style="width: 320px; height: 41px;">**(Opcional)** Número económico del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">2</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">estado</td><td style="width: 320px; height: 41px;">**(Requerido)** Bandera, para establecer si está activo o no el vehículo:   
1 = Activo

0 = No activo

</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">patente</td><td style="width: 320px; height: 41px;">**(Opcional)** Placa o patente del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">XX-AAA-10</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">patente\_caja</td><td style="width: 320px; height: 41px;">**(Opcional)** Placa o patente del vehículo, si tiene caja o remolque.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">XX-AAA-11</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">color</td><td style="width: 320px; height: 41px;">**(Opcional)** Color del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">Rojo</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">rendimiento\_combustible</td><td style="width: 320px; height: 41px;">**(Opcional)** El rendimiento del combustible del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">numero\_serie</td><td style="width: 320px; height: 41px;">**(Opcional)** El número de serie del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">SERIE-XXX-10</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">numero\_motor</td><td style="width: 320px; height: 41px;">**(Opcional)** Número de motor del vehículo.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">MOTOR-XXX-11</span></td></tr><tr><td style="width: 188px;"><div><div>equipo_gps</div></div></td><td style="width: 320px;">**(Requerido)** Nombre del equipo GPS del activo. Ver en endpoint: [**getDevices**](https://docs.redgps.com/books/webservice/page/obtener-dispositivos-getdevices)</td><td style="width: 301px;"><span data-table="VEHICULO" id="bkmrk-123123123156" style="color: #3366ff;">123123123156</span></td></tr></tbody></table>

</div></details><p class="callout danger">**Nota:** El **equipo\_gps** no debe estar asignado a otro activo, debe estar disponible.</p>

##### Solicitud de ejemplo:

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/updateAsset' \
--header 'Cookie: PHPSESSID=0ab8djc97ouk13tev2t9epf1l2' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--from 'idvehiculo="11"' \
--form 'nombre="Activo 01"' \
--form 'model="Ibiza"' \
--form 'anio="2021"' \
--form 'numero_economico="11"' \
--form 'estado="1"' \
--form 'patente="XX-AAA-10"' \
--form 'patente_caja="XX-AAA-11"' \
--form 'color="Rojo"' \
--form 'rendimiento_combustible="1"' \
--form 'numero_serie="SERIE-XXX-10"' \
--form 'numero_motor="MOTOR-XXX-11"' \
--form 'equipo_gps="123123123156"'

```

##### Respuesta de ejemplo:

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

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

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 808px; height: 94px;"><tbody><tr><th style="width: 173px;">Campo</th><td style="width: 392px;">**Descripción**

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 173px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del vehículo

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

</div></details>

# Crear relación activo con cliente - addAssetByClient

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

Crea la relación de un activo con un 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: 607px;"><tbody><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.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">idvehiculo</td><td style="width: 320px; height: 58px;">**(Requerido)** Identificador único del vehículo.</td><td style="width: 301px; height: 58px;"><span style="color: #3366ff;">110011</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div><div><div>idcliente</div></div></div></div></td><td style="width: 320px; height: 41px;">**(Opcional)** Identificador único del cliente</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">42106</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">cliente</td><td style="width: 320px; height: 41px;">**(Requerido)** Nombre del cliente</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">User Test</span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/addAssetByClient' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--from 'idvehiculo="110011"' \
--from 'idcliente="42106"' \
--form 'cliente="User Test"'
```

##### Respuesta de ejemplo:

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

# Obtener el listado de las compañías celulares - getCompaniasCelular

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

Obtiene el listado de todos las compañías de celular, para utilizar alguna cuando se edite o modifique una tarjeta sim.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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/getCompaniasCelular' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "Movistar",
        "2": "Telcel",
        "6": "Personal",
        "7": "Claro",
        "8": "Entel",
        "10": "NEXTEL",
        "11": "Vodafone",
        "12": "TIM",
        "13": "TIGO",
        "14": "TURKCELL",
        "15": "Orange",
        "16": "IUSACELL",
        "17": "T-Mobile",
        "18": "UNITEL",
        "19": "Vodacom",
        "20": "Optimus",
        "21": "Digicel",
        "22": "Vivo",
        "23": "DIGITEL",
        "24": "Elisa",
        "25": "ETB",
        "26": "Mas Movil",
        "27": "KOLBI",
        "28": "Avantel",
        "29": "T-Mobile",
        "30": "Emnify",
        "31": "CNT Ecuador",
        "32": "F2M",
        "33": "bitel",
        "34": "Cable Wireless Panama",
        "35": "NETT2",
        "36": "Bueno Cell",
        "37": "AT&T",
        "38": "Telefonica",
        "39": "Bismark",
        "40": "Movilnet",
        "41": "Movilnet",
        "42": "Matooma",
        "43": "Things Mobile",
        "44": "POST",
        "45": "m2m express",
        "46": "IglobalSat",
        "47": "M2MDataGlobal",
        "48": "WOM",
        "49": "MÃ³vil Ã‰xito",
        "50": "UffMovil",
        "51": "Virgin Mobile",
        "52": "UNE",
        "53": "Directv",
        "54": "Truphone",
        "55": "Oi",
        "56": "Algar",
        "57": "Olivia"
    }
}
```

# Obtener las tarjetas sim (chips telefónicos) - getSims

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

Obtiene el listado de todas mis tarjetas sims o chips telefónicos.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</td></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/getSims' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data":[ 
      	{
            "id": "1155",
            "nombre": "sim 1",
            "compania": "Telcel",
            "numero": "2913403402",
            "nip": "123456789012345",
            "notas": "este es la primer sim de telcel",
            "fecha_alta": "2021-01-28",
            "mb_plan": "0",
            "es_prepago": "0"
        },
        {
            "id": "1156",
            "nombre": "sim 2",
            "compania": "Movistar",
            "numero": "324234234234",
            "nip": "123456789012312",
            "notas": "",
            "fecha_alta": "",
            "mb_plan": "5",
            "es_prepago": "1"
        }
    ]
}
```

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

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

</td><td style="width: 243px;">**Formato**</td></tr><tr><td style="width: 174px;">id</td><td style="width: 392px;">Identificador único de la tarjeta sim

</td><td style="width: 243px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombre</td><td style="width: 392px; height: 47px;">Nombre asignado a la tarjeta sim

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">compania</td><td style="width: 392px; height: 47px;">Nombre de la compañía de la tarjeta sim

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero</td><td style="width: 392px; height: 47px;">Número de la tarjeta sim

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nip</td><td style="width: 392px; height: 47px;">Número personal de la tarjeta sim

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">notas</td><td style="width: 392px; height: 47px;">Descripción para la tarjeta sim

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_alta</td><td style="width: 392px; height: 47px;">Fecha de cuando se creó la tarjeta sim

</td><td style="width: 243px; height: 47px;">Fecha</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">mb\_plan</td><td style="width: 392px; height: 47px;">Megabytes del plan (sólo si tiene)

</td><td style="width: 243px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">es\_prepago</td><td style="width: 392px; height: 47px;">Bandera o estado si de prepago la tarjeta sim, 1 = prepago, 0 = no prepago

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

</div></details>

# Crea o actualiza una tarjeta sim (chip telefónico) - setSim

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

Crea o actualiza una tarjeta sim. \* Campos requeridos.

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

<div><table class="table" style="height: 443px;"><tbody><tr><td style="width: 188px;"><span style="color: #000000;">**Parámetros**</span></td><td style="width: 314px;"><span style="color: #000000;">**Descripción**</span></td><td style="width: 307px;"><span style="color: #000000;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</span></td></tr><tr style="height: 57px;"><td style="width: 188px; height: 57px;">apikey</td><td style="width: 314px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 307px; 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: 314px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">idsim</td><td style="width: 314px; height: 58px;">Identificador único de la tarjeta sim.

**Sólo cuando se va actualizar.**

</td><td style="width: 307px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 314px; height: 41px;">Nombre que va tener la tarjeta sim \*</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">Sim 01</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">nro\_tel</td><td style="width: 314px; height: 41px;">Número telefónico de la tarjeta sim \*</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">2224567810</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">nro\_nip</td><td style="width: 314px; height: 41px;">NIP de la tarjeta sim \*</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">1120</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>id_compania</div></div></td><td style="width: 314px; height: 41px;">Identificado único de la compania (Se obtiene del endpoint: **getCompaniasCelular**)</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">2</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>es_prepago</div></div></td><td style="width: 314px; height: 41px;">Bandera, para establecer si es prepago o no.

1 = Prepago

2 = No prepago

</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>notas</div></div></td><td style="width: 314px; height: 41px;">Descripción o información extra de las notas</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">Esta es mi sim 01</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>mb_plan</div></div></td><td style="width: 314px; height: 41px;">Cantidad de megabytes en el plan</td><td style="width: 307px; height: 41px;"><span style="color: #3366ff;">10</span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/setSim' \
--header 'Cookie: PHPSESSID=0ab8djc97ouk13tev2t9epf1l2' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'nombre="Sim 01"' \
--form 'nro_tel="2224567810"' \
--form 'nro_nip="1120"'
```

##### Respuesta de ejemplo:

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

<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: 94px;"><tbody><tr><td style="width: 174px;">**Campo**</td><td style="width: 392px;">**Descripción**

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único de la tarjeta sim

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

</div></details>

# Insertar datos de dispositivo - insertPositionData

##### <span class="api-method" data-method="POST">POST </span><span style="font-weight: 400;"> https://api.service24gps.com/api/v1/insertPositionData</span>

Basado en el documento de protocolo de comunicación service24gps. Para ingresar información en los reportes del equipo GPS y se muestre en la plataforma, tanto en el detalle nuevo del activo como en los eventos y/o alertas.

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

<div><table class="table" style="width: 801px; height: 566px;"><tbody><tr style="height: 41px;"><th style="width: 125.156px; height: 41px;">Parámetros</th><th style="width: 381.463px; height: 41px;">Descripción</th><th style="width: 293.381px; height: 41px;">Ejemplo</th></tr><tr style="height: 58px;"><td style="width: 125.156px; height: 58px;">apikey</td><td style="width: 381.463px; height: 58px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 293.381px; height: 58px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 58px;"><td style="width: 125.156px; height: 58px;">token</td><td style="width: 381.463px; height: 58px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 293.381px; height: 58px;"><div><div><span style="color: #3366ff;">SJXC7PtRJwHcSY8O8DYjpH+c7mMBd0uXmRkw+8DE9TS09wi0Mzw==</span></div></div></td></tr><tr style="height: 69px;"><td style="width: 125.156px; height: 69px;">imei</td><td style="width: 381.463px; height: 69px;"><span style="font-weight: 400;">**(Requerido)** Identificador único / imei del dispositivo gps.</span>

</td><td style="width: 293.381px; height: 69px;"><span style="color: #3366ff;">6d7b91026765abcd</span></td></tr><tr style="height: 69px;"><td style="width: 125.156px; height: 69px;"><span style="font-weight: 400;">checksum</span></td><td style="width: 381.463px; height: 69px;"><span style="font-weight: 400;">**(Requerido)** Primeros 4 caracteres del md5 de reports.</span>

</td><td style="width: 293.381px; height: 69px;"><span style="color: #3366ff;">e71a</span></td></tr><tr style="height: 271px;"><td style="width: 125.156px; height: 271px;"><span style="font-weight: 400;">reports</span><span style="font-weight: 400;">  
</span></td><td style="width: 381.463px; height: 271px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** String en formato json de ubicaciones </span>

<span style="font-weight: 400; color: #3366ff;"> </span>

</td><td style="width: 293.381px; height: 271px;"><span style="color: #3366ff;">\[</span>  
<span style="color: #3366ff;"> {</span>  
<span style="color: #3366ff;"> "stamp": "20220502184600",</span>  
<span style="color: #3366ff;"> "latlng": "4.6892583,-74.1159799",</span>  
<span style="color: #3366ff;"> "direction": 0,</span>  
<span style="color: #3366ff;"> "speed": 0,</span>

<span style="color: #3366ff;"> "sig": 10,</span>

<span style="color: #3366ff;"> "satellites": 15,</span>  
<span style="color: #3366ff;"> "event": 1,</span>  
<span style="color: #3366ff;"> "battery": 40,</span>

<span style="color: #3366ff;"> "bat": 100,</span>

<span style="color: #3366ff;"> "odm": 500,</span>

<span style="color: #3366ff;"> "bato": 50,</span>

<span style="color: #3366ff;"> "acc": 1,</span>

<span style="color: #3366ff;"> "alt": "10",</span>

<span style="color: #3366ff;"> }</span>  
<span style="color: #3366ff;">\]</span>

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

</div></details><p class="callout info"><span style="font-weight: 400;">Nota: **reports** es un array de objetos, así sea un solo reporte debe estar dentro de un array.</span></p>

<details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me"><summary class="text-muted">Ver tabla de parámetros reports:</summary>

<div><table class="table" style="width: 770px; height: 914px;"><tbody><tr style="height: 41px;"><th style="width: 110.122px; height: 41px;">Parámetros</th><th style="width: 347.396px; height: 41px;">Descripción</th><th style="width: 311.372px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 110.122px; height: 41px;">stamp</td><td style="width: 347.396px; height: 41px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** </span>Fecha y hora en GMT 0.</td><td style="width: 311.372px; height: 41px;"><span style="color: #3366ff;">"stamp": "20230510235500"</span></td></tr><tr style="height: 41px;"><td style="width: 110.122px; height: 41px;">latlng</td><td style="width: 347.396px; height: 41px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** </span>Latitud y longitud.</td><td style="width: 311.372px; height: 41px;"><span style="color: #3366ff;">"latlng": "4.6892583,-74.1159799"</span></td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;">direction</td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** </span>Dirección.

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"direction": 0</span></td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">speed</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400;"><span style="font-weight: 400; color: #333333;">**(Requerido)** </span>Velocidad del dispositivo.</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;"> "speed": 0</span></td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">sig</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400;"><span style="font-weight: 400; color: #333333;">(Opcional) Señal GSM.   
Entre 0-10</span></span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"sig": 10</span></td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;">satellites</td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** </span>Satélite.</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"satellites": 15</span>

</td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">event</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** Tipo de evento. </span>

<span style="font-weight: 400; color: #333333;">Ejemplo: </span>

<span style="font-weight: 400; color: #333333;">1: Ubicación</span>

<span style="font-weight: 400; color: #333333;">2: Botón SigMen  
Obtener listado de eventos en [**getEventTypes**](https://docs.redgps.com/books/webservice/page/lista-de-eventos-geteventtypes)</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;"> "event": 1</span>

</td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">battery</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">**(Requerido)** Batería del dispositivo.   
Entre 0 - 100 %</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;"> "battery": 40</span>

</td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">bato</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">(Opcional) Batería Vehículo.   
Entre 0 - 100 volts</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"bato": 100</span>

</td></tr><tr><td style="width: 110.122px;"><span style="font-weight: 400;">acc</span></td><td style="width: 347.396px;"><span style="font-weight: 400; color: #333333;">(Opcional) Estado de ignición.  
Ejemplo:</span>

<span style="font-weight: 400; color: #333333;">1: Encendido</span>

<span style="font-weight: 400; color: #333333;">0: Apagado</span>

</td><td style="width: 311.372px;"><span style="color: #3366ff;">"acc": 1</span>

</td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">odm</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">(Opcional) Odómetro.</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"odm": 500</span>

</td></tr><tr style="height: 47px;"><td style="width: 110.122px; height: 47px;"><span style="font-weight: 400;">alt</span></td><td style="width: 347.396px; height: 47px;"><span style="font-weight: 400; color: #333333;">(Opcional) Altitud.</span>

</td><td style="width: 311.372px; height: 47px;"><span style="color: #3366ff;">"alt": "10"</span>

</td></tr><tr><td style="width: 110.122px;"><span style="font-weight: 400;">ad</span></td><td style="width: 347.396px;"><span style="font-weight: 400; color: #333333;">(Opcional) Información adicional para el envió de información de sensores en formato JSON.</span>

</td><td style="width: 311.372px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"ad": {</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "t1": 25.5,</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="4fmoq-0-0"><div data-offset-key="4fmoq-0-0"><span data-offset-key="4fmoq-12-0" style="color: #3366ff;"> "h1": 10,</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="dcb9b-0-0"><div data-offset-key="dcb9b-0-0"><span data-offset-key="dcb9b-12-0" style="color: #3366ff;"> "h2": 1</span></div><div data-offset-key="dcb9b-0-0"><span style="color: #3366ff;">}</span></div></div><span style="color: #3366ff;"> </span>

</td></tr><tr style="height: 108px;"><td style="width: 110.122px; height: 108px;"><span style="font-weight: 400;">infoextra</span></td><td style="width: 347.396px; height: 108px;"><span style="font-weight: 400; color: #333333;">(Opcional) Información extra para el dispositivo en formato JSON. </span>

</td><td style="width: 311.372px; height: 108px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"infoextra": {</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "qr\_buffer": "0",</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="4fmoq-0-0"><div data-offset-key="4fmoq-0-0"><span data-offset-key="4fmoq-12-0" style="color: #3366ff;"> "qr\_idProceso": "2971599",</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="dcb9b-0-0"><div data-offset-key="dcb9b-0-0"><span data-offset-key="dcb9b-12-0" style="color: #3366ff;"> "qr\_uid": "MiLugar1"</span></div><div data-offset-key="dcb9b-0-0"><span style="color: #3366ff;">}</span></div></div></td></tr></tbody></table>

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

```JSON
curl --location --request POST 'https://api.service24gps.com/api/v1/insertPositionData' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="SJXC7PtRJwHcSY8O8DYjpH+c7mMBd0uXmRkw+8DE9TS09wi0Mzw=="' \
--form 'imei="6d7b91026765abcd"' \
--form 'checksum="e71a"' \
--form 'reports="[
	{
      \"stamp\":\"20220119235500\",
      \"latlng\":\"4.6892583,-74.1159799\",
      \"direction\":0,
      \"speed\":0,
      \"sig\":10,
      \"satellites\":15,
      \"event\":501,
      \"battery\":40,
      \"bat\":100,
      \"odm\":500,
      \"bato\":50,
      \"acc\":1,
	  \"alt\":\"10\",
      \"ad\": {
          \"t1\":  25.5,
          \"h1\":  10,
          \"h2\":  1
       }
    }
]"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "checksum": "e71a",
        "match_checksum": 1,
        "received": 1,
        "processed": 1,
        "errors": []
    }
}

```

<p class="callout danger"><span style="font-weight: 400;">**Nota:** La key "**errors**" es un array con todos los errores encontrados al procesar las tramas. </span><span style="font-weight: 400;">En los errores se usa el mismo índice que en las tramas para relacionar en que reporte se originó.</span></p>

##### Respuesta de ejemplo s<span style="font-weight: 400;">i el checksum no coincide:</span>

```JSON
{
    "status": 200,
    "data": {
        "checksum": "3824",
        "match_checksum": 0
    }
}
```

##### Tipos de formato en infoextra

<details class="mb-m" id="bkmrk-ver-formatos%3A-format"><summary class="text-muted">Ver formatos:</summary>

<div><table class="table" style="width: 861px; height: 522px;"><tbody><tr style="height: 41px;"><th style="width: 98px;">Formato</th><th style="width: 229px;">Descripción </th><th style="width: 133px; height: 41px;">Nombre de la propiedad</th><th style="width: 113px; height: 41px;">Valor de la propiedad</th><th style="width: 288px; height: 41px;">Ejemplo</th></tr><tr style="height: 58px;"><td style="width: 98px;">**Tipo llave valor**</td><td style="width: 229px;">Este formato solo se completa el nombre y el valor a mostrar, es un modo simple de agregar información.

Tiene la limitante que no se puede dar formato o interacción a esta información dentro de la plataforma.

</td><td style="width: 133px; height: 58px;">"lampara 1"</td><td style="width: 113px; height: 58px;"> "encendido"</td><td style="width: 288px; height: 58px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"infoextra":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "lampara 1": "encendido",</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="4fmoq-0-0"><div data-offset-key="4fmoq-0-0"><span data-offset-key="4fmoq-12-0" style="color: #3366ff;"> "lampara 2": "apagado",</span></div></div><div data-block="true" data-editor="46is8" data-offset-key="dcb9b-0-0"><div data-offset-key="dcb9b-0-0"><span data-offset-key="dcb9b-12-0" style="color: #3366ff;"> "lampara 3": "encendido"</span></div><div data-offset-key="dcb9b-0-0"><span style="color: #3366ff;">}</span></div></div></td></tr><tr style="height: 47px;"><td style="width: 98px;">**Tipo llave valor extendido** </td><td style="width: 229px;">Este formato tiene mas opciones, donde podremos definir las acciones sobre los elementos que vera el cliente dentro del detalle del activo.

**Llave:**

- **(Requerido)** label
- **(Requerido)** value
- (Opcional) unit
- (Opcional) color
- (Opcional) icon
- (Opcional) href
- (Opcional) onclick

</td><td style="width: 133px; height: 47px;">"label"</td><td style="width: 113px; height: 47px;">"Litros"

</td><td style="width: 288px; height: 47px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"infoextra":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "0":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "label": "Litros",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "value": "11.12",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "unit": "litros",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "icon": "i-lock-2",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "color": "#987456",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "href": "https://example.com",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "onclick": "function\_litro(\_litro\_)"</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> },</span></div><div data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "1":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "label": "Litros 2",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "value": "114.2",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "unit": "litros",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "icon": "i-lock-2",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "color": "#158456"</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> }</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">}</span></div></div></div></td></tr><tr style="height: 271px;"><td style="width: 98px;">**Tipo llave texto** </td><td style="width: 229px;"><span style="font-weight: 400;">Este formato sirve para mostrar un mensaje de tipo texto dentro de la plataforma.</span>

**Llave:**

- **(Requerido)** text
- (Opcional) color
- (Opcional) bgcolor
- (Opcional) href
- (Opcional) onclick

</td><td style="width: 133px; height: 271px;"><span style="font-weight: 400;">"text"</span><span style="font-weight: 400;">  
</span></td><td style="width: 113px; height: 271px;"><span style="color: #333333;">"Mensaje de prueba"</span>

<span style="font-weight: 400; color: #3366ff;"> </span>

</td><td style="width: 288px; height: 271px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"infoextra":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "0":{</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "text": "Mensaje de prueba",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "color": "#987456",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "bcolor": "#284650",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "href": "https://example.com",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "onclick": "function\_msg(\_msg\_)"</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> },</span></div><div data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "1":{</span></div><div data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "text": "Mensaje a plataforma",</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> "color": "#458756",</span></div></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> }</span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">}</span></div></div></div></td></tr></tbody></table>

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

```JSON
curl --location --request POST 'https://api.service24gps.com/api/v1/insertPositionData' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="SJXC7PtRJwHcSY8O8DYjpH+c7mMBd0uXmRkw+8DE9TS09wi0Mzw=="' \
--form 'imei="6d7b91026765abcd"' \
--form 'checksum="e71a"' \
--form 'reports="[
    {
        \"stamp\": \"20220502184600\",
        \"latlng\": \"4.6892583,-74.1159799\",
        \"direction\": 0,
        \"speed\": 0,
        \"satellites\": 15,
        \"event\": 501,
        \"battery\": 4.013,
        \"infoextra\":{
            \"lampara 1\": \"encendido\",
            \"lampara 2\": \"apagado\",
            \"lampara 3\": \"encendido\"
        },
    }
]"'
```

# Obtener equipos GPS - getDevices

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

Obtiene el listado de los equipos.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</td></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/getDevices' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' 
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data":[ 
      	{
            "id": "11",
            "nombre": "351234567891920",
            "tipo": "GPS",
            "marca": "Android",
            "modelo": "Android",
          	"imei": "0323292803",
          	"nro_telefonico": "5558795106",
            "estado": "0",
            "notas": "",
            "idsim": "0",
            "fecha_alta": "2020-11-17",
          	"idcliente_propietario": 0,
            "cliente_propietario": ""
        },
        {
            "id": "12",
            "nombre": "7DD15E0CA5314A35B8D78DDC25424FEF",
            "tipo": "GPS",
            "marca": "Skypatrol",
            "modelo": "TT8750",
          	"imei": "0555292803",
          	"nro_telefonico": "77521078401",
            "estado": "1",
            "notas": "",
            "idsim": "11",
            "fecha_alta": "2019-04-30",
			"idcliente_propietario": 1,
            "cliente_propietario": "Transportes del Sur"
        }
    ]
}
```

<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: 810px; height: 586px;"><tbody><tr style="height: 47px;"><td style="width: 174px; height: 47px;">**Campo**</td><td style="width: 485px; height: 47px;">**Descripción**

</td><td style="width: 151px; height: 47px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 485px; height: 47px;">Identificador único del dispositivo

</td><td style="width: 151px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nombre</td><td style="width: 485px; height: 47px;">Nombre asignado al dispositivo, regularmente es el IMEI.

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">tipo</td><td style="width: 485px; height: 47px;">Tipo de dispositivo.

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">marca</td><td style="width: 485px; height: 47px;">Marca del dispositivo

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">modelo</td><td style="width: 485px; height: 47px;">Modelo del dispositivo

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">imei</td><td style="width: 485px; height: 47px;">Código pregrabado del dispositivo

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">numero telefónico</td><td style="width: 485px; height: 47px;">Número celular del dispositivo

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 69px;"><td style="width: 174px; height: 69px;">estado</td><td style="width: 485px; height: 69px;">Bandera o estado si está activo o no el dispositivo, 1 = activo, 0 = no activo

</td><td style="width: 151px; height: 69px;">Booleano</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">notas</td><td style="width: 485px; height: 47px;">Nota extra o descripción del dispositivo

</td><td style="width: 151px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idsim</td><td style="width: 485px; height: 47px;">Identificador único de la tarjeta sim (chip telefónico)

</td><td style="width: 151px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_alta</td><td style="width: 485px; height: 47px;">Fecha de la alta del dispositivo

</td><td style="width: 151px; height: 47px;">Fecha</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">idcliente\_propietario</td><td style="width: 485px; height: 47px;">ID del cliente propietario del Activo

</td><td style="width: 151px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cliente\_propietario</td><td style="width: 485px; height: 47px;">Nombre del cliente propietario del Activo

</td><td style="width: 151px; height: 47px;">Texto</td></tr></tbody></table>

</div></details>

# Crear un equipo GPS - createDevice

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

Crear un equipo.

<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="height: 470px; width: 822px;"><tbody><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">**Parámetros**</td><td style="width: 344.422px; height: 41px;">**Descripción**</td><td style="width: 270.344px; height: 41px;">**Ejemplo**</td></tr><tr style="height: 57px;"><td style="width: 194.234px; height: 57px;">apikey</td><td style="width: 344.422px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 270.344px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e7</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">token</td><td style="width: 344.422px; 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: 270.344px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 40px;"><div><div><div><div>tipo_equipo</div></div></div></div></td><td style="width: 344.422px; height: 40px;">**(Opcional)** Tipo de equipo.  
- Obtener los tipos en el método **[getTypesDevices](https://docs.redgps.com/books/webservice/page/gettypesdevice).**</td><td style="width: 270.344px; height: 40px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">nombre</td><td style="width: 344.422px; height: 41px;">**(Requerido)** Nombre del equipo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">000123</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">imei</td><td style="width: 344.422px; height: 41px;">**(Opcional)** IMEI del equipo.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">000123</span></td></tr><tr style="height: 47px;"><td style="width: 194.234px; height: 47px;">marca</td><td style="width: 344.422px; height: 47px;">**(Requerido)** Marca del equipo.   
\- Obtener los tipos en el método **[getBrands.](https://docs.redgps.com/books/webservice/page/getbrands)**

</td><td style="width: 270.344px; height: 47px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">modelo</td><td style="width: 344.422px; height: 41px;">**(Requerido)** Modelo del equipo.  
- Obtener los tipos en el método **[getModels.](https://docs.redgps.com/books/webservice/page/getmodel)**</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 194.234px; height: 41px;">chip\_telefonico</td><td style="width: 344.422px; height: 41px;">**(Opcional)** Número telefónico.</td><td style="width: 270.344px; height: 41px;"><span style="color: #3366ff;">2222112233</span></td></tr><tr style="height: 80px;"><td style="width: 194.234px; height: 80px;">idzona\_horaria</td><td style="width: 344.422px; height: 80px;">**(Opcional)** Identificador único de la zona horaria.  
\- Obtener los tipos en el método **[getTimeZone](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-zonas-horarias-gettimezone).**

</td><td style="width: 270.344px; height: 80px;"><span style="color: #3366ff;">1</span></td></tr><tr><td style="width: 194.234px;">idpais</td><td style="width: 344.422px;">**(Opcional)** Identificador único del país.

\- Obtener los países en el método **[getCountrys](https://docs.redgps.com/books/webservice/page/obtiene-el-listado-de-paises-getcountrys)**

</td><td style="width: 270.344px;"><span style="color: #3366ff;">1</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo crear un equipo:

```shell
curl --location 'https://api.service24gps.com/api/v1/createDevice' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e7"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'tipo_equipo="1"' \
--form 'nombre="000123"' \
--form 'imei="000123"' \
--form 'marca="1"' \
--form 'modelo="1"' \
--form 'chip_telefonico="2222112233"' \
--form 'idzona_horaria="1"' \
--form 'idpais="1"'
```

##### Respuesta de ejemplo:

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

<p class="callout info">**Nota:** Cuando supere el límite permitido para crear equipos se mostrará la siguiente respuesta.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": 30700,
        "message": "This is a Free account, it has exceeded the allowed limit of created devices"
    }
}
```

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

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

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">Nombre</td><td style="width: 392px; height: 47px;">Nombre del equipo.

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

</div></details>

# Editar un equipo GPS - updateDevice

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

Actualiza un equipo.

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

<div><table class="table" style="height: 542px;"><tbody><tr style="height: 41px;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;">**<span role="presentation" style="padding-right: 0.1px;">Ejemplo</span>**</td></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.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;"><div><div><div>iddevice</div></div></div></td><td style="width: 320px; height: 58px;">**(Opcional)** Identificador único del dispositivo a actualizar</td><td style="width: 301px; height: 58px;"><span style="color: #3366ff;">11</span></td></tr><tr style="height: 58px;"><td style="width: 188px; height: 58px;">idsim</td><td style="width: 320px; height: 58px;">**(Opcional)** Identificador único de la tarjeta sim (chip telefónico). Ver endpoint: **getSims**</td><td style="width: 301px; height: 58px;"><span style="color: #3366ff;">9</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div><div><div>nombre</div></div></div></div></td><td style="width: 320px; height: 41px;">**(Requerido)** Nombre que va ocupar el dispositivo, puede ser el imei del equipo, según el tipo de marca.</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">87198978126384923</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>tipo_equipo</div></div></td><td style="width: 320px; height: 41px;">**(Opcional)** Identificador único de los tipos disponibles. Ver en endpoint: **getTypesDevices**</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>marca</div></div></td><td style="width: 320px; height: 41px;">**(Opcional)** Identificador único de las marcas disponibles. Ver en endpoint: **getBrands**</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">2</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;"><div><div>modelo</div></div></td><td style="width: 320px; height: 41px;">**(Opcional)** Identificador único de los modelos disponibles. Ver en endpoint: **getModels**</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">1</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">estado</td><td style="width: 320px; height: 41px;">**(Opcional)** Bandera, para establecer si está activo o no el dispositivo.

1 = Activo

0 = No activo

</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">0</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">imei</td><td style="width: 320px; height: 41px;">**(Opcional)** Imei del dispositivo</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">87198978126384923</span></td></tr><tr style="height: 41px;"><td style="width: 188px; height: 41px;">notas</td><td style="width: 320px; height: 41px;">**(Opcional)** Descripción o texto extra para el dispositivo</td><td style="width: 301px; height: 41px;"><span style="color: #3366ff;">Este es un dispositivo nuevo, de la marca Suntech</span></td></tr></tbody></table>

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

```shell
curl --location --request POST 'https://api.service24gps.com/api/v1/updateDevice' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--from 'iddevice="11"' \
--from 'idsim="9"' \
--form 'nombre="87198978126384923"' \
--form 'tipo_equipo="1"' \
--form 'marca="1"' \
--form 'modelo="2"' \
--form 'estado="1"' \
--form 'imei="87198978126384923"' \
--form 'notas="Este es un dispositivo nuevo, de la marca Suntech"'
```

##### Respuesta de ejemplo:

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

<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: 94px;"><tbody><tr><td style="width: 174px;">**Campo**</td><td style="width: 392px;">**Descripción**

</td><td style="width: 243px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">id</td><td style="width: 392px; height: 47px;">Identificador único del dispositivo

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

</div></details>

# Obtener listado de marcas - getBrands

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

Obtiene el listado de las marcas de los equipos disponibles en la plataforma.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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/getBrands' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "133": "Zero one technology",
        "299": "Zenda",
        "150": "Yulongda technology limited",
        "136": "Yuangeng",
        "351": "Xmetra",
        "239": "Xirgo",
        "190": "Xintong technology co.",
        "18": "Xexun",
        "84": "Xact tecnology",
        "127": "Wonde Proud Technology",
        "151": "Wmcs",
        "167": "Wireless links",
        "350": "WanWayTech",
        "314": "Vjoycar",
        "290": "Vivotek",
        "129": "Vic-zone"
    }
}
```

# Obtener listado de modelos - getModels

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

Obtiene el listado de los modelos de equipos disponibles en la plataforma.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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**](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></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "199": "G91S",
        "200": "Sniper G797",
        "201": "LELL-510",
        "202": "Lell-520",
        "203": "Lell-530",
        "204": "STEPP II",
        "205": "RS-1102",
        "206": "RS-906",
        "207": "RS-909",
        "209": "PlugTrack",
        "210": "UTP Navigator",
        "211": "FORT-300",
        "212": "Fort-111",
        "213": "TK-106",
        "214": "Bitrek",
        "215": "Bitrek BI 310",
        "216": "Back2you",
        "217": "GPS Marker",
        "218": "Progress 01",
        "220": "Syrus",
        "221": "Netvisor 11",
        "222": "Evolution",
        "223": "CR200",
        "224": "Cello-F",
        "225": "CelloTrack",
        "226": "Compact CAN",
        "943": "GV300W",
        "227": "Compact Security",
        "228": "Cello Can-IQ",
        "229": "SmartOne",
        "230": "SmartOne LP",
        "231": "SmartOneB",
        "232": "Gelix-2",
        "233": "Gelix-3",
        "234": "MasterKit BM8009"
    }
}
```

# Obtener listado de tipos de dispositivo - getTypesDevices

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

Obtiene el listado de tipos de dispositivos disponibles en la plataforma.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 188px;">**Parámetros**</td><td style="width: 320px;">**Descripción**</td><td style="width: 301px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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/getTypesDevices' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "GPS",
        "2": "Alarma",
        "3": "IoT",
        "4": "DVR Fijo",
        "5": "DVR Movil",
        "7": "Tag Multisensor / Tag Sensor",
        "8": "Reloj",
        "10": "App Tracker Compartida",
        "11": "App Tracker"
    }
}
```

# Obtener listado del detalle de un modelo de equipo - getDeviceDetail

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

Obtiene el listado de la información detallada del modelo de un equipo.

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

<div><table class="table" style="height: 269px;"><tbody><tr><td style="width: 166px;">**Parámetros**</td><td style="width: 356px;">**Descripción**</td><td style="width: 287px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></tr><tr style="height: 57px;"><td style="width: 166px; height: 57px;">apikey</td><td style="width: 356px; height: 57px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 287px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 166px; height: 41px;">token</td><td style="width: 356px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 287px; height: 41px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 166px;">idmodelo</td><td style="width: 356px;">Identificador único del modelo del equipo a consultar.   
Los modelos disponibles en plataforma se obtienen en el método [**getModels**](https://docs.redgps.com/books/webservice/page/getmodel).</td><td style="width: 287px;"><span style="color: #3366ff;">1</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
       {
            "id": "1",
            "tipo_dispositivo": "Rastreador de Vehículos",
            "protocolo": "AMBOS",
            "entradas_salidas": "3/2",
            "bateria": "Sí - Batería Interna",
            "fabricante": "Skypatrol",
            "fabricante_url": "http://www.skypatrol.com/",
            "modelo": "TT8750",
            "imagen": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKLiiSDNg0P7pHeJQqnlMiqjjrruhVgHndKN1RiyLzCDn2kOIopnDTV3qR&s=10",
            "caracteristicas": "<p>&bull; Cuatribanda GSM (850 / 900 / 1800 / 1900 Mhz). &bull; Sensor de movimiento y alertas vibratorias. &bull; Dise&ntilde;ado para uso personal o vendedores. &bull; Habilitado para actualizaciones remotas. &bull; Programable con bot&oacute;n de p&aacute;nico para emergencias. &bull; Resistente al agua, estandar IPX5. &bull; 10 a 12 d&iacute;as de rastreo con una sola carga.</p>",
            "descripcion": "<p>TT8750 es un potente localizador GPS, que est&aacute; dise&ntilde;ado para los animales dom&eacute;sticos, veh&iacute;culos y bienes de seguimiento. con sensibilidad de recepci&oacute;n superior, TTFF r&aacute;pido y GSM frecuencias 850/900/1800/1900. Su ubicaci&oacute;n puede ser en tiempo real o programar un seguimiento por el servidor back-end o terminales especificados. Sobre la base de la protocolo integrado, TT8750 puede comunicarse con el servidor de back-end a trav&eacute;s de GPRS / GSM informes de la red, y la transferencia de Geo-cercas, el estado del dispositivo de emergencia y GPS programado posici&oacute;n.</p>",
            "desc_corta": "<p>El TT8750 es el dispositivo de seguimiento perfecto con GPS en tiempo real para aplicaciones compactas y encubiertas que requieren de 1 a 2 semanas de duracion de bater&iacute;a.</p>"
        }
    ]
}
```

# Datos del cliente - getClientData

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

Este método devuelve la información del cliente que esta ocupando el apikey.

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

<div><table class="table" style="height: 257px; width: 829px;" width="804"><tbody><tr style="height: 42px;"><th style="width: 104px; height: 42px;">Parámetros</th><th style="width: 340px; height: 42px;">Descripción</th><th style="width: 100px; height: 42px;">Longitud</th><th style="width: 285px; height: 42px;">Ejemplo</th></tr><tr style="height: 58px;"><td style="width: 104px; height: 58px;">apikey</td><td style="width: 340px; height: 58px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 100px; height: 58px;"><span style="color: #3366ff;">50</span></td><td style="width: 285px; height: 58px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 104px; height: 41px;">token</td><td style="width: 340px; height: 41px;">Token devuelto por el método **[getToken](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef)**.</td><td style="width: 100px; height: 41px;"><span style="color: #3366ff;">500</span></td><td style="width: 285px; 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/getClientData' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
   "status": 200,
   "data": [
     {
       "id": "1923322",
       "nombre": "Salvador",
       "razon_social": "Rastreo SA",
       "cuit_rfc": "MAKA901104",
       "ciudad": "CDMX",
       "domicilio": "Moneda 43",
       "codpostal": 08109,
       "contactos": "Jose",
       "telefonos": "5512345678",
       "skype": "live:.cid.5970721b7712717127",
       "email": "correo@example.com"
     }
   ]
}
```

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

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

</th><th style="width: 243px; height: 46px;">Formato</th></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">id</td><td style="width: 392px; height: 41px;">Identificador único del cliente.</td><td style="width: 243px; height: 41px;">Entero</td></tr><tr style="height: 41px;"><td style="width: 174px; height: 41px;">nombre</td><td style="width: 392px; height: 41px;">Nombre asignado al cliente.</td><td style="width: 243px; height: 41px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">razon\_social</td><td style="width: 392px; height: 47px;">Razón social del cliente.

</td><td style="width: 243px; height: 47px;">Cadena de Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">cuit\_rfc

</td><td style="width: 392px; height: 47px;">RFC (Registro Federal de Contribuyentes) del cliente.

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

</td><td style="height: 35px; width: 392px;">Ciudad de origen del cliente.

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

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

</td><td style="height: 35px; width: 392px;">Domicilio o dirección del cliente.

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

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

</td><td style="height: 35px; width: 392px;">Código postal del cliente.

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

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

</td><td style="height: 35px; width: 392px;">Nombre de contacto(s) del cliente.</td><td style="height: 35px; width: 243px;">Cadena de Texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">telefonos

</td><td style="height: 35px; width: 392px;">Número de contacto(s) del cliente.

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

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

</td><td style="height: 35px; width: 392px;"><div>Skype del cliente.</div></td><td style="height: 35px; width: 243px;">Cadena de Texto

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

</td><td style="height: 50px; width: 392px;">Correo electrónico del cliente.

</td><td style="height: 50px; width: 243px;">Cadena de Texto

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

</div></div></details>

# Obtener los activos de un cliente - getClientAssetsInfo

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

Obtiene el listado de los activos asignados a un 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;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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;">idCliente</td><td style="width: 320px;">Identificador único del cliente.</td><td style="width: 301px;"><span style="color: #3366ff;">11</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data":[ 
      	{
            "imei": "86755328129212",
            "dispositivo": "1743245914",
            "sim": "331384054561792",
            "nro_telefonico": "331384054561792",
            "activo": "I8W-124",
            "placa": "ABC-001",
            "fecha_de_alta_sim": "2021-09-06",
            "fecha_de_alta_imei": "2021-09-04",
          	"fecha_de_alta_activo": "2021-05-11",
            "marca": "Suntech",
            "modelo": "ST3310U",
          	"idvehiculo": "1277"
        },
        {
            "imei": "96455328229202",
            "dispositivo": "96455328229202",
            "sim": "240453899",
            "nro_telefonico": "240453899",
            "activo": "J6Y-33",
            "placa": "ABC-002",
            "fecha_de_alta_sim": "2021-09-07",
            "fecha_de_alta_imei": "2021-09-03",
          	"fecha_de_alta_activo": "2021-05-11",
            "marca": "Suntech",
            "modelo": "ST300A",
          	"idvehiculo": "7537"
        },
    ]
}
```

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

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

</td><td style="width: 243px; height: 47px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">imei</td><td style="width: 392px; height: 47px;">Imei del dispositivo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">dispositivo</td><td style="width: 392px; height: 47px;">Nombre del dispositivo</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">sim</td><td style="width: 392px; height: 47px;">Nombre del chip telefónico o sim

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">nro\_telefonico</td><td style="width: 392px; height: 47px;">Número del chip telefónico o sim

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">activo</td><td style="width: 392px; height: 47px;">Nombre del activo o vehículo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr><td style="width: 174px;">placa</td><td style="width: 392px;">Placa del vehículo.

</td><td style="width: 243px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_de\_alta\_sim</td><td style="width: 392px; height: 47px;">Fecha de cuando se creó la sim en el sistema

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_de\_alta\_imei</td><td style="width: 392px; height: 47px;">Fecha de cuando se creó el dispositivo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">fecha\_de\_alta\_activo</td><td style="width: 392px; height: 47px;">Fecha de cuando se creó el activo/vehículo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">marca</td><td style="width: 392px; height: 47px;">Nombre de la marca del dispositivo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;">modelo</td><td style="width: 392px; height: 47px;">Nombre del modelo del dispositivo

</td><td style="width: 243px; height: 47px;">Texto</td></tr><tr><td style="width: 174px;">idvehiculo</td><td style="width: 392px;">Identificador único del vehículo

</td><td style="width: 243px;">Texto</td></tr></tbody></table>

</div></details>

# Listar tipos tributarios - getTypesTax

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

Obtiene el listado de los tipos de información tributaria.

<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;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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/getTypesTax' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "RFC",
        "2": "CUIT",
        "3": "NIT",
        "4": "CPF",
        "5": "RIF",
        "6": "RUT",
        "7": "RNC",
        "8": "NIF",
        "9": "SSN",
        "10": "TIN",
        "11": "P:IVA",
        "12": "RUC",
        "13": "RTU",
        "14": "RTN",
        "15": "CC",
        "16": "CNPJ"
    }
}
```

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

<div><table class="table" id="bkmrk-campo-descripci%C3%B3n-fo" style="width: 809px; height: 643px;"><tbody><tr style="height: 47px;"><td style="width: 173.993px; height: 47px;">**Campo**</td><td style="width: 391.997px; height: 47px;">**Descripción**

</td><td style="width: 242.986px; height: 47px;">**Formato**</td></tr><tr style="height: 47px;"><td style="width: 173.993px; height: 47px;">id</td><td style="width: 391.997px; height: 47px;">Identificador único del tipo tributario.

</td><td style="width: 242.986px; height: 47px;">Entero</td></tr><tr style="height: 47px;"><td style="width: 173.993px; height: 47px;">nombre</td><td style="width: 391.997px; height: 47px;">Nombre del tipo tributario.

</td><td style="width: 242.986px; height: 47px;">Texto</td></tr></tbody></table>

</div></details>

# insertPositionData + infoextra

<span style="font-weight: 400;">Basado en el documento de protocolo de comunicación service24gps generic. estamos necesitando ingresar información en los reportes del equipo GPS y la misma queremos que se muestre en la plataforma tanto en el detalle nuevo del activo como en los eventos ó alertas.</span>

<span style="font-weight: 400;">A continuación se muestra donde se debe mostrar esta información personalizada por el cliente.</span>

<span style="font-weight: 400;">es </span><span style="font-weight: 400;">importante</span><span style="font-weight: 400;"> agregar un título llamado “información extra” sobre las filas que se agregaran.</span>

**Nuevo detalle de eventos y alertas Nuevo detalle del activo. en columna o ventana.**

<span style="font-weight: 400;"><span id="bkmrk-%C2%A0-2" style="font-weight: normal;">![](https://lh4.googleusercontent.com/-i07-iAogQBQws7O8KquDwqy9kC-riW7R0jz-awfW2bIkWuV8AP1X7tA-4pT7Fmdr72yfiU9zY3CaZbnQBJ77h_y-XFOBhLMePjEgUqF2orOyB65LnEEm6N82sgD0ouGqJ-8chZqZm_o) </span>![](https://lh3.googleusercontent.com/hRGOA82Nrz9GYg0Xf89S0m7V0Wo87HTg-gaaSimt_FXcOtYUJx8natP8dTnLBWk8656uaiKCro4WZ6h5yf37swSXelDGbBJzsNMKyz1oOtyklZ6xQP1-lQHKb0LVy6TzIKHWNQkMc70C)</span>

[![image-1643540213628.png](https://docs.redgps.com/uploads/images/gallery/2022-01/scaled-1680-/image-1643540213628.png)](https://docs.redgps.com/uploads/images/gallery/2022-01/image-1643540213628.png)

<span style="font-weight: 400;">La información se enviará en los reportes utilizando la llave existente “infoextra” con el método del webservice </span>**api/v1/onapp/insertPositionData**<span style="font-weight: 400;"> .</span>

<span style="font-weight: 400;">Límites, el largo total de “infoextra” + “sensor” y “ad” no debe superar los 5 kb. </span>

[![image-1643540346163.png](https://docs.redgps.com/uploads/images/gallery/2022-01/scaled-1680-/image-1643540346163.png)](https://docs.redgps.com/uploads/images/gallery/2022-01/image-1643540346163.png)

[![image-1643540460047.png](https://docs.redgps.com/uploads/images/gallery/2022-01/scaled-1680-/image-1643540460047.png)](https://docs.redgps.com/uploads/images/gallery/2022-01/image-1643540460047.png)

[![image-1643540546803.png](https://docs.redgps.com/uploads/images/gallery/2022-01/scaled-1680-/image-1643540546803.png)](https://docs.redgps.com/uploads/images/gallery/2022-01/image-1643540546803.png)

[![image-1643540604270.png](https://docs.redgps.com/uploads/images/gallery/2022-01/scaled-1680-/image-1643540604270.png)](https://docs.redgps.com/uploads/images/gallery/2022-01/image-1643540604270.png)

# Crear cliente, usuarios, activos, equipos y tarjetas sim - createClientAndElements

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

Este método permite crear cliente, <span style="font-weight: 400;">usuarios, activos, equipos y tarjetas sim</span>.

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

<div><table class="table" style="width: 801px; height: 566px;"><tbody><tr style="height: 41px;"><th style="width: 125.156px; height: 41px;">Parámetros</th><th style="width: 381.463px; height: 41px;">Descripción</th><th style="width: 293.381px; height: 41px;">Ejemplo</th></tr><tr style="height: 58px;"><td style="width: 125.156px; height: 58px;">apikey</td><td style="width: 381.463px; height: 58px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 293.381px; height: 58px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 58px;"><td style="width: 125.156px; height: 58px;">token</td><td style="width: 381.463px; height: 58px;">**(Requerido)** Token devuelto por el método getToken.</td><td style="width: 293.381px; height: 58px;"><div><div><span style="color: #3366ff;">SJXC7PtRJwHcSY8O8DYjpH+c7mMBd0uXmRkw+8DE9TS09wi0Mzw==</span></div></div></td></tr><tr style="height: 69px;"><td style="width: 125.156px; height: 69px;">client</td><td style="width: 381.463px; height: 69px;"><span style="font-weight: 400;"> **(Requerido) <span style="font-weight: 400; color: #333333;"> String en formato json de datos del cliente a crear</span>**  </span>

</td><td style="width: 293.381px; height: 69px;"><span style="color: #3366ff;">{   
 "city":"ciudad",   
 "country\_id":"2",   
 "time\_zone\_id":"16",   
 "state\_id":"21",   
 "postal\_code":"72000",   
 "phone":"1234567890",   
 "email":"correo@host.com",   
 "name":"nombre",   
 "register\_number":"numero registro",   
 "business\_name":"nombre",   
 "full\_address":"direccion",   
 "custom\_field":\[   
 {   
 "name":"nombre campo uno",   
 "value":"valor uno"   
 },   
 {   
 "name":"nombre campo dos",   
 "value":"valor dos"   
 }   
 \]   
} </span>

</td></tr><tr style="height: 69px;"><td style="width: 125.156px; height: 69px;">users</td><td style="width: 381.463px; height: 69px;"><span style="font-weight: 400;"> **(Requerido) <span style="font-weight: 400; color: #333333;">String en formato json de</span>**  datos para crear usuarios.. </span>

</td><td style="width: 293.381px; height: 69px;"><span style="color: #3366ff;">\[   
 {   
 "name": "nombre usuario",   
 "username": "usuario",   
 "password": "contraseña",   
 "email": "correo@host.com",   
 "assets": \[   
 "placa"   
 \],   
 "profile\_id": 1,   
 "send\_email\_welcome": 1   
 },   
 {   
 "name": "nombre usuario",   
 "username": "usuario",   
 "password": "contraseña",   
 "email": "correo@host.com",   
 "assets": \[   
 "placa"   
 \],   
 "profile\_id": 1,   
 "send\_email\_welcome": 0   
 }   
\] </span>

</td></tr><tr style="height: 271px;"><td style="width: 125.156px; height: 271px;"><span style="font-weight: 400;">assets</span></td><td style="width: 381.463px; height: 271px;"><span style="font-weight: 400; color: #333333;"> **(Requerido)** String en formato json de datos para crear equipos, activos y sims </span>

<span style="font-weight: 400; color: #3366ff;"> </span>

</td><td style="width: 293.381px; height: 271px;"><span style="color: #3366ff;">\[</span>

<span style="color: #3366ff;"> {   
 "asset": {   
 "name": "activo",   
 "plate": "placa",   
 "asset\_type\_id": "1",   
 "asset\_brand\_id": "5",   
 "model": "2022",   
 "year": "2022",   
 "custom\_field": \[   
 {   
 "name": "nombre campo uno",   
 "value": "valor uno asset"   
 },   
 {   
 "name": "nombre campo dos",   
 "value": "valor uno asset"   
 }   
 \]   
 },   
 "device": {   
 "device\_type\_id": "1",   
 "name": "equipo",   
 "imei\_uid": "2022202220222022",   
 "brand\_id": "1",   
 "model\_id": "1",   
 "time\_zone\_id": "16",   
 "unlink\_vehicle": "2023-01-01"   
 },   
 "sim": {   
 "name": "nombre",   
 "company\_id": "1",   
 "phone\_number": "12345678900",   
 "nip\_number": "123456"   
 },   
 "IdSensors\_template": 1415   
 }   
\] </span>

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

</div></details><p class="callout info"><span style="font-weight: 400;">Nota: users y assets son un array de objetos, así sea un solo elemento debe estar dentro de un array.</span></p>

<details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me"><summary class="text-muted">Ver tabla de parámetros client:</summary>

<div><table class="table" style="width: 801px; height: 701px;"><tbody><tr style="height: 41px;"><th style="width: 133px; height: 41px;">Parámetros</th><th style="width: 412px; height: 41px;">Descripción</th><th style="width: 256px; height: 41px;">Ejemplo</th></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">city</td><td style="width: 412px; height: 47px;">**(Requerido)** Ciudad.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"city": "ciudad"</span>

</td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">country\_id</td><td style="width: 412px; height: 41px;">**(Requerido)** Id pais.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"country\_id": "2"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">time\_zone\_id</td><td style="width: 412px; height: 47px;">**(Requerido)** Id zona horaria.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"time\_zone\_id":"16"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">state\_id</td><td style="width: 412px; height: 47px;">(Opcional) Estado.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"state\_id":"21",</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">postal\_code</td><td style="width: 412px; height: 47px;">(Opcional) Código postal.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;"> "postal\_code": 72000</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">phone</td><td style="width: 412px; height: 47px;">(Opcional) Teléfono.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"phone":"1234567890"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;"><span style="font-weight: 400;">email</span></td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;">(Opcional) Correo electrónico.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"email":"correo@host.com"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;"><span style="font-weight: 400;">name</span></td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;"> **(Requerido)** Nombre. </span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"name":"nombre"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;"><span style="font-weight: 400;">register\_number</span></td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;">(Opcional) RFC.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"register\_number":"numero registro"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;"><span style="font-weight: 400;">business\_name</span></td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;">(Opcional) Razón social.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"business\_name":"nombre"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;"><span style="font-weight: 400;">full\_addres</span></td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;">(Opcional) Domicilio.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"full\_address":"direccion"</span>

</td></tr><tr style="height: 108px;"><td style="width: 133px; height: 108px;"><span style="font-weight: 400;">custom\_fields</span></td><td style="width: 412px; height: 108px;"><span style="font-weight: 400;">(Opcional) Campos personalizados.</span></td><td style="width: 256px; height: 108px;"><div data-block="true" data-editor="46is8" data-offset-key="es9i-0-0"><div data-offset-key="es9i-0-0"><span style="color: #3366ff;">"custom\_field":\[   
 {   
 "name":"nombre campo uno",   
 "value":"valor uno"   
 }, </span></div><div data-offset-key="es9i-0-0"><span style="color: #3366ff;"> {   
 "name":"nombre campo dos",   
 "value":"valor dos"   
 }   
\] </span></div></div></td></tr></tbody></table>

</div></details><details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me-0"><summary class="text-muted">Ver tabla de parámetros users:</summary>

<div><table class="table" style="width: 801px; height: 930px;"><tbody><tr style="height: 41px;"><th style="width: 165px; height: 41px;">Parámetros</th><th style="width: 380px; height: 41px;">Descripción</th><th style="width: 256px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 165px; height: 41px;">name</td><td style="width: 380px; height: 41px;">(Opcional) Nombre del usuario.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"name": "nombre usuario"</span></td></tr><tr style="height: 47px;"><td style="width: 165px; height: 47px;">username</td><td style="width: 380px; height: 47px;">**(Requerido)** Usuario.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"username": "usuario"</span></td></tr><tr style="height: 47px;"><td style="width: 165px; height: 47px;">password</td><td style="width: 380px; height: 47px;">(Opcional) Contraseña.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"password": "contraseña"</span></td></tr><tr><td style="width: 165px;">email</td><td style="width: 380px;">**(Requerido)** Correo.</td><td style="width: 256px;"><span style="color: #3366ff;">"email": "correo@host.com"</span></td></tr><tr style="height: 47px;"><td style="width: 165px; height: 47px;">assets</td><td style="width: 380px; height: 47px;">(Opcional) <span style="font-weight: 400;">activos.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"assets": \[   
 "placa"   
\] </span></td></tr><tr style="height: 47px;"><td style="width: 165px; height: 47px;">profile\_id</td><td style="width: 380px; height: 47px;">(Opcional) Grupo sistema.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"profile\_id": 1</span>

</td></tr><tr style="height: 47px;"><td style="width: 165px; height: 47px;"><span style="font-weight: 400;">send\_email\_welcome</span></td><td style="width: 380px; height: 47px;"><span style="font-weight: 400;">(Opcional) Enviar correo de bienvenida.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"send\_email\_welcome": 0</span>

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

</div></details><details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me-1"><summary class="text-muted">Ver tabla de parámetros <span style="font-weight: 400;">assets</span>:</summary>

<div><table class="table" id="bkmrk-par%C3%A1metros-descripci" style="width: 801px; height: 358px;"><tbody><tr style="height: 41px;"><th style="width: 155px; height: 41px;">Parámetros</th><th style="width: 328px; height: 41px;">Descripción</th><th style="width: 318px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 155px; height: 41px;">asset</td><td style="width: 328px; height: 41px;">**(Requerido)** String en formato json de vehículo</td><td style="width: 318px; height: 41px;"><span style="color: #3366ff;">"name": "nombre usuario"</span>

<span style="color: #3366ff;">{   
 "name": "activo",   
 "plate": "placa",   
 "asset\_type\_id": "1",   
 "asset\_brand\_id": "5",   
 "model": "2022",   
 "year": "2022",   
 "custom\_field": \[   
 {   
 "name": "nombre campo uno",   
 "value": "valor uno asset"   
 },   
 {   
 "name": "nombre campo dos",   
 "value": "valor uno asset"   
 }   
 \]   
} </span>

</td></tr><tr style="height: 47px;"><td style="width: 155px; height: 47px;">device</td><td style="width: 328px; height: 47px;">**(Requerido)** String en formato json de Equipo.</td><td style="width: 318px; height: 47px;"><span style="color: #3366ff;">{   
 "device\_type\_id": "1",   
 "name": "equipo",   
 "imei\_uid": "202220222022202212055",   
 "brand\_id": "1",   
 "model\_id": "1",   
 "time\_zone\_id": "16",   
 "unlink\_vehicle": "2023-01-01"   
} </span>

</td></tr><tr style="height: 47px;"><td style="width: 155px; height: 47px;">sim</td><td style="width: 328px; height: 47px;">**(Requerido)** String en formato json de chip.</td><td style="width: 318px; height: 47px;"><span style="color: #3366ff;">{   
 "name": "sim12055",   
 "company\_id": "1",   
 "phone\_number": "1234567890012055",   
 "nip\_number": "123456"   
} </span>

</td></tr><tr style="height: 41px;"><td style="width: 155px; height: 41px;">IdSensors\_template</td><td style="width: 328px; height: 41px;">(Opcional) Plantilla.</td><td style="width: 318px; height: 41px;"><span style="color: #3366ff;">"IdSensors\_template": 1415</span></td></tr></tbody></table>

</div></details><details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me-2"><summary class="text-muted">Ver tabla de parámetros asset:</summary>

<div><table class="table" id="bkmrk-par%C3%A1metros-descripci-0" style="width: 801px; height: 346px;"><tbody><tr style="height: 41px;"><th style="width: 133px; height: 41px;">Parámetros</th><th style="width: 412px; height: 41px;">Descripción</th><th style="width: 256px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">name</td><td style="width: 412px; height: 41px;">**(Requerido)** Nombre.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"name": "activo12055",</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">plate</td><td style="width: 412px; height: 47px;">**(Requerido)** Placa.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"plate": "placa"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">asset\_type\_id</td><td style="width: 412px; height: 47px;">**(Requerido)** Id tipo.</td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"asset\_type\_id": "1"</span></td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">marca</td><td style="width: 412px; height: 41px;">(Opcional) Id Marca.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"asset\_brand\_id": "5"</span></td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">model</td><td style="width: 412px; height: 41px;">(Opcional) Modelo.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"model": "2022"</span></td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">year</td><td style="width: 412px; height: 41px;">(Opcional) Año.</td><td style="width: 256px; height: 41px;"><span style="color: #3366ff;">"year": "2022",</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">assets</td><td style="width: 412px; height: 47px;"><span style="font-weight: 400;">(Opcional) Campos personalizados.</span></td><td style="width: 256px; height: 47px;"><span style="color: #3366ff;">"custom\_field": \[ {   
 "name":"nombre campo uno",   
 "value":"valor uno asset"   
}, {   
 "name":"nombre campo dos",   
 "value":"valor uno asset"   
}\] </span></td></tr></tbody></table>

</div></details><details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me-3"><summary class="text-muted">Ver tabla de parámetros device:</summary>

<div><table class="table" id="bkmrk-par%C3%A1metros-descripci-1" style="width: 801px; height: 358px;"><tbody><tr style="height: 41px;"><th style="width: 133px; height: 41px;">Parámetros</th><th style="width: 375px; height: 41px;">Descripción</th><th style="width: 293px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">device\_type\_id</td><td style="width: 375px; height: 41px;">**(Requerido)** Id tipo dispositivo.</td><td style="width: 293px; height: 41px;"><span style="color: #3366ff;">"device\_type\_id": "1"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">name</td><td style="width: 375px; height: 47px;">**(Requerido)** Nombre.</td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">"name": "equipo"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">imei\_uid</td><td style="width: 375px; height: 47px;">(Opcional) Imei.</td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">"imei\_uid": "202220222022202212055"</span></td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">brand\_id</td><td style="width: 375px; height: 41px;">**(Requerido)** Id marca.</td><td style="width: 293px; height: 41px;"><span style="color: #3366ff;">"brand\_id": "1"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">model\_id</td><td style="width: 375px; height: 47px;">**(Requerido)** <span style="font-weight: 400;">Id modelo.</span></td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">"model\_id": "1"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">time\_zone\_id</td><td style="width: 375px; height: 47px;">(Opcional) Id zona horaria.</td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">"time\_zone\_id": "16"</span>

</td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">unlink\_vehicle</td><td style="width: 375px; height: 47px;"><span style="font-weight: 400;">(Opcional) Fecha.</span></td><td style="width: 293px; height: 47px;"><span style="color: #3366ff;">"unlink\_vehicle": "2023-01-01"</span>

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

</div></details><details class="mb-m" id="bkmrk-ver%C2%A0-tabla-de-par%C3%A1me-4"><summary class="text-muted">Ver tabla de parámetros sim:</summary>

<div><table class="table" id="bkmrk-par%C3%A1metros-descripci-2" style="width: 801px; height: 311px;"><tbody><tr style="height: 41px;"><th style="width: 133px; height: 41px;">Parámetros</th><th style="width: 384px; height: 41px;">Descripción</th><th style="width: 284px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">name</td><td style="width: 384px; height: 41px;">**(Requerido)** Nombre.</td><td style="width: 284px; height: 41px;"><span style="color: #3366ff;">"name": "sim12055"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">company</td><td style="width: 384px; height: 47px;">(Opcional) Id compania.</td><td style="width: 284px; height: 47px;"><span style="color: #3366ff;">"company\_id": "1"</span></td></tr><tr style="height: 47px;"><td style="width: 133px; height: 47px;">phone\_number</td><td style="width: 384px; height: 47px;">**(Requerido)** Númeor de telefono.</td><td style="width: 284px; height: 47px;"><span style="color: #3366ff;">"phone\_number": "1234567890012055"</span></td></tr><tr style="height: 41px;"><td style="width: 133px; height: 41px;">nip\_number</td><td style="width: 384px; height: 41px;">(Opcional) nip.</td><td style="width: 284px; height: 41px;"><span style="color: #3366ff;">"nip\_number": "123456"</span></td></tr></tbody></table>

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

```JSON
curl --location --request POST 'http://api.service24gps.com/api/v1/createclientandelements' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: PHPSESSID=bduahaoj4mpc5h67p39fn0ahh6' \
--data-urlencode 'token=SJx5eXC7PtSP98YutHgP/wc990+6mK+PFfw2RVblNgQx0PyoR1v/sg==' \
--data-urlencode 'client={
  "city": "puebla",
  "country_id": "2",
  "time_zone_id": "16",
  "state_id": "21",
  "postal_code": "72810",
  "phone": "12345678",
  "email": "caguilar@navitrack.com",
  "name": "apiprod1201",
  "register_number": "clienteapi29c29",
  "business_name": "cliente api",
  "full_address": "Primer retorno de Osa Menor número 2, oficina 301, San Andrés Cholula, Puebla, México.",
  "custom_field": [{"name":"Campo Personalizado 1","value":"Testing 1"},{"name":"Campo Personalizado 2","value":"Testing 2"}]
}' \
--data-urlencode 'users=[
  {
    "name": "nombre usuario",
    "username": "usuario",
    "password": "contraseña",
    "email": "correo@host.com",
    "assets": [
      "placa"
     ],
    "profile_id": 1,
    "send_email_welcome": 1
  },
  {
    "name": "nombre usuario",
    "username": "usuario",
    "password": "contraseña",
    "email": "correo@host.com",
    "assets": [
      "placa"
     ],
    "profile_id": 1,
    "send_email_welcome": 0
  }
]' \
--data-urlencode 'assets=[
  {
    "asset": {
      "name": "activo",
      "plate": "placa",
      "asset_type_id": "1",
      "asset_brand_id": "5",
      "model": "2022",
      "year": "2022",
      "custom_field": [ {
        "name":"nombre campo uno",
        "value":"valor uno asset"
      }, {
        "name":"nombre campo dos",
        "value":"valor uno asset"
      }]
    },
    "device": {
      "device_type_id": "1",
      "name": "equipo",
      "imei_uid": "2022202220222022",
      "brand_id": "1",
      "model_id": "1",
      "time_zone_id": "16",
      "unlink_vehicle": "2023-01-01"
    },
    "sim": {
      "name": "nombre",
      "company_id": "1",
      "phone_number": "12345678900",
      "nip_number": "123456"
    },
    "IdSensors_template": 1415
  }
]' \
--data-urlencode 'apikey=f77c31ce81907cc5f0ecffeda60fb4f6'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "client": "Se creo el cliente apiprod1201",
        "users": [
            "Se creo el usuario nombre usuario",
            "Se creo el usuario nombre usuario"
        ],
        "sim": [
            "Se creo la sim nombre"
        ],
        "device": [
            "Se creo el equipo 2022202220222022"
        ],
        "assets": [
            "Se creo el vehiculo activo"
        ]
    }
}
```

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

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

</td><td style="width: 243px;">**Tipo**</td></tr><tr style="height: 47px;"><td style="width: 174px; height: 47px;"><div><div>client</div></div></td><td style="width: 392px; height: 47px;">Descripción cliente creado

</td><td style="width: 243px; height: 47px;">JSON</td></tr><tr><td style="width: 174px;"><div><div>users</div></div></td><td style="width: 392px;">Listado usuarios creados

</td><td style="width: 243px;">JSON</td></tr><tr><td style="width: 174px;"><div><div><div><div>sim</div></div></div></div></td><td style="width: 392px;">Listado tarjetas creadas

</td><td style="width: 243px;">JSON</td></tr><tr><td style="width: 174px;"><div><div><div><div>device</div></div></div></div></td><td style="width: 392px;">Listado equipos creados

</td><td style="width: 243px;">JSON</td></tr><tr><td style="width: 174px;"><div><div><div><div>assets</div></div></div></div></td><td style="width: 392px;">Listado activos creados

</td><td style="width: 243px;">JSON</td></tr></tbody></table>

</details><div id="bkmrk-"></div>

# Obtiene el listado de zonas horarias - getTimeZone

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

Obtiene el listado de zonas horarias (GMT).

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

<div><table class="table" style="height: 99px; width: 804px;"><tbody><tr style="height: 57px;"><td style="width: 108px; height: 57px;">apikey</td><td style="width: 400px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 24px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> </span></td><td style="width: 278px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 108px; height: 42px;">token</td><td style="width: 400px; height: 42px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 24px; height: 42px;"><span style="color: #3366ff;"> </span></td><td style="width: 278px; height: 42px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "GMT+00:00",
        "2": "GMT+01:00",
        "3": "GMT+02:00",
        "4": "GMT+03:00",
        "5": "GMT+04:00",
        "6": "GMT+05:00",
        "7": "GMT+06:00",
        "8": "GMT+07:00",
        "9": "GMT+08:00",
        "10": "GMT+09:00",
        "11": "GMT+10:00",
        "12": "GMT-01:00",
        "13": "GMT-02:00",
        "14": "GMT-03:00",
        "15": "GMT-04:00",
        ...
    }
}
```

# Obtiene el listado tipos de activos - getVehiclesType

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

Obtiene el listado tipos de vehículos.

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

<div><table class="table" style="height: 99px; width: 804px;"><tbody><tr style="height: 57px;"><td style="width: 108px; height: 57px;">apikey</td><td style="width: 400px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 24px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> </span></td><td style="width: 279px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 108px; height: 42px;">token</td><td style="width: 400px; height: 42px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 24px; height: 42px;"><span style="color: #3366ff;"> </span></td><td style="width: 279px; height: 42px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "Automovil",
        "2": "PickUp",
        "3": "Camion",
        "4": "Camioneta",
        "5": "Colectivo",
        "6": "Ambulancia",
        "7": "Bicicleta",
        "8": "Peaton",
        "9": "Moto",
        "10": "Autobus",
        "11": "Grua",
        "12": "Normal",
        "13": "Rampa",
        "14": "Grande",
        "15": "Ergodinamica",
      	...
    }
}
```

# Obtiene el listado marcas de activos - getVehiclesBrands

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

Obtiene el listado marcas de activos.

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

<div><table class="table" style="height: 99px; width: 804px;"><tbody><tr style="height: 57px;"><td style="width: 108px; height: 57px;">apikey</td><td style="width: 400px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 24px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> </span></td><td style="width: 278px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 108px; height: 42px;">token</td><td style="width: 400px; height: 42px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 24px; height: 42px;"><span style="color: #3366ff;"> </span></td><td style="width: 278px; height: 42px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "Ford",
        "2": "Fiat",
        "3": "Peugeot",
        "4": "Mercedes Benz",
        "5": "Volkswagen",
        "6": "Renault",
        "7": "Chevrolet",
        "8": "Nissan",
        "9": "Volvo",
        "10": "Irizar",
        "11": "Dodge",
        "12": "Toyota",
        "13": "Kenworth",
        "14": "Jeep",
        "15": "Hyundai",
      	...
    }
}
```

# Eliminar Activo - deleteAsset

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

Éste método permite eliminar un activo específico. Se elimina también el equipo asignado al activo y se quita de los permisos en clientes y/o usuarios.

<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;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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: 146px;">asset\_id</td><td style="width: 370px;" width="351">**(Requerido)** Identificador único del Activo en el sistema.

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

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

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

##### Respuesta de ejemplo:

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

<p class="callout info">**Nota:** Si no existe el registro del Activo se mostrará un mensaje de error.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": 40100,
        "message": "The vehicle does not exist"
    }
}
```

# Eliminar equipo GPS - deleteDevice

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

Este método permite eliminar un Equipo GPS especifico y los Activos asociados al equipo.

<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;"><td style="width: 188px; height: 41px;">**Parámetros**</td><td style="width: 320px; height: 41px;">**Descripción**</td><td style="width: 301px; height: 41px;"><span role="presentation" style="padding-right: 0.1px;">**<span role="presentation">Ejemplo</span>**</span></td></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: 146px;">device\_id</td><td style="width: 370px;" width="351">**(Requerido)** Identificador único del Equipo GPS en el sistema.   
  
El identificador se puede obtener en el método [**getDevices.**](https://docs.redgps.com/books/webservice/page/obtener-dispositivos-getdevices)

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

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

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

##### Respuesta de ejemplo:

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

<p class="callout info">**Nota:** Si no existe el registro del Equipo GPS se mostrará un mensaje de error.</p>

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": 40100,
        "message": "The GPS device does not exist"
    }
}
```

# Obtiene el listado de paises - getCountrys

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

Obtiene el listado de países.

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

<div><div><table class="table" style="height: 99px; width: 804px;"><tbody><tr style="height: 57px;"><td style="width: 108px; height: 57px;">apikey</td><td style="width: 400px; height: 57px;">**(Requerido)** Llave de autorización para uso de los Servicios Web.</td><td style="width: 24px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> </span></td><td style="width: 278px; height: 57px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 108px; height: 42px;">token</td><td style="width: 400px; height: 42px;">**(Requerido)** Token devuelto por el método [**getToken**](https://docs.redgps.com/books/webservice/page/metodo-de-autenticacion-gettoken-7ef).</td><td style="width: 24px; height: 42px;"><span style="color: #3366ff;"> </span></td><td style="width: 278px; height: 42px;"><span style="color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr></tbody></table>

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

```shell
curl --location 'https://api.service24gps.com/api/v1/getCountrys' \
--form 'apikey="9e815ce8b91e40379407320cd0a13a98"' \
--form 'token="dS4cs7M/gkR8in6Y5Jd3KLO9qKBO4btc4wFTmb69JfVDslam2j+vJw=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "1": "Argentina",
        "2": "México",
        "4": "Republica Dominicana",
        "5": "Bolivia",
        "6": "Brasil",
        "7": "Chile",
        "8": "Colombia",
        "9": "Costa Rica",
        "10": "Ecuador",
        "11": "El Salvador",
        "12": "EEUU",
        "13": "Guatemala",
        "15": "Honduras",
        "16": "Nicaragua",
        "17": "Panama",
        "18": "Paraguay",
        "19": "Peru",
        "20": "Uruguay",
        ...
    }
}
```

# 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 a los clientes del distribuidor.

<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",
            "cliente": "DEMO Cliente 1",
            "usuario": "driver_test1",
            "password": "cGFzczEyMw==",
            "idcliente": "6660"
        },
        {
            "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",
            "cliente": "DEMO Cliente 2",
            "usuario": "driver_test2",
            "password": "g7z8zGFzcyM78=",
            "idcliente": "6661"
        },
        {
            "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",
            "cliente": "DEMO Cliente 3",
            "usuario": "driver_test3",
            "password": "c789epczEyM78=",
            "idcliente": "6662"
        }
    ]
}
```

<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><td style="width: 174px;">cliente

</td><td style="width: 392px;">Nombre del cliente al que pertenece el conductor

</td><td style="width: 243px;">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><tr><td style="width: 174px;">idcliente

</td><td style="width: 392px;">Id del cliente al que pertenece el conductor

</td><td style="width: 243px;">Entero</td></tr></tbody></table>

</div></details>

# Listar vehículos - vehicleGetAllComplete

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

Este método devuelve el listado de los vehículos.

<p class="callout danger">**IMPORTANTE:** No recomendamos utilizar este método para consultar de forma recurrente las posiciones de todos los Activos. Si necesitas recibir continuamente la información reportada por tus Activos en un sistema externo, utiliza un [Web Service genérico](https://docs.redgps.com/books/webservices-de-retransmision-de-datos/page/webservice-de-reenvio-generico/es).</p>

<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/ondelivery/vehicleGetAllComplete' \
--header 'Cookie: PHPSESSID=6g5p2n9vso19j8vgdc9fcuind1' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": [
        {
            "id": "86630",
            "nombre": "Guardia 1",
            "patente": "Gua-123",
            "idgps": "APPSHARED42201644869554060",
            "gatewayip": "107.170.254.11",
            "conductor": "",
            "grupo": null,
            "marca": null,
            "modelo": "",
            "color": "",
            "anio": "0",
            "numero_serie": "",
            "num_economico": "",
            "tipo_vehiculo": "Peaton",
            "icono_vehiculo": "/commons/svg/3d_micro.php?c=CC83ED&grados=235",
            "ignorar_equipo": "0",
            "idequipo_gps": "196982",
            "idtipo_vehiculo": "8",
            "idmarca_vehiculo": "0",
            "idconductor": "0",
            "idgrupo_vehiculo": "0",
            "idclientepropietario": "6661",
            "clientepropietario": "DEMO Cliente 2"
        },
        {
            "id": "86966",
            "nombre": "Patrulla guardia 1",
            "patente": "XTX-123",
            "idgps": null,
            "gatewayip": null,
            "conductor": "",
            "grupo": "Grupo Guardias",
            "marca": "Volkswagen",
            "modelo": "Polo",
            "color": "",
            "anio": "2018",
            "numero_serie": "1234567890",
            "num_economico": "uh43",
            "tipo_vehiculo": "Automovil",
            "icono_vehiculo": "./Iconos/Vehiculos/new_668_android-phone-color.png",
            "ignorar_equipo": null,
            "idequipo_gps": "121992",
            "idtipo_vehiculo": "1",
            "idmarca_vehiculo": "5",
            "idconductor": "0",
            "idgrupo_vehiculo": "5457",
            "idclientepropietario": "6660",
            "clientepropietario": "DEMO Cliente 1"
        }
    ]
}
```

<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: 482px;"><tbody><tr><th style="width: 174px;">Campo</th><th style="width: 392px;">Descripción

</th><th style="width: 243px;">Formato</th></tr><tr><td style="width: 174px;">id</td><td style="width: 392px;">Identificador único del vehículo.</td><td style="width: 243px;">Entero</td></tr><tr><td style="width: 174px;">nombre</td><td style="width: 392px;">Nombre asignado al vehículo</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">patente</td><td style="width: 392px;">Patente del vehículo

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr><td style="width: 174px;">idgps

</td><td style="width: 392px;">identificador gps

</td><td style="width: 243px;">Cadena de Texto</td></tr><tr style="height: 35px;"><td style="height: 35px; width: 174px;">gatewayip

</td><td style="height: 35px; width: 392px;">ip del gateway

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

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

</td><td style="height: 35px; width: 392px;">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;">grupo

</td><td style="height: 35px; width: 392px;">Nombre del grupo

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

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

</td><td style="height: 35px; width: 392px;">Marca del vehículo</td><td style="height: 35px; width: 243px;">Cadena de Texto

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

</td><td style="height: 35px; width: 392px;">Modelo del vehículo

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

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

</td><td style="height: 35px; width: 392px;">Color de vehículo

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

</td></tr><tr><td style="width: 174px;">anio

</td><td style="width: 392px;">Año del vehículo

</td><td style="width: 243px;">Cadena de Texto

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

</td><td style="height: 35px; width: 392px;">Numero de serie

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

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

</td><td style="height: 35px; width: 392px;">Número económico

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

</td></tr><tr style="height: 57px;"><td style="height: 57px; width: 174px;">tipo\_vehiculo

</td><td style="height: 57px; width: 392px;">Tipo de activo (Automovil, Camión, etc...)

</td><td style="height: 57px; width: 243px;">Cadena de Texto

</td></tr><tr><td style="width: 174px;">icono\_vehiculo

</td><td style="width: 392px;">Icono asignado al activo en la plataforma

</td><td style="width: 243px;">Cadena de Texto

</td></tr><tr><td style="width: 174px;">ignorar\_equipo

</td><td style="width: 392px;">Indica si se deben descartar las tramas del equipo

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div>idequipo_gps</div></div></td><td style="width: 392px;">Identificador único del equipo gps

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div>idtipo_vehiculo</div></div></div></div></td><td style="width: 392px;">Identificador único del tipo de activo

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div><div><div>idmarca_vehiculo</div></div></div></div></div></div></td><td style="width: 392px;">Identificador único de la marca del activo

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div><div><div><div><div>idconductor</div></div></div></div></div></div></div></div></td><td style="width: 392px;">Identificador único del conductor

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div><div><div><div><div><div><div>idgrupo_vehiculo</div></div></div></div></div></div></div></div></div></div></td><td style="width: 392px;">Identificador único del grupo al que pertenece el activo

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div><div><div><div><div><div><div><div><div>idclientepropietario</div></div></div></div></div></div></div></div></div></div></div></div></td><td style="width: 392px;">Id del cliente propietario del activo

</td><td style="width: 243px;">Entero

</td></tr><tr><td style="width: 174px;"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>clientepropietario</div></div></div></div></div></div></div></div></div></div></div></div></div></div></td><td style="width: 392px;">Nombre del cliente propietario del activo

</td><td style="width: 243px;">Cadena de Texto

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

</div></details>

# Lista las licencias de una factura - getInvoiceDetail

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

Para obtener el listado de las licencias pertenecientes a la factura consultada.

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

<div><table class="table" style="width: 810px; height: 351.375px;"><tbody><tr style="height: 41.7969px;"><th style="width: 133px; height: 41.7969px;">Parámetros</th><th style="width: 306px; height: 41.7969px;">Descripción</th><th style="width: 93px; height: 41.7969px;">Longitud </th><th style="width: 278px; height: 41.7969px;">Ejemplo</th></tr><tr style="height: 58.5938px;"><td style="width: 133px; height: 58.5938px;">apikey</td><td style="width: 306px; height: 58.5938px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 93px; height: 58.5938px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;"> 50</span></td><td style="width: 278px; height: 58.5938px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41.7969px;"><td style="width: 133px; height: 41.7969px;">token</td><td style="width: 306px; height: 41.7969px;">Token devuelto por el método **getToken**.</td><td style="width: 93px; height: 41.7969px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">500</span></td><td style="width: 278px; height: 41.7969px;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==

</td></tr><tr style="height: 75.3906px;"><td style="width: 133px; height: 75.3906px;">num\_factura</td><td style="width: 306px; height: 75.3906px;">Número de la factura</td><td style="width: 93px; height: 75.3906px;"><span style="color: #3366ff;">8</span></td><td style="width: 278px; height: 75.3906px;">**23435**</td></tr></tbody></table>

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

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

##### Respuesta de ejemplo:

```JSON
{
	"status": 200,
    "data": [
      {
        "cliente": "Luis Rojas",
        "vehiculo": "Aveo",
        "placa": "ADU029",
        "gps": "867553056764707",
        "tipo": "GPS",
        "comentario": null
      },
      {
        "cliente": "Roberto Gómez",
        "vehiculo": "Yaris",
        "placa": "BKN482",
        "gps": "867204060343613",
        "tipo": "GPS",
        "comentario": null
      },
      {
        "cliente": "María Fernández",
        "vehiculo": "Corolla",
        "placa": "XYZ789",
        "gps": "861234059182734",
        "tipo": "GPS",
        "comentario": null
      },
      {
        "cliente": "Carlos Mendoza",
        "vehiculo": "Hilux",
        "placa": "PQR456",
        "gps": "865432098712345",
        "tipo": "OBD",
        "comentario": null
      },
      {
        "cliente": "Daniela Suárez",
        "vehiculo": "Tracker",
        "placa": "JHS912",
        "gps": "869876543210987",
        "tipo": "GPS",
        "comentario": null
      },
      {
        "cliente": "Ana Gómez",
        "vehiculo": "Civic",
        "placa": "MNO123",
        "gps": "863456789012345",
        "tipo": "LBS",
        "comentario": null
      },
      {
        "cliente": "Jorge Ramírez",
        "vehiculo": "Sentra",
        "placa": "JKL890",
        "gps": "864567890123456",
        "tipo": "GPS",
        "comentario": null
      },
      {
        "cliente": "Laura Torres",
        "vehiculo": "Versa",
        "placa": "GHI567",
        "gps": "867890123456789",
        "tipo": "OBD",
        "comentario": null
      }
    ]
}
```