...
- Endpoint:
/acreditaciones/historico
- Método:
POST
- Descripción: Devuelve los datos del histórico.
- Headers:
API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled
Request Body:
Code Block language py title json linenumbers true { "acreditacionfiltros": { "fechaInicio": "01/09/2024", "usuariofechaFinal": "test111/09/2024", "idAcreditacionestado":274 "APROBADO" } }
Expand title Consideraciones del Request "fechaInicio" => Debe ser numérico, contener el número de documento de la persona a quien se le va a asociar como colaborador de la empresa.tener el formato de "dd/mm/yyyy"
"fechaFinal" => Debe > Debe tener ese formato, no debe contener caracteres especiales ni espacios.el formato de "dd/mm/yyyy"
"estado" => Valores posibles: APROBADO, APROBADO-EJECUTADO y PENDIENTE.Se puede enviar uno o todos los campos vacios => "" Esto devolverá todos los registros.
Response Body:
Code Block language py title json linenumbers true { "header": { "codReturn": 0, "txtReturn": "SUCCESS" }, "data": [ { "descripcion": "Orden para Joel", "estado": "APROBADO", "fechaAprob": "03/09/2024 09:30:22", "fechaEjec": "03/09/24 09:30", "fechaInsert": "03/09/2024 09:30:22", "glosa": "ACREDITACION DE SALARIOS", "idAcreditacion": "570", "montoTotal": "1000000", "usuarioAprob": "test1", "usuarioEjec": "test1", "usuarioInsert": "test1" }, { "descripcion": "Orden Nro. 5500", "estado": "APROBADO", "fechaAprob": "02/09/2024 10:53:40", "fechaEjec": "02/09/24 10:53", "fechaInsert": "02/09/2024 10:53:40", "glosa": "ACREDITACION DE SALARIOS", "idAcreditacion": "568", "montoTotal": "1000000", "usuarioAprob": "test1", "usuarioEjec": "test1", "usuarioInsert": "test1" }, { "descripcion": "Joel acreditación", "estado": "APROBADO", "fechaAprob": "02/09/2024 10:52:23", "fechaEjec": "02/09/24 10:52", "fechaInsert": "02/09/2024 10:52:23", "glosa": "ACREDITACION DE SALARIOS", "idAcreditacion": "567", "montoTotal": "1000000", "usuarioAprob": "test1", "usuarioEjec": "test1", "usuarioInsert": "test1" }, { "descripcion": "Acreditación Joel", "estado": "APROBADO", "fechaAprob": "02/09/2024 10:51:10", "fechaEjec": "02/09/24 10:51", "fechaInsert": "02/09/2024 10:51:10", "glosa": "ACREDITACION DE SALARIOS", "idAcreditacion": "566", "montoTotal": "1000000", "usuarioAprob": "test1", "usuarioEjec": "test1", "usuarioInsert": "test1" } ] }
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
curl -X POST "http://10.5.1.31:8103/rest/acreditaciones/crear" \
-H "API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled" \
-H "Content-Type: application/json" \
-d '{
"acreditacion": {
"usuario": "test1",
"descripcion": "prueba 1",
"lista": [
{
"nroDocumento": 4040440,
"monto": 1500000
},
{
"nroDocumento": 4040440,
"monto": 1200000
},
{
"nroDocumento": 404011111,
"monto": 1600000
}
]
}
}' |
EjecutarAcreditacion
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
curl -X POST "http://10.5.1.31:8103/rest/acreditaciones/ejecutar" \
-H "API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled" \
-H "Content-Type: application/json" \
-d '{
"acreditacion": {
"usuario": "test1",
"idAcreditacion": 274
}
}' |
HistoricoAcreditacion
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
curl -X POST "http://10.5.1.31:8103/rest/acreditaciones/historico" \ -H "API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled" \ -H "Content-Type: application/json" \ -d '{ "filtros": { "nroDocumentofechaInicio": 404011111"01/09/2024", "montofechaFinal": 1600000"11/09/2024", } "estado": "APROBADO" ] } }' |
...
ConsultarDisponible
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
curl -X POST "http://10.5.1.31:8103/rest/acreditaciones/ejecutardisponible" \ -H "API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled" \ -H "Content-Type: application/json" \ -d '{ "acreditacion": { "usuario": "test1", "idAcreditacion": 274 } }' |
Este documento proporciona una guía completa para la integración y uso de la API de Dimo Empresa. Asegúrate de seguir las mejores prácticas de seguridad y yo me comprometo a mantener actualizada la documentación para reflejar cualquier cambio en la API. |
| Versión de la doc: v1.0.1.0 |
---|
...