Paths

Servicio encargado de recibir notificaciones de cambio de estado.

Las aplicaciones que se comunican con Archive están obligadas a implementar un servicio REST como este que acepte una petición POST con los parámetros que se detallan. Nota: La URL puede cambiar.

POST /services/rest/notification

Parameters

Type Name Description Required Schema Default

BodyParameter

notificationData

Objeto que almacena la lista de notificaciones

true

[NotificationsData]

HeaderParameter

credential.idaplicacion

Credenciales: Identificador de la app

true

string

HeaderParameter

credential.password

Credenciales: Password de la app

true

string

Responses

HTTP Code Description Schema

200

OK

object

201

Archive ha sido correctamente notificado

object

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

Model Schema:

{
    "notificationData": [
        {
            "codigo": "string",
            "descripcion": "string",
            "expediente": {
                "acta": {
                    "data": "string",
                    "name": "string"
                },
                "codigoEstado": "string",
                "estado": "string",
                "identificador": "string",
                "identificadorArchivo": "string",
                "identificadorSerieDocumental": "string",
                "justificante": {
                    "data": "string",
                    "name": "string"
                }
            }
        }
    ]
}                            

Ejemplo:

POST /services/rest/notification

{
    "notificationData": [
        {
            "codigo": "600",
            "descripcion": "Expediente cambiado de estado",
            "expediente": {
                "acta": null,
                "codigoEstado": "PENDIENTE_INGRESO",
                "documento": null,
                "estado": "PENDIENTE DE INGRESO",
                "identificador": "ES_E00106604_2014_EXP_ACTASEELL_248",
                "identificadorArchivo": "CENTROARCHIVOACTAS",
                "identificadorSerieDocumental": "202451",
                "justificante": null,
                "metadato": null
            },
            "locale": "es-ES"
        },
        {
            "codigo": "600",
            "descripcion": "Expediente cambiado de estado",
            "expediente": {
                "acta": {
                    "data": "ES_E00106604_2014_EXP_ACTASEELL_248_actaDeIngreso.pdf",
                    "name": "<-FICHERO PDF CODIFICADO EN BASE64->"
                },
                "codigoEstado": "INGRESO",
                "documento": null,
                "estado": "INGRESO",
                "identificador": "ES_E00106604_2014_EXP_ACTASEELL_248",
                "identificadorArchivo": "CENTROARCHIVOACTAS",
                "identificadorSerieDocumental": "202451",
                "justificante": {
                    "data": "ES_E00106604_2014_EXP_ACTASEELL_248_actaDeIngreso_REC.pdf",
                    "name": "<-FICHERO PDF CODIFICADO EN BASE64->"
                },
                "metadato": null
            },
            "locale": "es-ES"
        }
    ]
}