Listar servicio con estatus - getTypeServiceWithStatus
POST https://api.service24gps.com/api/v1/onservice/getTypeServiceWithStatus
Obtiene todos los servicios con estatus de un cliente.
Ver parámetros de solicitud:
Parámetros | Descripción | Ejemplo |
---|---|---|
apikey | Llave de autorización para uso de los Servicios Web. | 25sdsd234234aa93sdsdsd37c70118e72 |
token | Token devuelto por el método getToken. | wfszR/oPIQKjt5HT5NgjDnZ2SAZQ== |
Solicitud de ejemplo:
curl --location --request POST 'api.service24gps.com/api/v1/onservice/getTypeServiceWithStatus' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="wfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="'
Respuesta de ejemplo:
{
"status": 200,
"data": [
{
"id": "55",
"name": "GRÚA",
"data_extra": {
"icon_mobile": "e922",
"icon": "i-vehiculos"
},
"status_available": [
{
"id": "383",
"name": "Nuevo",
"data_extra": {
"allow": 1,
"color_status": "#B1B1B1"
},
"editable": "0",
"type_service": "55",
"service_status": "1"
},
{
"id": "384",
"name": "Programado",
"data_extra": {
"allow": 1,
"color_status": "#999999"
},
"editable": "0",
"type_service": "55",
"service_status": "2"
},
{
"id": "389",
"name": "Reprogramado",
"data_extra": {
"allow": 1,
"color_status": "#F1C40F"
},
"editable": "0",
"type_service": "55",
"service_status": "7"
}
]
},
{
"id": "114",
"name": "PRUEBA MARY",
"data_extra": {
"color": "#000000",
"icon_mobile": "e901",
"icon": "i-clock-r"
},
"status_available": [
{
"id": "809",
"name": "Nuevo",
"data_extra": {
"allow": 1,
"color_status": "#B1B1B1"
},
"editable": "0",
"type_service": "114",
"service_status": "1"
},
{
"id": "814",
"name": "Cancelado",
"data_extra": {
"allow": 1,
"color_status": "#C82C28"
},
"editable": "0",
"type_service": "114",
"service_status": "6"
},
{
"id": "815",
"name": "Reprogramado",
"data_extra": {
"allow": 1,
"color_status": "#F1C40F"
},
"editable": "0",
"type_service": "114",
"service_status": "7"
}
]
}
]
}
Ver campos de respuesta:
Campo |
Descripción |
Formato |
---|---|---|
id | Identificador único del servicio. | Entero |
name | Nombre del servicio. | Cadena de texto |
data_extra |
Json con datos extra. |
JSON |
editable |
Editable. |
Entero |
type_service |
Tipo de servicio. |
Entero |
service_status |
Estatus del servicio. |
Entero |
status_available
|
Json con status disponible. |
JSON |