{
  "version_format": "1.2",
  "en_tete": {
    "id_lot": "LOT-DEMO-LOT-LOCATIF-ACTE-AGENDA",
    "date_lot": "2026-10-07T10:00:00+02:00",
    "environnement": "test",
    "sens_transmission": "EMETTEUR_VERS_ERP",
    "type_flux": "IMPORT_DOSSIERS",
    "emetteur": {
      "type": "PRESTATAIRE",
      "code": "PRESTATAIRE_DEMO",
      "nom": "Prestataire fictif"
    },
    "destinataire": {
      "type": "ERP",
      "code": "ETUDE_DEMO",
      "nom": "Étude fictive",
      "logiciel": "LOGICIEL_METIER"
    }
  },
  "service_destinataire": {
    "code": "SVC-CONTENTIEUX"
  },
  "dossiers": [
    {
      "reference_client": "LOC-DEMO-002",
      "reference_dossier_destinataire": null,
      "references_externes": [
        {
          "type_reference": "REFERENCE_MANDANT",
          "valeur": "MANDAT-DEMO-002",
          "source": "CLIENT",
          "usage_rapprochement": true
        }
      ],
      "nature_dossier": "CONTENTIEUX_LOCATIF",
      "libelle_nature_dossier": "Contentieux locatif",
      "code_nature_dossier_externe": null,
      "source_code_nature_dossier": null,
      "evenements": [
        {
          "code_evenement": "OUVERTURE_DOSSIER",
          "date_effet": "2026-10-07",
          "libelle": "Ouverture dossier"
        }
      ],
      "intervenants": [
        {
          "reference_client": "DEF-DEMO-002",
          "role": "DEF01",
          "ipp": {
            "civilite": "M",
            "nom": "DEMONSTRATION",
            "prenom": "Alex",
            "adresses": [
              {
                "ligne1": "21 rue Fictive",
                "ligne2": null,
                "ligne3": null,
                "code_postal": "69003",
                "ville": "LYON",
                "pays": "FR",
                "type": "SIGNIFICATION",
                "label": "Adresse de signification",
                "principal": true
              }
            ]
          },
          "contacts": [
            {
              "type": "EMAIL",
              "valeur": "alex@example.com"
            }
          ]
        },
        {
          "reference_client": "CRE-DEMO-002",
          "role": "CRE01",
          "ipm": {
            "raison_sociale": "HABITAT DEMONSTRATION",
            "statut_juridique": "SA",
            "adresses": [
              {
                "ligne1": "10 avenue Fictive",
                "code_postal": "75011",
                "ville": "PARIS",
                "pays": "FR",
                "type": "SIEGE",
                "principal": true
              }
            ]
          },
          "contacts": [
            {
              "type": "EMAIL",
              "valeur": "habitat@example.com"
            }
          ]
        }
      ],
      "elements_financiers": [
        {
          "reference_element_financier": "EF-DEMO-002",
          "nature_creance": "Loyers et charges impayés",
          "montant_details": [
            {
              "type": "principal",
              "qualification_poste": "principal",
              "montant": "1650.00",
              "devise": "EUR",
              "statut_montant": "connu",
              "date": "2026-09-30",
              "libelle": "Loyers fictifs"
            },
            {
              "type": "principal",
              "qualification_poste": "principal",
              "montant": "190.50",
              "devise": "EUR",
              "statut_montant": "connu",
              "date": "2026-09-30",
              "libelle": "Charges fictives"
            }
          ]
        }
      ],
      "mesures": [
        {
          "reference_mesure": "MES-DEMO-002",
          "type_mesure": "EXPULSION",
          "libelle_mesure": "Procédure d'expulsion",
          "code_mesure_externe": null,
          "source_code_mesure": null
        }
      ],
      "actes": [
        {
          "reference_acte": "ACT-DEMO-002",
          "type_acte": "COMMANDEMENT_DE_PAYER",
          "libelle_acte": "Commandement de payer les loyers",
          "code_acte_externe": null,
          "source_code_acte": null,
          "date_acte": "2026-10-07",
          "references_pieces": [
            "PJ-DEMO-001"
          ]
        }
      ],
      "agenda": [
        {
          "reference_evenement": "AGENDA-DEMO-002",
          "code_evenement": "TEL",
          "libelle": "Relance fictive à préparer",
          "date_effet": "2026-10-09",
          "affecte_a": "EQUIPE-DEMO",
          "statut": "a_faire"
        }
      ],
      "pieces_jointes": [
        {
          "reference_piece": "PJ-DEMO-001",
          "nom": "bail-decompte-demo.pdf",
          "chemin": "pieces/bail-decompte-demo.pdf",
          "categorie": "BAIL",
          "type": "PDF",
          "mime_type": "application/pdf",
          "date_piece": "2026-10-07",
          "hash": "sha256:e13b8170e3fad9aeed78a0985f2952e7f78a257298524feaa780287382635c6d"
        },
        {
          "reference_piece": "PJ-DEMO-002",
          "nom": "mandat.eml",
          "chemin": "pieces/mandat.eml",
          "categorie": "COURRIER",
          "type": "EML",
          "mime_type": "message/rfc822",
          "date_piece": "2026-10-07",
          "hash": "sha256:804dbd71c10b7dfe9397ef370783f7056e6b990883085551f9400f6d1b9fafd1"
        }
      ]
    }
  ]
}
