Raw schema
{
"type": "object",
"properties": {
"category_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Order category id (cashctrl_list_order_categories), for example the Invoice category."
},
"associate_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The customer or vendor (cashctrl_list_persons)."
},
"date": {
"type": "string",
"description": "Document date, yyyy-mm-dd."
},
"items": {
"minItems": 1,
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"account_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Revenue account id (sales) or expense account id (purchase), from cashctrl_list_accounts."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 250,
"description": "Item name."
},
"unit_price": {
"type": "number",
"minimum": -1000000000000,
"maximum": 1000000000000,
"description": "Price of one unit."
},
"quantity": {
"description": "Quantity (default 1).",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000
},
"tax_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Tax code id (cashctrl_list_tax_codes)."
},
"unit_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Unit id (pieces, hours; from the units of the inventory)."
},
"description": {
"description": "Item description.",
"type": "string",
"maxLength": 2000
},
"article_nr": {
"description": "Article number.",
"type": "string",
"maxLength": 100
},
"inventory_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Inventory article id (cashctrl_list_articles)."
},
"discount_percentage": {
"description": "Discount of this item in percent.",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"account_id",
"name",
"unit_price"
]
},
"description": "1-200 order items."
},
"status_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Status id (cashctrl_list_order_categories). Default: the first status of the category."
},
"description": {
"description": "Description of the document (max 200).",
"type": "string",
"maxLength": 200
},
"due_days": {
"description": "Days until payment is due.",
"type": "integer",
"minimum": 0,
"maximum": 3650
},
"nr": {
"description": "Order number. Leave empty to use the sequence number of the category.",
"type": "string",
"maxLength": 50
},
"sequence_number_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Sequence number for the order number (cashctrl_list_sequence_numbers)."
},
"account_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Debtors or creditors account id; default from the category."
},
"language": {
"description": "Language of the document.",
"type": "string",
"enum": [
"DE",
"EN",
"FR",
"IT"
]
},
"discount_percentage": {
"description": "Discount of the whole order in percent.",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": [
"category_id",
"associate_id",
"date",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}