{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-accountant-document-schema.json",
  "title": "AccountantDocument",
  "description": "Accountant document DTO (toAccountantDocumentDto); money fields follow the accountant document money projection.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-accountant-documents-api-openapi.yml#/components/schemas/AccountantDocument",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "id",
    "customerId",
    "type",
    "status",
    "name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "customerId": {
      "type": "string",
      "format": "uuid"
    },
    "entityId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "type": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "vendorName": {
      "type": [
        "string",
        "null"
      ]
    },
    "customerName": {
      "type": [
        "string",
        "null"
      ]
    },
    "invoiceNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "categoryGlAccountId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "uploadedAt": {
      "type": "string",
      "format": "date-time"
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "docDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "sizeBytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "fileName": {
      "type": [
        "string",
        "null"
      ]
    },
    "mimeType": {
      "type": [
        "string",
        "null"
      ]
    },
    "transactionId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceProvider": {
      "type": [
        "string",
        "null"
      ]
    },
    "externalViewUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasProposedMatch": {
      "type": "boolean"
    }
  }
}