{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/direction-generale-des-finances-publiques/json-schema/direction-generale-des-finances-publiques-reponse-multi-detention-schema.json",
  "title": "ReponseMultiDetention",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/direction-generale-des-finances-publiques-ficoba-openapi.yml#/components/schemas/ReponseMultiDetention",
  "type": "object",
  "properties": {
    "caracteristiquesDemande": {
      "$ref": "#/$defs/DemandeRestit"
    },
    "referenceDemande": {
      "type": "string"
    },
    "nombreReponses": {
      "type": "string"
    },
    "messageInformatif": {
      "$ref": "#/$defs/ReponseErreur"
    },
    "getnRep": {
      "type": "string"
    },
    "comptes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CompteMultiDet"
      }
    }
  },
  "$defs": {
    "AdresseGuichet": {
      "type": "object",
      "properties": {
        "libAdr1": {
          "type": "string"
        },
        "libAdr2": {
          "type": "string"
        },
        "libAdr3": {
          "type": "string"
        },
        "libAdr4": {
          "type": "string"
        }
      }
    },
    "CompteMultiDet": {
      "type": "object",
      "properties": {
        "iban": {
          "type": "string"
        },
        "nature": {
          "type": "string"
        },
        "dateOuverture": {
          "type": "string"
        },
        "dateFiscale": {
          "type": "string"
        },
        "codeMotifOuverture": {
          "type": "string"
        },
        "libelleMotifOuverture": {
          "type": "string"
        },
        "codeEtab": {
          "type": "string"
        },
        "guichet": {
          "$ref": "#/$defs/GuichetDto"
        }
      }
    },
    "DemandeRestit": {
      "type": "object",
      "properties": {
        "dateDemande": {
          "type": "string"
        },
        "motif": {
          "type": "string"
        },
        "siretDemandeur": {
          "type": "string"
        },
        "sirenDemandeur": {
          "type": "string"
        },
        "justification": {
          "type": "string"
        }
      }
    },
    "GuichetDto": {
      "type": "object",
      "properties": {
        "numeroGuichet": {
          "type": "string"
        },
        "libelleGuichet": {
          "type": "string"
        },
        "adresse": {
          "$ref": "#/$defs/AdresseGuichet"
        }
      }
    },
    "ReponseErreur": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "horodatage": {
          "type": "string"
        }
      }
    }
  }
}