Elenco policy privacy attive

GET [baseUrl]/api/sync/v1/gc/policy-privacy

Descrizione

API per ottenere l'elenco completo delle policy privacy attive.

Parametri richiesta

Nessun parametro richiesto.

Esempio richiesta

sh
curl --location --request GET '[baseUrl]/api/sync/v1/gc/policy-privacy' \
--header 'AccessToken: {{token}}'

Risposta

JSON
{
    "statusCode": 200,
    "errorCode": null,
    "message": null,
    "result": {
        "totalCount": 2,
        "totalPages": 1,
        "page": 1,
        "count": 2,
        "records": null,
        "record": {
            "policies": [
                {
                    "fidGdpr": 10,
                    "label": "Termini e condizioni privacy",
                    "mandatory": true,
                    "dateStart": "2024-01-01",
                    "dateEnd": null,
                    "consentText": "..."
                },
                {
                    "fidGdpr": 11,
                    "label": "Marketing commerciale",
                    "mandatory": false,
                    "dateStart": "2024-01-01",
                    "dateEnd": null,
                    "consentText": "..."
                }
            ]
        }
    },
    "debug": null
}

Policy

Field Type Description
fidGdpr int Identificativo della policy GDPR
label string Etichetta descrittiva della policy
mandatory bool Indica se l'accettazione è obbligatoria
dateStart string Data inizio validità (YYYY-MM-DD)
dateEnd string Data fine validità (YYYY-MM-DD); null se aperta
consentText string Testo del consenso (informativo)

Esempio risposta non autorizzato

JSON
{
    "statusCode": 403,
    "errorCode": "4x003",
    "message": "Not authorized.",
    "result": null,
    "debug": null
}