Raw schema
{
"type": "object",
"properties": {
"client_id": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "The client id (from smartaccounts_list_clients)."
},
"date": {
"type": "string",
"description": "Invoice date, yyyy-mm-dd."
},
"due_date": {
"description": "Due date, yyyy-mm-dd (default from the client's settings).",
"type": "string"
},
"currency": {
"description": "Currency code (default EUR).",
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"exchange_rate": {
"description": "Exchange rate; only for a currency without an ECB rate.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000
},
"invoice_note": {
"description": "Additional text printed on the invoice PDF.",
"type": "string",
"maxLength": 1000
},
"reference_number": {
"description": "Reference number for payment orders (default generated).",
"type": "string",
"maxLength": 50
},
"comment": {
"description": "Internal comment.",
"type": "string",
"maxLength": 1000
},
"rows": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Article code (from smartaccounts_list_articles)."
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Row description."
},
"price": {
"type": "number",
"minimum": -1000000000000,
"maximum": 1000000000000,
"description": "Unit price, without VAT, with a full stop as decimal separator."
},
"quantity": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Quantity."
},
"vat_pc": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "VAT code (the vatPc of smartaccounts_list_vat_rates), for example 20."
},
"unit": {
"description": "Unit, for example pcs or h.",
"type": "string",
"maxLength": 20
},
"discount": {
"description": "Discount percentage (10 = 10%).",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"code",
"description",
"price",
"quantity",
"vat_pc"
]
},
"description": "Invoice rows."
}
},
"required": [
"client_id",
"date",
"rows"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}