{
  "name": "Dataroia — Vérification décès (contact)",
  "flow": [
    {
      "id": 1,
      "module": "http:ActionSendData",
      "version": 3,
      "metadata": {
        "designer": { "x": 0, "y": 0 },
        "restore": { "expect": { "method": { "label": "POST" }, "bodyType": { "label": "Raw" }, "contentType": { "label": "JSON (application/json)" } } }
      },
      "mapper": {
        "url": "https://api.dataroia.com/api/v1/deces",
        "method": "post",
        "headers": [
          { "name": "X-API-Key", "value": "VOTRE_CLE_API_DATAROIA" }
        ],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"personnes\": [{\"nom\": \"{{1.lastname}}\", \"prenom\": \"{{1.firstname}}\", \"date_naissance\": \"{{1.birthdate}}\", \"code_postal\": \"{{1.zip}}\"}]}",
        "parseResponse": true,
        "timeout": "30",
        "followRedirect": true,
        "useMtls": false,
        "rejectUnauthorized": true
      },
      "parameters": {
        "handleErrors": false,
        "useNewZLibDeFlate": true
      }
    }
  ],
  "metadata": {
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": { "orphans": [] },
    "zone": "eu1.make.com",
    "notes": "Module HTTP unique appelant POST /api/v1/deces sur un CONTACT. Branche en amont ton trigger CRM (Watch contacts) et en aval 'Update record' en mappant results[0].statut_vital / action / date_deces / score_confiance vers tes champs. nom+prenom obligatoires ; date_naissance (birthdate) et code_postal (zip) fiabilisent le matching. Remplace VOTRE_CLE_API_DATAROIA. Hébergement EU recommandé."
  }
}
