Clocking action
Description
Service for the registration of workers on a project
URL
The URL of the production service is available at https://iot.nalandaglobal.com/gestiona/fichaje/fichar.action.
Operations
Fichar-action
Supported Platforms: NATIONAL / INTERNATIONAL
Request:
{
"idDispositivo": "ID_DISPOSITIVO_ASIGNADO_A_OBRA",
"fichajes": [
{
"idItem": "74729324R_ENTRADA2017-10-16T07:00:00",
"accion": "ENTRADA",
"cid": ID_NUMERICO_CONTRATA,
"fecha": "2019-01-15T07:00:00",
"codT": "DNI_TRABAJADOR"
}
]
}
Request fields:
- idDispositivo: Identifier that the contract has within the Obralia system.
- fichajes: Collection of elements clockings
- idItem : Identifier of the booking
- accion : Clocking type INPUT or OUTPUT
- cid : Numerical code in Obralia of the contract
- fecha: Date in format YYYYY-MM-ddThh:mm:ss
- codT : ID of the employee
Response:
{
"resultadosFichajes": [{
"cifConstructora": "XXXXXXXX",
"cifObra": "YYYYYYYYY",
"codContrata": "ZZZZZZZZZ",
"codObra": 18,
"descConstructora": "RAZÓN SOCIAL CONSTRUCTORA",
"descContrata": "RAZÓN SOCIAL CONTRATA",
"descObra": "00001 - 2 VIVIENDAS ZARZALEJO",
"errorCode": "CODIGO_DE_ERROR_SI_LO_HAY",
"error": "DESCRIPCIO_ERROR",
"est": "No Apto" | “Apto” | “Pendiente” | “Deficiente”,
"estado": "No Apto" | “Apto” | “Permitido” | “Denegado”,
"fechaEntrada": "2019-01-15T07:00:00",
"idContrata": ID_CONTRATA,
"idItem": "74729324R_ENTRADA2017-10-16T07:00:00",
"info": "",
"infoTrabajador": {
"apellidos": "BENITEZ",
"codT": "DNI_TRABAJADOR",
"estado": "R" | "G" | "A" | "D"
"img": "/gestiona/trabajadores/doc/2/25879/25879_ope_DSC_foto_20190909_1513_1568034791476.PNG",
"est": "R" | "G" | "P" | "O",
"contrataNombre": " RAZÓN SOCIAL CONTRATA",
"nombre": "Angel"
},
"mensajeInfoAdicional": ""
}
]
}