Raw schema
{
"type": "object",
"properties": {
"contact_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The contact (customer) id."
},
"contact_address_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The id of the contact's address to print (smallinvoice_list_contact_addresses, or main_address_id on the contact)."
},
"date": {
"type": "string",
"description": "Invoice date, yyyy-mm-dd."
},
"due": {
"type": "string",
"description": "Due date, yyyy-mm-dd."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO currency, e.g. CHF."
},
"language": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Document language: de, en, fr or it."
},
"positions": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Position name."
},
"description": {
"description": "Position description.",
"type": "string",
"maxLength": 2000
},
"price": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Unit price (net, in the invoice currency)."
},
"amount": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000,
"description": "Quantity."
},
"unit_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Unit id (smallinvoice_list_units)."
},
"vat": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "VAT percentage, e.g. 8.1."
},
"type": {
"description": "Position type (default 'N' = normal, as in the vendor's example).",
"type": "string",
"pattern": "^[A-Z]$"
},
"catalog_type": {
"description": "Catalog type (default 'P', as in the vendor's example).",
"type": "string",
"pattern": "^[A-Z]$"
}
},
"required": [
"name",
"price",
"amount",
"unit_id",
"vat"
]
},
"description": "The invoice positions."
}
},
"required": [
"contact_id",
"contact_address_id",
"date",
"due",
"currency",
"language",
"positions"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}