{
  "_comment": "Définitions des champs personnalisés Pipedrive (objet 'organization'). À créer une fois via POST /v1/organizationFields. Pipedrive renvoie pour chaque champ une 'key' (hash 40 car.) à reporter dans le mapping de l'automation. field_type : varchar | varchar_auto | double | date | enum.",
  "objectType": "organizationFields",
  "fields": [
    { "name": "Dataroia — Dénomination",          "field_type": "varchar", "map_to": "denomination" },
    { "name": "Dataroia — Statut SIRENE",          "field_type": "enum",    "map_to": "statut_sirene",
      "options": [ { "label": "Actif" }, { "label": "Cessé" }, { "label": "Fermé" } ] },
    { "name": "Dataroia — Statut établissement",   "field_type": "enum",    "map_to": "etablissement_statut",
      "options": [ { "label": "Actif" }, { "label": "Fermé" } ] },
    { "name": "Dataroia — Niveau d'alerte",        "field_type": "enum",    "map_to": "niveau_alerte",
      "options": [ { "label": "OK" }, { "label": "Suspect" }, { "label": "Alerte" }, { "label": "Invalide" } ] },
    { "name": "Dataroia — Résumé",                 "field_type": "varchar", "map_to": "libelle" },
    { "name": "Dataroia — Détail des signaux",     "field_type": "text",    "map_to": "raisons" },
    { "name": "Dataroia — Procédure collective",   "field_type": "enum",    "map_to": "procedure_collective",
      "options": [ { "label": "Oui" }, { "label": "Non" } ] },
    { "name": "Dataroia — Dernier compte (année)", "field_type": "double",  "map_to": "dernier_compte_annee" },
    { "name": "Dataroia — Nb dirigeants",          "field_type": "double",  "map_to": "nb_dirigeants" },
    { "name": "Dataroia — Dirigeant à vérifier",   "field_type": "enum",    "map_to": "dirigeant_alerte",
      "options": [ { "label": "Oui" }, { "label": "Non" } ] },
    { "name": "Dataroia — Dirigeants à vérifier",  "field_type": "text",    "map_to": "dirigeants_a_verifier" },
    { "name": "Dataroia — Score de confiance",     "field_type": "double",  "map_to": "score_confiance" },
    { "name": "Dataroia — Date de vérification",   "field_type": "date",    "map_to": "date_verification" }
  ]
}
