---
updatedAt: 2026-05-27T08:20:29.000Z
agentTools:
  projectIndex: https://developers.youtrust.com/llms.txt
---

# document_analysis.done

This event is triggered whenever a Document Trust Analysis has been completed.
Document Trust Analysis status went from `pending` to `done` or `inconclusive`.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Webhook Events",
    "version": "1.0.0",
    "description": "Stay in sync with your workflows in real time. Youtrust Webhooks allow your platform to receive instant updates on key events, helping you automate actions, improve responsiveness, and keep your users informed, effortlessly.",
    "contact": {
      "name": "Support",
      "url": "https://youtrust.com/contact",
      "email": "contact@youtrust.com"
    },
    "license": {
      "name": "proprietary",
      "url": "https://youtrust.com/terms"
    }
  },
  "webhooks": {
    "document_analysis.done": {
      "post": {
        "summary": "document_analysis.done",
        "description": "This event is triggered whenever a Document Trust Analysis has been completed.\nDocument Trust Analysis status went from `pending` to `done` or `inconclusive`.\n",
        "operationId": "document_analysis-done",
        "tags": [
          "Document Trust Analysis Events"
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/DocumentAnalysisDone"
        },
        "responses": {
          "2XX": {
            "$ref": "#/components/responses/Successful"
          },
          "3XX": {
            "$ref": "#/components/responses/Redirection"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Document Trust Analysis Events",
      "description": "Webhooks related to Document Trust Analysis, notifying when the analysis of a document is completed."
    }
  ],
  "components": {
    "schemas": {
      "Metadata": {
        "title": "Metadata",
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid",
            "description": "A unique identifier for this webhook event.",
            "example": "d09f0367-d80a-309c-a2ed-7083991fc564"
          },
          "event_name": {
            "type": "string",
            "description": "The name of the webhook event that was triggered."
          },
          "event_time": {
            "type": "string",
            "description": "The timestamp (Unix epoch format) when the event occurred. It will stay constant even through retries.",
            "example": "1670855889"
          },
          "subscription_id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the webhook subscription that received this event.",
            "example": "d09f0367-d80a-309c-a2ed-7083991fc564"
          },
          "subscription_description": {
            "type": "string",
            "description": "Description of the webhook subscription.",
            "example": "Notifies our system when an even occurs."
          },
          "sandbox": {
            "type": "boolean",
            "description": "A boolean indicating whether this event was triggered in a sandbox environment (`true`) or in production (`false`).\n",
            "example": true
          }
        },
        "required": [
          "event_id",
          "event_name",
          "event_time",
          "subscription_id",
          "subscription_description",
          "sandbox"
        ]
      },
      "WorkflowSessionIdentifier": {
        "title": "Workflow Session identifier",
        "description": "Unique identifier of a Workflow Session. \nWhen provided, an Action is created in the Workflow Session, and this resource is associated with that Action.\n",
        "type": [
          "string",
          "null"
        ],
        "format": "uuid",
        "example": "0ef334d2-7f36-4643-8a2a-4283b4a3e4a4"
      },
      "PreviousAttemptIdentifier": {
        "title": "Previous Attempt identifier",
        "description": "ID of the previous attempt within the same `workflow_session_id`.\nAllows continuity between multiple attempts of the same Action.\nNull if this is the first attempt.\n",
        "type": [
          "string",
          "null"
        ],
        "format": "uuid",
        "example": "9412b83b-b4b9-4a94-97b5-2b43dfa4cde4"
      },
      "Applicant": {
        "title": "Applicant",
        "description": "Unique identifier of an Applicant.\n",
        "type": [
          "string",
          "null"
        ],
        "format": "uuid",
        "example": "0ef334d2-7f36-4643-8a2a-4283b4a3e4a4"
      },
      "DocumentAnalysisStatus": {
        "title": "Document Analysis Status",
        "type": "string",
        "description": "Status of the Document Analysis.",
        "enum": [
          "pending",
          "awaiting_data",
          "done",
          "inconclusive",
          "failed"
        ],
        "example": "done"
      },
      "AnalysisType": {
        "title": "AnalysisType",
        "type": "object",
        "additionalProperties": false,
        "description": "Describes what the Document Analysis performed.\n\n- `extraction: true`: data was extracted from the document (a document `type` is present).\n- `extraction: false`: fraud-only analysis (no data extraction, no `type`).\n",
        "properties": {
          "extraction": {
            "type": "boolean",
            "description": "Whether data was extracted from the document.",
            "example": true
          },
          "fraud_level": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "none",
              "standard",
              "advanced",
              null
            ],
            "description": "Level of fraud detection that was run. `null` when fraud detection was not requested.",
            "example": "advanced"
          }
        }
      },
      "FraudRiskAnalysis": {
        "title": "FraudRiskAnalysis",
        "type": "object",
        "additionalProperties": false,
        "description": "Result of the fraud detection analysis.",
        "required": [
          "risk_level",
          "indicators"
        ],
        "properties": {
          "risk_level": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "high",
              "medium",
              "low",
              "trusted",
              null
            ],
            "description": "Overall fraud risk level of the document. `null` when not yet determined.",
            "example": "low"
          },
          "indicators": {
            "type": "array",
            "description": "List of fraud indicators detected on the document.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "indicator",
                "type",
                "category",
                "title",
                "description"
              ],
              "properties": {
                "indicator": {
                  "type": "string",
                  "description": "Machine-readable identifier of the detected indicator.",
                  "example": "metadata.suspicious_producer"
                },
                "type": {
                  "type": "string",
                  "description": "Type of the indicator.",
                  "example": "RISK"
                },
                "category": {
                  "type": "string",
                  "description": "Category the indicator belongs to.",
                  "example": "metadata"
                },
                "title": {
                  "type": "string",
                  "description": "Human-readable title of the indicator.",
                  "example": "Document processed by an editing tool"
                },
                "description": {
                  "type": "string",
                  "description": "Human-readable description of the indicator.",
                  "example": "The document was produced by iLovePDF, a tool commonly used to edit or rework existing documents rather than to issue an original."
                }
              }
            }
          }
        }
      },
      "DocumentClassification": {
        "title": "Document Classification",
        "type": "object",
        "additionalProperties": false,
        "description": "Result of the document classification.\n`null` when no classification ran for this analysis, When a classification\ndid run, the node is present and `document_type` may itself be `null`,\nmeaning no supported type was recognised on the document.\n",
        "required": [
          "document_type",
          "country_code"
        ],
        "properties": {
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The document type detected on the analysed document, `null` when the analysed document matches no supported type. New values may be added over time; integrations must tolerate unknown values.\n",
            "enum": [
              "social_security",
              "company_certificate",
              "business_registration_certificate",
              "driver_licence",
              "rne_certificate",
              "vehicle_registration_document",
              "temporary_vehicle_registration_document",
              "auto_insurance_claims_history",
              "tax_notice",
              "payslip",
              "invoice",
              "proof_of_address",
              "id_document",
              "bank_account",
              null
            ],
            "example": "payslip"
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Z]{2}$",
            "description": "The issuing country detected on the analysed document, as an uppercase ISO 3166-1 alpha-2 code, `null` when no issuing country could be matched on the document, for example when no supported type was recognised or when the issuing country is outside the supported list. For `bank_account`, the country of the extracted IBAN (its first two letters), always a valid country code: `null` when no IBAN was found or when it does not start with one.\n",
            "example": "FR"
          }
        }
      },
      "DocumentAnalysisMeta": {
        "title": "DocumentAnalysisMeta",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "workflow_session_id",
          "previous_attempt_id",
          "applicant_id",
          "created_at",
          "updated_at",
          "status",
          "status_codes",
          "country_code",
          "data_anonymized"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the Document Analysis.",
            "example": "e6dbf320-0de6-4d7d-bd32-9b4ecd31e65a"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "description": "The Workspace ID in which the Document Analysis has been created.",
            "example": "9a93d3b5-fb3b-4abf-9e70-26315b33506c"
          },
          "workflow_session_id": {
            "$ref": "#/components/schemas/WorkflowSessionIdentifier"
          },
          "previous_attempt_id": {
            "$ref": "#/components/schemas/PreviousAttemptIdentifier"
          },
          "applicant_id": {
            "$ref": "#/components/schemas/Applicant"
          },
          "created_at": {
            "type": "string",
            "example": "2024-01-18T22:59:00+00:00",
            "description": "Creation date of the Document Analysis.",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "example": "2024-01-18T22:59:00+00:00",
            "description": "Update date of the Document Analysis.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/DocumentAnalysisStatus"
          },
          "status_codes": {
            "type": "array",
            "description": "List of status codes. Indicates the cause when the status is `failed`.\n\n`DA_1001` is **deprecated**: it is still emitted alongside more specific check-failure codes (e.g. `DA_2001`, `DA_2002`) for backward compatibility. New integrations should rely on the specific codes.\n",
            "items": {
              "type": "string",
              "enum": [
                "DA_1001",
                "DA_1002",
                "DA_1003",
                "DA_1004",
                "DA_1005",
                "DA_1100",
                "DA_1304",
                "DA_2001",
                "DA_2002",
                "DA_2004",
                "DA_2005",
                "DA_2006",
                "DA_2301",
                "DA_2302",
                "DA_2501",
                "DA_2502",
                "DA_2601",
                "DA_2602",
                "DA_3001",
                "DA_3003",
                "DA_3004"
              ]
            },
            "example": []
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The country code associated with the document analysis.\nNull for document types that don't require a country code.\n",
            "example": null
          },
          "data_anonymized": {
            "type": "boolean",
            "description": "Indicates if the personal data extracted from the document has been anonymized.\nIf set to `true`, the personal data has been anonymized and most fields will be NULL.\n",
            "example": false
          },
          "analysis_type": {
            "$ref": "#/components/schemas/AnalysisType"
          },
          "fraud_risk_analysis": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FraudRiskAnalysis"
              },
              {
                "type": "null"
              }
            ]
          },
          "document_classification": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentClassification"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "SocialSecurityExtraction": {
        "title": "Social Security Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "social_security_number",
          "first_name",
          "last_name",
          "full_name",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "social_security_number": "1234567890123",
          "first_name": "John",
          "last_name": "Doe",
          "full_name": "John Doe",
          "document_type": "carte vitale"
        },
        "properties": {
          "social_security_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Social Security number extracted from the document."
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name of the individual."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name of the individual."
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the individual."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "MatchLevel": {
        "type": "string",
        "title": "MatchLevel",
        "description": "Level of match between extracted and expected value.",
        "enum": [
          "exact",
          "close",
          "no_match"
        ],
        "example": "exact"
      },
      "DocumentAnalysisCheck": {
        "title": "Document Analysis Check",
        "description": "Represents the result of checking if an extracted value matches an expected value with different levels of match (exact, close, or no match).",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "extracted",
          "expected",
          "match_level"
        ],
        "example": {
          "extracted": "John Doe",
          "expected": "John Doe",
          "match_level": "exact"
        },
        "properties": {
          "extracted": {
            "type": [
              "string",
              "null"
            ],
            "description": "The extracted value from the document."
          },
          "expected": {
            "type": "string",
            "description": "The expected value for the check."
          },
          "match_level": {
            "$ref": "#/components/schemas/MatchLevel"
          }
        }
      },
      "SocialSecurityChecks": {
        "title": "Social Security Checks",
        "type": "object",
        "description": "Checks performed on the document.",
        "required": [
          "full_name"
        ],
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "John Doe",
            "expected": "John Doe",
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "SocialSecurity": {
        "title": "Social Security",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "social_security"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/SocialSecurityExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/SocialSecurityChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "CompanyCertificateExtraction": {
        "title": "Company Certificate Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "verification_number",
          "company_name",
          "company_number",
          "registered_address",
          "issuance_date",
          "ceased_on",
          "legal_representatives",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "verification_number": "1234567890123",
          "company_name": "Acme",
          "company_number": "1234567890",
          "registered_address": "1 rue de la paix, 75000 Paris",
          "issuance_date": "2025-01-01",
          "ceased_on": null,
          "legal_representatives": [
            {
              "type": "natural_person",
              "first_name": "John",
              "last_name": "Doe",
              "full_name": "John Doe",
              "function": "Président",
              "company_name": null,
              "company_number": null
            },
            {
              "type": "legal_person",
              "first_name": null,
              "last_name": null,
              "full_name": null,
              "company_name": "Acme Studio",
              "company_number": "0987654321",
              "function": "Dirigeant"
            }
          ],
          "document_type": "Kbis"
        },
        "properties": {
          "verification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Verification number extracted from the document."
          },
          "company_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company name extracted from the document."
          },
          "company_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company number extracted from the document."
          },
          "registered_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registered address extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Issuance date extracted from the document."
          },
          "ceased_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Cessation date extracted from the document."
          },
          "legal_representatives": {
            "type": "array",
            "description": "List of legal representatives extracted from the document.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "function",
                "first_name",
                "last_name",
                "full_name",
                "company_name",
                "company_number"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "natural_person",
                    "legal_person"
                  ],
                  "description": "Type of the legal representative extracted from the list of legal representatives in the document."
                },
                "function": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Function of the individual extracted from the list of legal representatives in the document."
                },
                "first_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "First name of the individual extracted from the list of legal representatives in the document."
                },
                "last_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Last name of the individual extracted from the list of legal representatives in the document."
                },
                "full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the individual extracted from the list of legal representatives in the document."
                },
                "company_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Company name extracted from the list of legal representatives in the document."
                },
                "company_number": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Company number extracted from the list of legal representatives in the document."
                }
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "CompanyCertificateChecks": {
        "title": "Company Certificate Checks",
        "type": "object",
        "description": "Checks performed on the document.",
        "required": [
          "legal_representatives"
        ],
        "additionalProperties": false,
        "example": {
          "legal_representatives": [
            {
              "full_name": {
                "extracted": "John Doe",
                "expected": "John Doe",
                "match_level": "exact"
              }
            }
          ]
        },
        "properties": {
          "legal_representatives": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "required": [
                "full_name"
              ],
              "properties": {
                "full_name": {
                  "$ref": "#/components/schemas/DocumentAnalysisCheck"
                }
              }
            }
          }
        }
      },
      "CompanyCertificate": {
        "title": "Company Certificate",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "company_certificate"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/CompanyCertificateExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CompanyCertificateChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "BusinessRegistrationCertificateExtraction": {
        "title": "Business Registration Certificate Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "issuance_date",
          "company_description",
          "branch_description",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "issuance_date": "2025-01-01",
          "company_description": {
            "active": true,
            "legal_form": "Entreprise individuelle",
            "company_name": null,
            "company_number": "123 4567 890",
            "headquarter_company_number": "123 4567 890 12345",
            "first_name": "John",
            "last_name": "Doe",
            "full_name": "John Doe"
          },
          "branch_description": {
            "active": true,
            "branch_company_number": "123 4567 890 12345",
            "address": "1 rue de la paix, 75000 Paris",
            "city": "Paris",
            "postal_code": "75000"
          },
          "document_type": "Avis de situation"
        },
        "properties": {
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Issuance date extracted from the document."
          },
          "company_description": {
            "type": "object",
            "required": [
              "legal_form",
              "company_name",
              "company_number",
              "first_name",
              "last_name",
              "full_name",
              "active",
              "headquarter_company_number"
            ],
            "properties": {
              "active": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Indicates whether the company is active or not."
              },
              "legal_form": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Legal form extracted from the document."
              },
              "company_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Company name extracted from the document."
              },
              "company_number": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Company number extracted from the document."
              },
              "headquarter_company_number": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Headquarter company number extracted from the document."
              },
              "first_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "First name of the individual extracted from the document. Null if not a sole proprietor."
              },
              "last_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Last name of the individual extracted from the document. Null if not a sole proprietor."
              },
              "full_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Full name of the individual extracted from the document. Null if not a sole proprietor."
              }
            }
          },
          "branch_description": {
            "type": "object",
            "required": [
              "address",
              "city",
              "postal_code",
              "active",
              "branch_company_number"
            ],
            "properties": {
              "address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address extracted from the document."
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City extracted from the document."
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Postal code extracted from the document."
              },
              "active": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Indicates whether the branch is active or not."
              },
              "branch_company_number": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Branch company number extracted from the document."
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "BusinessRegistrationCertificateChecks": {
        "title": "Business Registration Certificate Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "full_name"
        ],
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "John Doe",
            "expected": "John Doe",
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "BusinessRegistrationCertificate": {
        "title": "Business Registration Certificate",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "business_registration_certificate"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/BusinessRegistrationCertificateExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/BusinessRegistrationCertificateChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "DriverLicenceExtraction": {
        "title": "Driver Licence Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "first_name",
          "last_name",
          "full_name",
          "born_on",
          "expired_on",
          "license_type",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "first_name": "John",
          "last_name": "Doe",
          "full_name": "John Doe",
          "born_on": "1990-01-15",
          "expired_on": "2030-12-31",
          "license_type": [
            "B",
            "A1"
          ],
          "document_type": "permis de conduire français"
        },
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name of the individual."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last name of the individual."
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the individual."
          },
          "born_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of birth of the individual."
          },
          "expired_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expiration date of the driver licence."
          },
          "license_type": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of license types.",
            "items": {
              "type": "string"
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "DriverLicenceChecks": {
        "title": "Driver Licence Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "full_name"
        ],
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "John Doe",
            "expected": "John Doe",
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "DriverLicence": {
        "title": "Driver Licence",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "driver_licence"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/DriverLicenceExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/DriverLicenceChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "RNECertificateExtraction": {
        "title": "RNE Certificate Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "company_name",
          "company_number",
          "registered_address",
          "issuance_date",
          "legal_representatives",
          "branches_description",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "company_name": "ACME Corp",
          "company_number": "123456789",
          "registered_address": "1 rue de la paix, 75000 Paris",
          "issuance_date": "2024-01-15",
          "legal_representatives": [
            {
              "type": "natural_person",
              "first_name": "John",
              "last_name": "Doe",
              "full_name": "John Doe",
              "function": "President",
              "company_name": null,
              "company_number": null
            },
            {
              "type": "legal_person",
              "first_name": null,
              "last_name": null,
              "full_name": null,
              "company_name": "ACME Studio",
              "company_number": "0987654321",
              "function": "Statutory Auditor"
            }
          ],
          "branches_description": [
            {
              "company_number": "12345678200010",
              "address": "1 rue de la paix, 75000 Paris",
              "ceased_on": null
            },
            {
              "company_number": "12345678200028",
              "address": "2 rue de la paix, 75000 Paris",
              "ceased_on": "2015-02-19"
            }
          ],
          "document_type": "Attestation RNE"
        },
        "properties": {
          "company_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company name extracted from the document."
          },
          "company_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company number extracted from the document."
          },
          "registered_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Registered address extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Issuance date extracted from the document."
          },
          "legal_representatives": {
            "type": "array",
            "description": "List of legal representatives extracted from the document.",
            "items": {
              "type": "object",
              "required": [
                "type",
                "function",
                "first_name",
                "last_name",
                "full_name",
                "company_name",
                "company_number"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "natural_person",
                    "legal_person"
                  ],
                  "description": "Type of the legal representative extracted from the list of legal representatives in the document."
                },
                "function": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Function of the individual extracted from the list of legal representatives in the document."
                },
                "first_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "First name of the individual extracted from the list of legal representatives in the document."
                },
                "last_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Last name of the individual extracted from the list of legal representatives in the document."
                },
                "full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the individual extracted from the list of legal representatives in the document."
                },
                "company_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Company name extracted from the list of legal representatives in the document."
                },
                "company_number": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Company number extracted from the list of legal representatives in the document."
                }
              }
            }
          },
          "branches_description": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of establishments (« Établissements ») printed on the certificate, open and closed, in document order. Null when the analysis predates the extraction of the establishments.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "company_number",
                "address",
                "ceased_on"
              ],
              "properties": {
                "company_number": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "SIRET of the establishment (14 digits). The first 9 digits are the company SIREN returned in the top-level `company_number`."
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Address of the establishment as printed on the certificate. Null when the model could not read it."
                },
                "ceased_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Closure date of the establishment. Null when the establishment is open."
                }
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "RNECertificateChecks": {
        "title": "RNE Certificate Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "legal_representatives"
        ],
        "additionalProperties": false,
        "example": {
          "legal_representatives": [
            {
              "full_name": {
                "extracted": "John Doe",
                "expected": "John Doe",
                "match_level": "exact"
              }
            }
          ]
        },
        "properties": {
          "legal_representatives": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "required": [
                "full_name"
              ],
              "properties": {
                "full_name": {
                  "$ref": "#/components/schemas/DocumentAnalysisCheck"
                }
              }
            }
          }
        }
      },
      "RNECertificate": {
        "title": "RNE Certificate",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "rne_certificate"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/RNECertificateExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RNECertificateChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "TemporaryVehicleRegistrationDocumentExtraction": {
        "title": "Temporary Vehicle Registration Document Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "vehicle_category",
          "vehicle_license_number",
          "vehicle_identification_number",
          "vehicle_purpose",
          "vehicle_first_registration_year",
          "vehicle_owner_information",
          "other_details",
          "issuance_date",
          "document_reason",
          "document_recipient_information",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "vehicle_category": "M1",
          "vehicle_license_number": "DH000SJ",
          "vehicle_identification_number": "ZFA19900001244827",
          "vehicle_purpose": "PROPRIO",
          "vehicle_first_registration_year": "2018",
          "vehicle_owner_information": {
            "vehicle_owner_full_name": "DOE JOHN",
            "vehicle_owner_birth_date": "1985-06-15",
            "vehicle_owner_address": "VIA ROMA 10, 00100 ROMA RM"
          },
          "other_details": "Veicolo ad uso privato",
          "issuance_date": "2024-03-15",
          "document_reason": "PASSAGGIO DI PROPRIETA",
          "document_recipient_information": {
            "document_recipient_full_name": "DOE JOHN",
            "document_recipient_address": "VIA ROMA 10, 00100 ROMA RM",
            "document_recipient_birth_date": "1985-06-15",
            "document_recipient_birth_city": "ROMA"
          },
          "document_type": "Ricevuta sostitutiva"
        },
        "properties": {
          "vehicle_category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle category extracted from the document."
          },
          "vehicle_license_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle license plate number extracted from the document."
          },
          "vehicle_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle identification number (VIN) extracted from the document."
          },
          "vehicle_purpose": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle purpose extracted from the document."
          },
          "vehicle_first_registration_year": {
            "type": [
              "string",
              "null"
            ],
            "description": "Year of the vehicle's first registration extracted from the document."
          },
          "vehicle_owner_information": {
            "type": "object",
            "description": "Vehicle owner information extracted from the document.",
            "required": [
              "vehicle_owner_full_name",
              "vehicle_owner_birth_date",
              "vehicle_owner_address"
            ],
            "properties": {
              "vehicle_owner_full_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Full name of the vehicle owner extracted from the document."
              },
              "vehicle_owner_birth_date": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Birth date of the vehicle owner extracted from the document."
              },
              "vehicle_owner_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the vehicle owner extracted from the document."
              }
            }
          },
          "other_details": {
            "type": [
              "string",
              "null"
            ],
            "description": "Other details extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Issuance date extracted from the document."
          },
          "document_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Document reason extracted from the document."
          },
          "document_recipient_information": {
            "type": "object",
            "description": "Document recipient information extracted from the document.",
            "required": [
              "document_recipient_full_name",
              "document_recipient_address",
              "document_recipient_birth_date",
              "document_recipient_birth_city"
            ],
            "properties": {
              "document_recipient_full_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Full name of the document recipient extracted from the document."
              },
              "document_recipient_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the document recipient extracted from the document."
              },
              "document_recipient_birth_date": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Birth date of the document recipient extracted from the document."
              },
              "document_recipient_birth_city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Birth city of the document recipient extracted from the document."
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "TemporaryVehicleRegistrationDocumentChecks": {
        "title": "Temporary Vehicle Registration Document Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "vehicle_owner"
        ],
        "additionalProperties": false,
        "example": {
          "vehicle_owner": {
            "owner_name": {
              "extracted": "DOE JOHN",
              "expected": "Doe John",
              "match_level": "exact"
            }
          }
        },
        "properties": {
          "vehicle_owner": {
            "type": "object",
            "description": "Check result for the vehicle owner.",
            "required": [
              "owner_name"
            ],
            "properties": {
              "owner_name": {
                "$ref": "#/components/schemas/DocumentAnalysisCheck"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "TemporaryVehicleRegistrationDocument": {
        "title": "Temporary Vehicle Registration Document",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "country_code",
          "type",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "temporary_vehicle_registration_document"
                ]
              },
              "country_code": {
                "type": "string",
                "enum": [
                  "IT"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/TemporaryVehicleRegistrationDocumentExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TemporaryVehicleRegistrationDocumentChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "FrenchVehicleRegistrationDocumentExtraction": {
        "title": "French Vehicle Registration Document Extraction",
        "type": "object",
        "description": "Extracted data from a French vehicle registration document.",
        "required": [
          "licence_plate_number",
          "first_registration_date",
          "owner_information",
          "co_owner_information",
          "vehicle_information",
          "vehicle_identification_number",
          "vehicle_max_weight",
          "vehicle_motor_information",
          "document_number",
          "issuance_date",
          "vehicle_next_inspection_date",
          "mrz_line_1",
          "mrz_line_2",
          "document_type"
        ],
        "additionalProperties": false,
        "properties": {
          "licence_plate_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Licence plate number of the vehicle."
          },
          "first_registration_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of first registration of the vehicle."
          },
          "owner_information": {
            "type": "object",
            "required": [
              "owner_full_name",
              "owner_address",
              "owner_type"
            ],
            "additionalProperties": false,
            "properties": {
              "owner_full_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Full name of the vehicle owner."
              },
              "owner_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the vehicle owner."
              },
              "owner_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "natural_person",
                  "legal_person"
                ],
                "description": "Type of the vehicle owner."
              }
            }
          },
          "co_owner_information": {
            "type": "array",
            "description": "List of co-owners of the vehicle.",
            "items": {
              "type": "object",
              "required": [
                "co_owner_full_name"
              ],
              "additionalProperties": false,
              "properties": {
                "co_owner_full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the co-owner."
                }
              }
            }
          },
          "vehicle_information": {
            "type": "object",
            "required": [
              "vehicle_brand",
              "vehicle_version",
              "vehicle_model"
            ],
            "additionalProperties": false,
            "properties": {
              "vehicle_brand": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brand of the vehicle."
              },
              "vehicle_version": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version of the vehicle."
              },
              "vehicle_model": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Model of the vehicle."
              }
            }
          },
          "vehicle_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle Identification Number (VIN)."
          },
          "vehicle_max_weight": {
            "type": [
              "number",
              "null"
            ],
            "description": "Maximum weight of the vehicle."
          },
          "vehicle_motor_information": {
            "type": "object",
            "required": [
              "vehicle_fuel_type",
              "vehicle_fiscal_power",
              "vehicle_max_power",
              "vehicle_power"
            ],
            "additionalProperties": false,
            "properties": {
              "vehicle_fuel_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Type of fuel used by the vehicle."
              },
              "vehicle_fiscal_power": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Fiscal power of the vehicle."
              },
              "vehicle_max_power": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Maximum power of the vehicle engine."
              },
              "vehicle_power": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Power of the vehicle engine."
              }
            }
          },
          "document_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Document number."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Issuance date of the document."
          },
          "vehicle_next_inspection_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of the next vehicle inspection."
          },
          "mrz_line_1": {
            "type": [
              "string",
              "null"
            ],
            "description": "First line of the Machine Readable Zone (MRZ)."
          },
          "mrz_line_2": {
            "type": [
              "string",
              "null"
            ],
            "description": "Second line of the Machine Readable Zone (MRZ)."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "VehicleRegistrationDocumentChecks": {
        "title": "Vehicle Registration Document Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "vehicle_owner"
        ],
        "additionalProperties": false,
        "example": {
          "vehicle_owner": {
            "owner_name": {
              "extracted": "John Doe",
              "expected": "John Doe",
              "match_level": "exact"
            }
          }
        },
        "properties": {
          "vehicle_owner": {
            "type": "object",
            "description": "Check result for the vehicle owner.",
            "required": [
              "owner_name"
            ],
            "properties": {
              "owner_name": {
                "$ref": "#/components/schemas/DocumentAnalysisCheck"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "ItalianVehicleRegistrationDocumentExtraction": {
        "title": "Italian Vehicle Registration Document Extraction",
        "type": "object",
        "description": "Extracted data from an Italian vehicle registration document.",
        "required": [
          "licence_plate_number",
          "first_registration_date",
          "owner_information",
          "co_owner_information",
          "deed_informations",
          "vehicle_information",
          "vehicle_body",
          "vehicle_identification_number",
          "vehicle_total_mass",
          "vehicle_motor_information",
          "document_type",
          "issuance_date",
          "vehicle_approval_number",
          "vehicle_destination_and_use",
          "international_vehicle_category",
          "mass_of_the_vehicle_in_service",
          "vehicle_maximum_technical_mass",
          "vehicle_maximum_permissible_mass"
        ],
        "additionalProperties": false,
        "properties": {
          "licence_plate_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Licence plate number of the vehicle."
          },
          "first_registration_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of first registration of the vehicle."
          },
          "owner_information": {
            "type": "object",
            "required": [
              "owner_full_name",
              "owner_address",
              "owner_type",
              "owner_birth_date"
            ],
            "additionalProperties": false,
            "properties": {
              "owner_full_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Full name of the vehicle owner."
              },
              "owner_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address of the vehicle owner."
              },
              "owner_type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "natural_person",
                  "legal_person"
                ],
                "description": "Type of the vehicle owner."
              },
              "owner_birth_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Birth date of the vehicle owner."
              }
            }
          },
          "co_owner_information": {
            "type": "array",
            "description": "List of co-owners of the vehicle.",
            "items": {
              "type": "object",
              "required": [
                "co_owner_full_name"
              ],
              "additionalProperties": false,
              "properties": {
                "co_owner_full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the co-owner."
                }
              }
            }
          },
          "deed_informations": {
            "type": "array",
            "description": "List of deed informations related to the vehicle.",
            "items": {
              "type": "object",
              "required": [
                "deed_date",
                "deed_type",
                "liens_encumbrances",
                "previous_owner_full_name"
              ],
              "additionalProperties": false,
              "properties": {
                "deed_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Date of the deed."
                },
                "deed_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Type of the deed."
                },
                "liens_encumbrances": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Liens or encumbrances on the vehicle."
                },
                "previous_owner_full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the previous owner."
                }
              }
            }
          },
          "vehicle_information": {
            "type": "object",
            "required": [
              "vehicle_brand",
              "vehicle_version",
              "vehicle_model"
            ],
            "additionalProperties": false,
            "properties": {
              "vehicle_brand": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Brand of the vehicle."
              },
              "vehicle_version": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Version of the vehicle."
              },
              "vehicle_model": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Model of the vehicle."
              }
            }
          },
          "vehicle_body": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body type of the vehicle."
          },
          "vehicle_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle Identification Number (VIN)."
          },
          "vehicle_total_mass": {
            "type": [
              "number",
              "null"
            ],
            "description": "Total mass of the vehicle."
          },
          "vehicle_motor_information": {
            "type": "object",
            "required": [
              "vehicle_fuel_type",
              "vehicle_max_power",
              "vehicle_displacement_type"
            ],
            "additionalProperties": false,
            "properties": {
              "vehicle_fuel_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Type of fuel used by the vehicle."
              },
              "vehicle_max_power": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Maximum power of the vehicle engine."
              },
              "vehicle_displacement_type": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Displacement type of the vehicle engine."
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Issuance date of the document."
          },
          "vehicle_approval_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle approval number."
          },
          "vehicle_destination_and_use": {
            "type": [
              "string",
              "null"
            ],
            "description": "Destination and use of the vehicle."
          },
          "international_vehicle_category": {
            "type": [
              "string",
              "null"
            ],
            "description": "International vehicle category."
          },
          "mass_of_the_vehicle_in_service": {
            "type": [
              "number",
              "null"
            ],
            "description": "Mass of the vehicle in service."
          },
          "vehicle_maximum_technical_mass": {
            "type": [
              "number",
              "null"
            ],
            "description": "Maximum technical mass of the vehicle."
          },
          "vehicle_maximum_permissible_mass": {
            "type": [
              "number",
              "null"
            ],
            "description": "Maximum permissible mass of the vehicle."
          }
        }
      },
      "VehicleRegistrationDocument": {
        "title": "Vehicle Registration Document",
        "oneOf": [
          {
            "title": "French Vehicle Registration Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "vehicle_registration_document"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "FR"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/FrenchVehicleRegistrationDocumentExtraction"
                  },
                  "checks": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/VehicleRegistrationDocumentChecks"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            ]
          },
          {
            "title": "Italian Vehicle Registration Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "vehicle_registration_document"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "IT"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/ItalianVehicleRegistrationDocumentExtraction"
                  },
                  "checks": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/VehicleRegistrationDocumentChecks"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            ]
          }
        ]
      },
      "AutoInsuranceClaimsHistoryExtraction": {
        "title": "Auto Insurance Claims History Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "policy_holder_full_name",
          "policy_holder_address",
          "policy_holder_birth_date",
          "insurance_score",
          "issuance_date",
          "effective_start_date",
          "active_contract",
          "contract_cancellation_date",
          "vehicle_model",
          "vehicle_license_plate",
          "drivers_information",
          "incidents_information",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "policy_holder_full_name": "John Doe",
          "policy_holder_address": "1 rue de la Paix, 75001 Paris",
          "policy_holder_birth_date": "1990-01-01",
          "insurance_score": "0.50",
          "issuance_date": "2024-01-15",
          "effective_start_date": "2023-01-01",
          "active_contract": true,
          "contract_cancellation_date": null,
          "vehicle_model": "Renault Clio",
          "vehicle_license_plate": "AB-123-CD",
          "drivers_information": [
            {
              "driver_full_name": "John Doe",
              "driver_birth_date": "1990-01-01",
              "coverage_start_date": "2023-01-01",
              "coverage_end_date": null,
              "driver_license_number": "12345678",
              "driver_license_category": "B",
              "driver_license_issuance_date": "2010-06-15"
            }
          ],
          "incidents_information": [],
          "document_type": "Relevé d'information"
        },
        "properties": {
          "policy_holder_full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the policy holder extracted from the document."
          },
          "policy_holder_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address of the policy holder extracted from the document."
          },
          "policy_holder_birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birth date of the policy holder extracted from the document."
          },
          "insurance_score": {
            "type": [
              "string",
              "null"
            ],
            "description": "Insurance score (bonus/malus coefficient) extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Issuance date of the document."
          },
          "effective_start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Effective start date of the insurance contract."
          },
          "active_contract": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the insurance contract is currently active."
          },
          "contract_cancellation_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Cancellation date of the insurance contract, if applicable."
          },
          "vehicle_model": {
            "type": [
              "string",
              "null"
            ],
            "description": "Model of the insured vehicle extracted from the document."
          },
          "vehicle_license_plate": {
            "type": [
              "string",
              "null"
            ],
            "description": "License plate number of the insured vehicle extracted from the document."
          },
          "drivers_information": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of drivers covered by the insurance policy.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "driver_full_name",
                "driver_birth_date",
                "coverage_start_date",
                "coverage_end_date",
                "driver_license_number",
                "driver_license_category",
                "driver_license_issuance_date"
              ],
              "properties": {
                "driver_full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the driver."
                },
                "driver_birth_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Birth date of the driver."
                },
                "coverage_start_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Start date of the driver's coverage."
                },
                "coverage_end_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "End date of the driver's coverage, if applicable."
                },
                "driver_license_number": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "License number of the driver."
                },
                "driver_license_category": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "License category of the driver."
                },
                "driver_license_issuance_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Issuance date of the driver's license."
                }
              }
            }
          },
          "incidents_information": {
            "type": [
              "array",
              "null"
            ],
            "description": "List of incidents (claims) recorded in the insurance history.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "incident_date",
                "incident_description",
                "incident_type",
                "incident_responsability",
                "drivers_full_name"
              ],
              "properties": {
                "incident_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date",
                  "description": "Date of the incident."
                },
                "incident_description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Description of the incident."
                },
                "incident_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Type of the incident."
                },
                "incident_responsability": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Responsibility level for the incident."
                },
                "drivers_full_name": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Full name of the driver involved in the incident."
                }
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "AutoInsuranceClaimsHistoryChecks": {
        "title": "Auto Insurance Claims History Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "required": [
          "policy_holder"
        ],
        "additionalProperties": false,
        "example": {
          "policy_holder": {
            "owner_name": {
              "extracted": "Doe John",
              "expected": "Doe John",
              "match_level": "exact"
            }
          }
        },
        "properties": {
          "policy_holder": {
            "type": "object",
            "description": "Check result for the policy holder.",
            "required": [
              "owner_name"
            ],
            "properties": {
              "owner_name": {
                "$ref": "#/components/schemas/DocumentAnalysisCheck"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "AutoInsuranceClaimsHistory": {
        "title": "Auto Insurance Claims History",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "auto_insurance_claims_history"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/AutoInsuranceClaimsHistoryExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AutoInsuranceClaimsHistoryChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "FrenchTaxNoticeExtraction": {
        "title": "French Tax Notice Extraction",
        "type": "object",
        "description": "Extracted data from the document.\n\nStatus codes specific to the French tax notice:\n- `DA_1304`: `standard` only. The file was read and holds no 2D-Doc. The analysis is `failed`.\n- `DA_2301`: the fiscal number of the first declarant (`fiscal_number_1`) is found neither in the text nor in a valid 2D-Doc.\n- `DA_2302`: the tax notice reference is found neither in the text nor in a valid 2D-Doc.\n- `DA_3004`: with `standard`, also when the 2D-Doc could not be read. Retry the analysis. When the fraud risk is blocking, the analysis is `failed` with `DA_3001` instead.\n\nTax notices analyzed with the previous provider can have a filled `2d_doc` without `fraud_level`, and values that do not match the patterns below.\n",
        "required": [
          "full_name",
          "full_name_2",
          "fiscal_number_1",
          "fiscal_number_2",
          "tax_notice_reference",
          "issuance_date",
          "income_year",
          "reference_income",
          "document_type",
          "2d_doc"
        ],
        "additionalProperties": false,
        "properties": {
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full name of the first declarant extracted from the document, last name first.",
            "example": "Doe John"
          },
          "full_name_2": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full name of the second declarant extracted from the document, last name first. `null` when the tax notice has one declarant. A full name check also matches this declarant.",
            "example": "Doe Jane"
          },
          "fiscal_number_1": {
            "type": [
              "string",
              "null"
            ],
            "description": "The fiscal number of the first declarant extracted from the document. 13 digits, `null` when not readable.",
            "pattern": "^\\d{13}$",
            "example": "0312345678901"
          },
          "fiscal_number_2": {
            "type": [
              "string",
              "null"
            ],
            "description": "The fiscal number of the second declarant extracted from the document. 13 digits, `null` when not readable.",
            "pattern": "^\\d{13}$",
            "example": "0398765432109"
          },
          "tax_notice_reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "The tax notice reference number extracted from the document. 13 characters, `null` when not readable.",
            "pattern": "^[A-Z0-9]{13}$",
            "example": "2412B01234567"
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The tax notice issuance date extracted from the document.",
            "example": "2025-08-15"
          },
          "income_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year of incomes (usually the year before document issuance) extracted from the document.",
            "example": 2024
          },
          "reference_income": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The fiscal reference income extracted from the document.",
            "example": 30000
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Avis d'impôts sur le revenu"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "example": "Avis d'impôts sur le revenu",
            "deprecated": true
          },
          "2d_doc": {
            "type": [
              "object",
              "null"
            ],
            "description": "The data signed in the 2D-Doc. Filled only when `fraud_level` is `standard`, the file is a PDF, an income tax notice 2D-Doc (ANTS type 04, or 28 since 2025) is found and its signature and certificate are valid. Otherwise, and always with `none` or `advanced`, `2d_doc` is `null`.\n\n| `fraud_level` | Files | Extraction | `2d_doc` | `DA_1304` | Checks compared with | Fraud detection |\n|---|---|---|---|---|---|---|\n| `none` or omitted | PDF, JPG, PNG | Yes | `null` | Never | Values read in the text | None |\n| `standard` | PDF only | Yes | Filled when an income tax notice 2D-Doc (ANTS type 04, or 28 since 2025) is found and its signature and certificate are valid. Otherwise `null` | When the file was read and holds no 2D-Doc: the analysis is `failed`. A 2D-Doc that cannot be read gives `inconclusive` with `DA_3004`, or `failed` with `DA_3001` when the fraud risk is blocking | The valid 2D-Doc, otherwise the values read in the text | Document Trust (`fraud_risk_analysis`, `barcode.*` indicators) |\n| `advanced` | PDF, JPG, PNG | Yes | `null` | Never | Values read in the text | Resistant (`fraud_risk_analysis`) |\n| `standard`, `extraction: false` | PDF only | No (classification only) | None: `extracted_from_document` is `[]` | Never | None | Document Trust. The 2D-Doc signature and certificate are checked only when a 2D-Doc is found, so a tax notice without a 2D-Doc can end `done` |\n| `advanced`, `extraction: false` | PDF, JPG, PNG | No (classification only) | None: `extracted_from_document` is `[]` | Never | None | Resistant |\n",
            "additionalProperties": false,
            "required": [
              "full_name_1",
              "fiscal_number_1",
              "full_name_2",
              "fiscal_number_2",
              "tax_notice_reference",
              "income_year",
              "reference_income",
              "parts_count"
            ],
            "properties": {
              "full_name_1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The full name of the first declarant, as encoded in the 2D-Doc.",
                "example": "Doe John"
              },
              "fiscal_number_1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The fiscal number of the first declarant, as encoded in the 2D-Doc.",
                "example": "0312345678901"
              },
              "full_name_2": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The full name of the second declarant, as encoded in the 2D-Doc.",
                "example": "Doe Jane"
              },
              "fiscal_number_2": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The fiscal number of the second declarant, as encoded in the 2D-Doc.",
                "example": "0398765432109"
              },
              "tax_notice_reference": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The tax notice reference number, as encoded in the 2D-Doc.",
                "example": "2412B01234567"
              },
              "income_year": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Year of incomes (usually the year before document issuance), as encoded in the 2D-Doc.",
                "example": 2024
              },
              "reference_income": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fiscal reference income, as encoded in the 2D-Doc.",
                "example": 30000
              },
              "parts_count": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Number of parts in the household, as encoded in the 2D-Doc. Can be a half part, e.g. `2.5`.",
                "example": 1
              }
            }
          }
        }
      },
      "TaxNoticeChecks": {
        "title": "Tax Notice Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "John Doe",
            "expected": "John Doe",
            "match_level": "exact"
          },
          "income_year": {
            "extracted": 2024,
            "expected": 2024,
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          },
          "income_year": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "extracted",
              "expected",
              "match_level"
            ],
            "example": {
              "extracted": 2024,
              "expected": 2024,
              "match_level": "exact"
            },
            "properties": {
              "extracted": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The extracted value from the document."
              },
              "expected": {
                "type": "integer",
                "description": "The expected value for the check."
              },
              "match_level": {
                "$ref": "#/components/schemas/MatchLevel"
              }
            }
          }
        }
      },
      "GermanTaxNoticeExtraction": {
        "title": "German Tax Notice Extraction",
        "type": "object",
        "description": "Extracted data from the document.\n\nStatus codes specific to the German tax notice:\n- `DA_1005`: the tax notice is not issued by the German tax administration, e.g. a French tax notice sent with `country_code` `DE`. The analysis is `failed`.\n",
        "required": [
          "full_name_1",
          "full_name_2",
          "fiscal_number_1",
          "fiscal_number_2",
          "issuance_date",
          "income_year",
          "reference_income",
          "document_type"
        ],
        "additionalProperties": false,
        "properties": {
          "full_name_1": {
            "type": [
              "string",
              "null"
            ],
            "description": "The holder full name of the first declarant extracted from the document.",
            "example": "Müller Hans"
          },
          "full_name_2": {
            "type": [
              "string",
              "null"
            ],
            "description": "The holder full name of the second declarant extracted from the document.",
            "example": "Müller Anna"
          },
          "fiscal_number_1": {
            "type": [
              "string",
              "null"
            ],
            "description": "The tax identification number (IdNr) of the first declarant extracted from the document.",
            "example": "01234567890"
          },
          "fiscal_number_2": {
            "type": [
              "string",
              "null"
            ],
            "description": "The tax identification number (IdNr) of the second declarant extracted from the document.",
            "example": "10987654321"
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The tax notice issuance date extracted from the document.",
            "example": "2025-07-15"
          },
          "income_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Year of incomes (usually the year before document issuance) extracted from the document.",
            "example": 2024
          },
          "reference_income": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The taxable income (zu versteuerndes Einkommen) extracted from the document.",
            "example": 48000
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Steuerbescheid"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "example": "Steuerbescheid",
            "deprecated": true
          }
        }
      },
      "ItalianTaxNoticeExtraction": {
        "title": "Italian Tax Notice Extraction",
        "type": "object",
        "description": "Extracted data from the document (Italian Certificazione Unica).",
        "required": [
          "employer_name",
          "employer_codice_fiscale",
          "employee_full_name",
          "employee_codice_fiscale",
          "issuance_date",
          "income_year",
          "reference_income",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "employer_name": "MONTMARTRE S.R.L.",
          "employer_codice_fiscale": "16961111008",
          "employee_full_name": "LE ROUX ARMAND",
          "employee_codice_fiscale": "LRXRND04H16Z110V",
          "issuance_date": "2024-02-29",
          "income_year": 2023,
          "reference_income": 10708.6,
          "document_type": "Certificazione Unica"
        },
        "properties": {
          "employer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employer (sostituto d'imposta) name extracted from the document."
          },
          "employer_codice_fiscale": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employer Codice Fiscale (11 digits) extracted from the document."
          },
          "employee_full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The certified employee/pensioner full name extracted from the document."
          },
          "employee_codice_fiscale": {
            "type": [
              "string",
              "null"
            ],
            "description": "The certified employee/pensioner Codice Fiscale (16 characters) extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The certification issuance date (firma del sostituto d'imposta) extracted from the document."
          },
          "income_year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The income reference year (\"RELATIVA ALL'ANNO\") extracted from the document."
          },
          "reference_income": {
            "type": [
              "number",
              "null"
            ],
            "description": "The reference income (first filled of Punti 1-5) extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "TaxNotice": {
        "title": "Tax Notice",
        "oneOf": [
          {
            "title": "French Tax Notice Document",
            "type": "object",
            "required": [
              "type",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "tax_notice"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/FrenchTaxNoticeExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/TaxNoticeChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "German Tax Notice Document",
            "type": "object",
            "required": [
              "type",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "tax_notice"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/GermanTaxNoticeExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/TaxNoticeChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "Italian Tax Notice",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "workflow_session_id",
              "previous_attempt_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "tax_notice"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/ItalianTaxNoticeExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/TaxNoticeChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "Tax Notice Without Extraction",
            "type": "object",
            "description": "A tax notice analyzed with `analysis_type.extraction` set to `false`, whatever its country.",
            "required": [
              "type",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "tax_notice"
                    ]
                  },
                  "extracted_from_document": {
                    "type": "array",
                    "description": "Always empty, as no data is extracted from the document.",
                    "maxItems": 0,
                    "items": [],
                    "example": []
                  },
                  "checks": {
                    "type": "null"
                  }
                }
              }
            ]
          }
        ]
      },
      "PayslipExtraction": {
        "title": "Payslip Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "first_name",
          "last_name",
          "full_name",
          "employer_name",
          "pay_period_start_date",
          "pay_period_end_date",
          "net_pay",
          "gross_pay",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "first_name": "Marie",
          "last_name": "DUPONT",
          "full_name": "DUPONT MARIE",
          "employer_name": "SNCF Réseau",
          "pay_period_start_date": "2026-03-01",
          "pay_period_end_date": "2026-03-31",
          "net_pay": 2382.4,
          "gross_pay": 3150,
          "document_type": "Payslip"
        },
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employee first name extracted from the document."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employee last name extracted from the document."
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employee full name extracted from the document."
          },
          "employer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The employer name extracted from the document."
          },
          "pay_period_start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The pay period start date extracted from the document."
          },
          "pay_period_end_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The pay period end date extracted from the document."
          },
          "net_pay": {
            "type": [
              "number",
              "null"
            ],
            "description": "The net salary extracted from the document."
          },
          "gross_pay": {
            "type": [
              "number",
              "null"
            ],
            "description": "The gross salary extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "PayslipChecks": {
        "title": "Payslip Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "DUPONT MARIE",
            "expected": "Dupont Marie",
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "Payslip": {
        "title": "Payslip",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "payslip"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/PayslipExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PayslipChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "FrenchInvoiceExtraction": {
        "title": "French Invoice Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "issuance_date",
          "invoice_number",
          "invoice_date",
          "seller_name",
          "seller_address",
          "seller_company_number",
          "vat_identification_number",
          "billing_address",
          "shipping_address",
          "buyer_name",
          "buyer_address",
          "total_excluding_taxes",
          "total_including_taxes",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "issuance_date": "2026-03-15",
          "invoice_number": "FA-2026-0042",
          "invoice_date": "2026-03-15",
          "seller_name": "Acme SAS",
          "seller_address": "12 rue de la République 75001 Paris",
          "seller_company_number": "882533086",
          "vat_identification_number": "FR81882533086",
          "billing_address": null,
          "shipping_address": null,
          "buyer_name": "Marie Dupont",
          "buyer_address": "59 avenue Ernest Renan 93100 Montreuil",
          "total_excluding_taxes": 1127.5,
          "total_including_taxes": 1353.2,
          "document_type": "Facture"
        },
        "properties": {
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the invoice was issued, extracted from the document."
          },
          "invoice_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The invoice number extracted from the document."
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date of the sale or service, extracted from the document."
          },
          "seller_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) name extracted from the document."
          },
          "seller_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) postal address extracted from the document."
          },
          "seller_company_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller SIREN or SIRET number extracted from the document."
          },
          "vat_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller intra-community VAT number extracted from the document."
          },
          "billing_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The billing address extracted from the document, when distinct."
          },
          "shipping_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The shipping address extracted from the document, when distinct."
          },
          "buyer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) name extracted from the document."
          },
          "buyer_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) postal address extracted from the document."
          },
          "total_excluding_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount excluding taxes extracted from the document."
          },
          "total_including_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount including taxes extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "InvoiceChecks": {
        "title": "Invoice Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "additionalProperties": false,
        "example": {
          "buyer_name": {
            "extracted": "ACME SAS",
            "expected": "Acme SAS",
            "match_level": "exact"
          }
        },
        "properties": {
          "buyer_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "ItalianInvoiceExtraction": {
        "title": "Italian Invoice Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "issuance_date",
          "invoice_number",
          "invoice_date",
          "seller_name",
          "seller_address",
          "seller_company_number",
          "vat_identification_number",
          "seller_codice_fiscale",
          "billing_address",
          "shipping_address",
          "buyer_name",
          "buyer_address",
          "buyer_codice_fiscale",
          "total_excluding_taxes",
          "total_including_taxes",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "issuance_date": "2026-03-15",
          "invoice_number": "FT-2026-0042",
          "invoice_date": "2026-03-15",
          "seller_name": "Acme SRL",
          "seller_address": "Via Roma 12 00100 Roma RM",
          "seller_company_number": "01069490470",
          "vat_identification_number": "IT01069490470",
          "seller_codice_fiscale": "01069490470",
          "billing_address": null,
          "shipping_address": null,
          "buyer_name": "Mario Rossi",
          "buyer_address": "Via Milano 5 20121 Milano MI",
          "buyer_codice_fiscale": "RSSMRA85T10A562S",
          "total_excluding_taxes": 1127.5,
          "total_including_taxes": 1375.55,
          "document_type": "Fattura"
        },
        "properties": {
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the invoice was issued, extracted from the document."
          },
          "invoice_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The invoice number extracted from the document."
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date of the sale or service, extracted from the document."
          },
          "seller_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) name extracted from the document."
          },
          "seller_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) postal address extracted from the document."
          },
          "seller_company_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller Partita IVA (11 digits) extracted from the document."
          },
          "vat_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller intra-community VAT number extracted from the document."
          },
          "seller_codice_fiscale": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller Codice Fiscale extracted from the document.\nEither an 11-digit company number or a 16-character alphanumeric code for individuals.\n"
          },
          "billing_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The billing address extracted from the document, when distinct."
          },
          "shipping_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The shipping address extracted from the document, when distinct."
          },
          "buyer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) name extracted from the document."
          },
          "buyer_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) postal address extracted from the document."
          },
          "buyer_codice_fiscale": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer Codice Fiscale extracted from the document, when the buyer is a company or professional.\nEither an 11-digit company number or a 16-character alphanumeric code for individuals. Null when absent.\n"
          },
          "total_excluding_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount excluding taxes extracted from the document."
          },
          "total_including_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount including taxes extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "GermanInvoiceExtraction": {
        "title": "German Invoice Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "issuance_date",
          "invoice_number",
          "invoice_date",
          "seller_name",
          "seller_address",
          "seller_company_number",
          "vat_identification_number",
          "billing_address",
          "shipping_address",
          "buyer_name",
          "buyer_address",
          "total_excluding_taxes",
          "total_including_taxes",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "issuance_date": "2026-03-15",
          "invoice_number": "RE-2026-0042",
          "invoice_date": "2026-03-15",
          "seller_name": "Muster GmbH",
          "seller_address": "Musterstraße 1 10115 Berlin",
          "seller_company_number": "HRB 12345",
          "vat_identification_number": "DE123456789",
          "billing_address": null,
          "shipping_address": null,
          "buyer_name": "Max Mustermann",
          "buyer_address": "Beispielweg 5 80331 München",
          "total_excluding_taxes": 1127.5,
          "total_including_taxes": 1353.2,
          "document_type": "Rechnung"
        },
        "properties": {
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the invoice was issued, extracted from the document."
          },
          "invoice_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The invoice number extracted from the document."
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date of the sale or service, extracted from the document."
          },
          "seller_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) name extracted from the document."
          },
          "seller_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller (issuer) postal address extracted from the document."
          },
          "seller_company_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller Handelsregisternummer (HRB/HRA) or Steuernummer extracted from the document."
          },
          "vat_identification_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The seller intra-community VAT number extracted from the document."
          },
          "billing_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The billing address extracted from the document, when distinct."
          },
          "shipping_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The shipping address extracted from the document, when distinct."
          },
          "buyer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) name extracted from the document."
          },
          "buyer_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The buyer (customer) postal address extracted from the document."
          },
          "total_excluding_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount excluding taxes extracted from the document."
          },
          "total_including_taxes": {
            "type": [
              "number",
              "null"
            ],
            "description": "The total amount including taxes extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "InvoiceDocument": {
        "title": "Invoice Document",
        "oneOf": [
          {
            "title": "French Invoice Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "invoice"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "FR"
                    ],
                    "description": "The country code associated with the document analysis.",
                    "example": "FR"
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/FrenchInvoiceExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/InvoiceChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "Italian Invoice Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "invoice"
                    ]
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/ItalianInvoiceExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/InvoiceChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "German Invoice Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "invoice"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "DE"
                    ],
                    "description": "The country code associated with the document analysis.",
                    "example": "DE"
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/GermanInvoiceExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/InvoiceChecks"
                  }
                }
              }
            ]
          }
        ]
      },
      "ItalianProofOfAddressExtraction": {
        "title": "Italian Proof of Address Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "first_name",
          "last_name",
          "full_address",
          "issuance_date",
          "seal_present",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "first_name": "Mario",
          "last_name": "Rossi",
          "full_address": "Via Roma 1, 20100 Milano (MI)",
          "issuance_date": "2026-03-15",
          "seal_present": true,
          "document_type": "Certificato di residenza"
        },
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the certificate holder, extracted from the document."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the certificate holder, extracted from the document."
          },
          "full_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full residence address extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the certificate was issued, extracted from the document."
          },
          "seal_present": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether a qualified electronic seal or official stamp (Ministero dell'Interno / ANPR) was detected on the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "ProofOfAddressChecks": {
        "title": "Proof of Address Checks",
        "type": [
          "object",
          "null"
        ],
        "description": "Checks performed on the document.",
        "additionalProperties": false,
        "example": {
          "full_name": {
            "extracted": "Rossi Mario",
            "expected": "Rossi Mario",
            "match_level": "exact"
          }
        },
        "properties": {
          "full_name": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "GermanProofOfAddressExtraction": {
        "title": "German Proof of Address Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "first_name",
          "last_name",
          "full_address",
          "residence_start_date",
          "issuance_date",
          "document_type"
        ],
        "additionalProperties": false,
        "example": {
          "first_name": "Max",
          "last_name": "Mustermann",
          "full_address": "Musterstraße 1, 10115 Berlin",
          "residence_start_date": "2020-01-01",
          "issuance_date": "2026-03-15",
          "document_type": "Meldebescheinigung"
        },
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the registered person, extracted from the document."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the registered person, extracted from the document."
          },
          "full_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full main residence address extracted from the document."
          },
          "residence_start_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date since when the person has been living at the main residence (Einzugsdatum), extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the certificate was issued (Ausstellungsdatum), extracted from the document."
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "deprecated": true
          }
        }
      },
      "ProofOfAddress2D-DocAddress": {
        "title": "Proof of Address 2D-Doc Address",
        "type": "object",
        "description": "The address of the service point, as encoded in the 2D-Doc (ANTS types 00, 01 and 02). The income tax notice 2D-Doc (ANTS types 04 and 28) encodes no address: all the fields are `null`.\n",
        "example": {
          "line1": "1 RUE DE L EXEMPLE",
          "postal_code": "75001",
          "city": "PARIS",
          "country_code": "FR"
        },
        "additionalProperties": false,
        "required": [
          "line1",
          "postal_code",
          "city",
          "country_code"
        ],
        "properties": {
          "line1": {
            "type": [
              "string",
              "null"
            ],
            "description": "The lines 2 to 5 of the postal address of the service point, joined by a space."
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The postal code or CEDEX code of the service point."
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "The city or CEDEX label of the service point."
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Z]{2}$",
            "description": "The ISO 3166-1 alpha-2 country code of the service point. Always `FR` when the 2D-Doc encodes an address."
          }
        }
      },
      "ProofOfAddress2D-Doc": {
        "title": "Proof of Address 2D-Doc",
        "type": [
          "object",
          "null"
        ],
        "description": "The data signed in the 2D-Doc. Filled only when `fraud_level` is `standard`, the file is a PDF, a proof of address 2D-Doc (ANTS type 00 energy invoice, 01 internet invoice, 02 housing tax notice, 04 income tax notice, or 28 income tax notice since 2025) is found and its signature and certificate are valid. Otherwise, and always with `none` or `advanced`, `2d_doc` is `null`.\n\nA 2D-Doc is not required: a missing or unreadable 2D-Doc never changes the status of the analysis (never `DA_1304`, no `DA_3004` for an unreadable 2D-Doc). An anomaly of the 2D-Doc is only a risk indicator in `fraud_risk_analysis`, and the analysis can end `done`.\n\n| `fraud_level` | Files | Extraction | `2d_doc` | Checks compared with | Fraud detection |\n|---|---|---|---|---|---|\n| `none` or omitted | PDF, JPG, PNG | Yes | `null` | Values read in the text | None |\n| `standard` | PDF only | Yes | Filled when a proof of address 2D-Doc (ANTS type 00, 01, 02, 04 or 28) is found and its signature and certificate are valid. Otherwise `null` | The valid 2D-Doc, otherwise the values read in the text | Document Trust (`fraud_risk_analysis`, `barcode.*` indicators) |\n| `advanced` | PDF, JPG, PNG | Yes | `null` | Values read in the text | Resistant (`fraud_risk_analysis`) |\n| `standard`, `extraction: false` | PDF only | No (classification only) | None: `extracted_from_document` is `[]` | None | Document Trust |\n| `advanced`, `extraction: false` | PDF, JPG, PNG | No (classification only) | None: `extracted_from_document` is `[]` | None | Resistant |\n",
        "example": {
          "full_name": "DUPONT JEAN",
          "address": {
            "line1": "1 RUE DE L EXEMPLE",
            "postal_code": "75001",
            "city": "PARIS",
            "country_code": "FR"
          }
        },
        "additionalProperties": false,
        "required": [
          "full_name",
          "address"
        ],
        "properties": {
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full name of the holder, as encoded in the 2D-Doc: the last name then the first name of the beneficiary (ANTS types 00, 01 and 02), or the first taxpayer (ANTS types 04 and 28). When the last name and the first name are empty, it is the first beneficiary read on the first line of the beneficiary address, without its civility (\"M\", \"MME\", \"MONSIEUR\"...).\n"
          },
          "address": {
            "$ref": "#/components/schemas/ProofOfAddress2D-DocAddress"
          }
        }
      },
      "FrenchProofOfAddressExtraction": {
        "title": "French Proof of Address Extraction",
        "type": "object",
        "description": "Extracted data from the document. A French proof of address is one of these documents: an energy invoice (electricity or gas), a water invoice, a certificate of an energy, phone or internet supplier, a phone or internet invoice, an income tax notice, a property tax notice or a housing tax notice.\n",
        "example": {
          "first_name": "Jean",
          "last_name": "Dupont",
          "full_address": "1 rue de l'Exemple 75001 Paris",
          "issuance_date": "2026-09-15",
          "2d_doc": {
            "full_name": "DUPONT JEAN",
            "address": {
              "line1": "1 RUE DE L EXEMPLE",
              "postal_code": "75001",
              "city": "PARIS",
              "country_code": "FR"
            }
          }
        },
        "required": [
          "first_name",
          "last_name",
          "full_address",
          "issuance_date",
          "2d_doc"
        ],
        "additionalProperties": false,
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the first holder of the document, extracted from the document."
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the first holder of the document, extracted from the document."
          },
          "full_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address of the holder, extracted from the document, on one line: the consumption or delivery address for an invoice or a supplier certificate, the address of the taxed home for a housing tax notice, and the address of the recipient for an income tax notice or a property tax notice.\n"
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the document was issued, extracted from the document."
          },
          "2d_doc": {
            "$ref": "#/components/schemas/ProofOfAddress2D-Doc"
          }
        }
      },
      "ProofOfAddressDocument": {
        "title": "Proof of Address Document",
        "oneOf": [
          {
            "title": "Italian Proof of Address Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "proof_of_address"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "IT"
                    ],
                    "description": "The country code associated with the document analysis.",
                    "example": "IT"
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/ItalianProofOfAddressExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/ProofOfAddressChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "German Proof of Address Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "proof_of_address"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "DE"
                    ],
                    "description": "The country code associated with the document analysis.",
                    "example": "DE"
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/GermanProofOfAddressExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/ProofOfAddressChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "French Proof of Address Document",
            "type": "object",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "proof_of_address"
                    ]
                  },
                  "country_code": {
                    "type": "string",
                    "enum": [
                      "FR"
                    ],
                    "description": "The country code associated with the document analysis.",
                    "example": "FR"
                  },
                  "extracted_from_document": {
                    "$ref": "#/components/schemas/FrenchProofOfAddressExtraction"
                  },
                  "checks": {
                    "$ref": "#/components/schemas/ProofOfAddressChecks"
                  }
                }
              }
            ]
          },
          {
            "title": "Proof of Address Without Extraction",
            "type": "object",
            "description": "A proof of address analyzed with `analysis_type.extraction` set to `false`, or whose data is anonymized (`data_anonymized` is `true`), whatever its country.",
            "required": [
              "id",
              "workspace_id",
              "created_at",
              "updated_at",
              "status",
              "type",
              "country_code",
              "data_anonymized",
              "extracted_from_document",
              "checks"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentAnalysisMeta"
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "proof_of_address"
                    ]
                  },
                  "extracted_from_document": {
                    "type": "array",
                    "description": "Always empty, as no data is extracted from the document or the data is anonymized.",
                    "maxItems": 0,
                    "items": [],
                    "example": []
                  },
                  "checks": {
                    "type": "null"
                  }
                }
              }
            ]
          }
        ]
      },
      "IDDocumentExtraction": {
        "title": "ID Document Extraction",
        "type": "object",
        "description": "Extracted data from the document.",
        "required": [
          "first_name",
          "last_name",
          "birth_name",
          "birth_date",
          "birth_location",
          "gender",
          "address",
          "document_type",
          "issuing_country_code",
          "issuance_date",
          "expiration_date",
          "document_number",
          "mrz"
        ],
        "additionalProperties": false,
        "properties": {
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first name of the document holder, extracted from the document.",
            "example": "John"
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last name of the document holder, extracted from the document.",
            "example": "Doe"
          },
          "birth_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The birth name of the document holder, extracted from the document.",
            "example": "Müller"
          },
          "birth_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The birth date of the document holder, extracted from the document.",
            "example": "1990-01-15"
          },
          "birth_location": {
            "type": [
              "string",
              "null"
            ],
            "description": "The birth location of the document holder, extracted from the document.",
            "example": "Berlin"
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "The gender of the document holder, extracted from the document (`m`, `f` or `x`).",
            "example": "m"
          },
          "address": {
            "type": [
              "object",
              "null"
            ],
            "description": "The address of the document holder, extracted from the document.",
            "additionalProperties": false,
            "required": [
              "full_address",
              "handwritten"
            ],
            "properties": {
              "full_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The full address extracted from the document.",
                "example": "Musterstraße 1, 10115 Berlin"
              },
              "handwritten": {
                "type": [
                  "boolean",
                  "null"
                ],
                "description": "Whether the address was detected as handwritten on the document.",
                "example": false
              }
            }
          },
          "document_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "We're deprecating this field for a more standardized approach on classification. See the [changelog](https://developers.youtrust.com/changelog/adding-document-classification-on-document-trust) for more details. Status code `DA_1003` will continue to work as before, check `document_classification.document_type` to get the detected document type.\n",
            "example": "Personalausweis",
            "deprecated": true
          },
          "issuing_country_code": {
            "type": [
              "string",
              "null"
            ],
            "format": "ISO 3166-1 alpha-2",
            "pattern": "^[A-Z]{2}$",
            "example": "DE",
            "description": "The issuing country code extracted from the document."
          },
          "issuance_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The date the document was issued, extracted from the document.",
            "example": "2020-03-15"
          },
          "expiration_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The expiration date of the document, extracted from the document.",
            "example": "2030-03-14"
          },
          "document_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The document number, extracted from the document.",
            "example": "L01X00T47"
          },
          "mrz": {
            "type": [
              "object",
              "null"
            ],
            "description": "The Machine Readable Zone (MRZ) lines, extracted from the document.",
            "additionalProperties": false,
            "required": [
              "line1",
              "line2",
              "line3"
            ],
            "properties": {
              "line1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The first line of the MRZ.",
                "example": "IDD<<L01X00T479<<<<<<<<<<<<<<<"
              },
              "line2": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The second line of the MRZ.",
                "example": "9001157M3003141D<<<<<<<<<<<<<<8"
              },
              "line3": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The third line of the MRZ.",
                "example": "MUSTERMANN<<ERIKA<<<<<<<<<<<<<<"
              }
            }
          }
        }
      },
      "IDDocument": {
        "title": "ID Document",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "id_document"
                ]
              },
              "country_code": {
                "type": "string",
                "enum": [
                  "DE"
                ],
                "description": "The country code associated with the document analysis.",
                "example": "DE"
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/IDDocumentExtraction"
              }
            }
          }
        ]
      },
      "BankAccountExtraction": {
        "title": "Bank Account Extraction",
        "type": "object",
        "description": "Extracted data from the document.\n\nStatus codes specific to the bank account details. Each one makes the analysis `failed`.\nAlways checked:\n- `DA_2501`: no IBAN is found on the document.\n- `DA_2601`: the IBAN read is not valid (country format or checksum).\n- `DA_2602`: the BIC read is not valid, or its country differs from the country of the IBAN read when that IBAN is valid.\n\nOnly when the matching check is sent:\n- `DA_2001`: no holder read on the document matches `checks.account_holder.first_name` and `checks.account_holder.last_name` (`natural_person`).\n- `DA_2004`: the IBAN read is valid and does not match `checks.iban`.\n- `DA_2005`: the BIC read is valid and does not match `checks.bic`.\n- `DA_2006`: no holder company read on the document matches `checks.account_holder.company_name` (`legal_person`), including when the holder read is a natural person.\n- `DA_2502`: `checks.bic` is sent and no BIC is found on the document.\n",
        "required": [
          "iban",
          "bic"
        ],
        "additionalProperties": false,
        "example": {
          "iban": "FR7630006000011234567890189",
          "bic": "AGRIFRPPXXX"
        },
        "properties": {
          "iban": {
            "type": [
              "string",
              "null"
            ],
            "description": "IBAN of the bank account, without spaces and in uppercase, as read on the document."
          },
          "bic": {
            "type": [
              "string",
              "null"
            ],
            "description": "BIC (SWIFT code) of the bank, `null` when the document does not print it."
          }
        }
      },
      "BankAccountChecks": {
        "title": "Bank Account Checks",
        "type": "object",
        "description": "Checks performed on the document, each one present only when it was requested. `match_level` of `iban` and `bic` is only `exact` or `no_match`. `account_holder` can also be `close`. Its `extracted` is, for a `natural_person`, the holder read on the document that best matches the expected one and, for a `legal_person`, the holder company as printed, legal form included. `null` when no check was requested or the analysis is not conclusive.",
        "additionalProperties": false,
        "example": {
          "iban": {
            "extracted": "FR7630006000011234567890189",
            "expected": "FR7630006000011234567890189",
            "match_level": "exact"
          },
          "bic": {
            "extracted": "AGRIFRPPXXX",
            "expected": "AGRIFRPP",
            "match_level": "exact"
          },
          "account_holder": {
            "extracted": "John DOE",
            "expected": "John Doe",
            "match_level": "exact"
          }
        },
        "properties": {
          "iban": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          },
          "bic": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          },
          "account_holder": {
            "$ref": "#/components/schemas/DocumentAnalysisCheck"
          }
        }
      },
      "BankAccountDocument": {
        "title": "Bank Account Document",
        "type": "object",
        "required": [
          "id",
          "workspace_id",
          "created_at",
          "updated_at",
          "status",
          "type",
          "country_code",
          "data_anonymized",
          "extracted_from_document",
          "checks"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "bank_account"
                ]
              },
              "extracted_from_document": {
                "$ref": "#/components/schemas/BankAccountExtraction"
              },
              "checks": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/BankAccountChecks"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      },
      "FraudOnly": {
        "title": "Fraud Only",
        "description": "Document Analysis run in fraud-only mode (`analysis_type.extraction` is `false`).\nNo document `type` and no extracted data; only the fraud detection result is returned.\n",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentAnalysisMeta"
          },
          {
            "type": "object",
            "required": [
              "analysis_type"
            ],
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  null
                ],
                "description": "Always `null` for a fraud-only analysis (no document type).",
                "example": null
              },
              "analysis_type": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "extraction",
                  "fraud_level"
                ],
                "properties": {
                  "extraction": {
                    "type": "boolean",
                    "enum": [
                      false
                    ],
                    "description": "Always `false` for a fraud-only analysis.",
                    "example": false
                  },
                  "fraud_level": {
                    "type": "string",
                    "enum": [
                      "advanced"
                    ],
                    "description": "Always `advanced` for a fraud-only analysis.",
                    "example": "advanced"
                  }
                }
              },
              "fraud_risk_analysis": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/FraudRiskAnalysis"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        ]
      }
    },
    "requestBodies": {
      "DocumentAnalysisDone": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Metadata"
                },
                {
                  "type": "object",
                  "properties": {
                    "event_name": {
                      "const": "document_analysis.done",
                      "example": "document_analysis.done"
                    },
                    "data": {
                      "type": "object",
                      "description": "Contains Metadata about the Document Analysis.",
                      "properties": {
                        "document_analysis": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/SocialSecurity"
                            },
                            {
                              "$ref": "#/components/schemas/CompanyCertificate"
                            },
                            {
                              "$ref": "#/components/schemas/BusinessRegistrationCertificate"
                            },
                            {
                              "$ref": "#/components/schemas/DriverLicence"
                            },
                            {
                              "$ref": "#/components/schemas/RNECertificate"
                            },
                            {
                              "$ref": "#/components/schemas/TemporaryVehicleRegistrationDocument"
                            },
                            {
                              "$ref": "#/components/schemas/VehicleRegistrationDocument"
                            },
                            {
                              "$ref": "#/components/schemas/AutoInsuranceClaimsHistory"
                            },
                            {
                              "$ref": "#/components/schemas/TaxNotice"
                            },
                            {
                              "$ref": "#/components/schemas/Payslip"
                            },
                            {
                              "$ref": "#/components/schemas/InvoiceDocument"
                            },
                            {
                              "$ref": "#/components/schemas/ProofOfAddressDocument"
                            },
                            {
                              "$ref": "#/components/schemas/IDDocument"
                            },
                            {
                              "$ref": "#/components/schemas/BankAccountDocument"
                            },
                            {
                              "$ref": "#/components/schemas/FraudOnly"
                            }
                          ]
                        }
                      },
                      "required": [
                        "document_analysis"
                      ]
                    }
                  },
                  "required": [
                    "event_name",
                    "data"
                  ]
                }
              ]
            }
          }
        }
      }
    },
    "responses": {
      "Successful": {
        "description": "Webhook received successfully."
      },
      "Redirection": {
        "description": "Webhook redirected (max 2 allowed). Additional redirects will be ignored and delivery will be marked as failed."
      },
      "Error": {
        "description": "Webhook delivery failed. Your server rejected the request."
      }
    }
  }
}
```