{
  "format": "doc2data.fields/1",
  "fields": [
    {
      "key": "invoice_number",
      "name": "Invoice number",
      "type": "text",
      "options": [],
      "description": "Unique invoice number as printed (e.g. FA-2026-0412)."
    },
    {
      "key": "supplier",
      "name": "Supplier",
      "type": "text",
      "options": [],
      "description": "Legal name of the company issuing the invoice, without the address."
    },
    {
      "key": "invoice_date",
      "name": "Invoice date",
      "type": "date",
      "options": [],
      "description": "Issue date of the invoice (not the due date)."
    },
    {
      "key": "due_date",
      "name": "Due date",
      "type": "date",
      "options": [],
      "description": "Payment deadline; empty if not written."
    },
    {
      "key": "total",
      "name": "Total incl. tax",
      "type": "number",
      "options": [],
      "description": "Total amount due including tax, without the currency."
    },
    {
      "key": "currency",
      "name": "Currency",
      "type": "enum",
      "options": [
        "EUR",
        "USD",
        "GBP",
        "CHF"
      ],
      "description": "Currency of the total (ISO code)."
    },
    {
      "key": "paid",
      "name": "Paid",
      "type": "boolean",
      "options": [],
      "description": "True if the document states the invoice is already settled (“paid”)."
    }
  ]
}
