{
"type": "object",
"properties": {
"invoice_date": {
"type": "string",
"format": "date",
"description": "Invoice date (YYYY-MM-DD)"
},
"contact_id": {
"type": "string",
"description": "lexoffice contact ID of the customer"
},
"item_name": {
"type": "string",
"description": "Description of the service/product",
"examples": ["Consulting service", "Software license", "Project setup"]
},
"quantity": {
"type": "number",
"description": "Quantity/count",
"minimum": 0.01
},
"unit": {
"type": "string",
"description": "Unit (e.g., 'pieces', 'hours', 'flat rate')",
"default": "pieces"
},
"net_amount": {
"type": "number",
"description": "Net unit price in Euro",
"minimum": 0.01
},
"tax_rate": {
"type": "integer",
"enum": [0, 7, 19],
"description": "Value-added tax rate in percent",
"default": 19
},
"tax_type": {
"type": "string",
"enum": ["net", "gross"],
"description": "Tax type (net or gross price specification)",
"default": "net"
}
},
"required": ["invoice_date", "contact_id", "item_name", "quantity", "net_amount"]
}