{ "type":"object", "title": "line_item", "description": "A line item for a document", "properties":{ "id":{ "description": "uuid of the item.", "identity":true, "readonly":true, "type":"string" }, "position":{ "description": "Required since items are sorted by position.", "type":"integer", "required":true }, "name":{ "description": "The name of an item", "type":"string" }, "description":{ "description": "Item description", "type":"string" }, "price_single":{ "description": "Net price of a single item", "type":"number" }, "tax":{ "description": "Tax percent for a single item.", "type":"number" }, "discount":{ "description": "Discount in percent applied to the items net total", "type":"number" }, "quantity_unit":{ "description": "Quantity unit: kg, days, month.", "type":"string" }, "quantity":{ "description": "Quantity of the item. Must be > 0", "type":"number", "exclusiveMinimum":0, "required":true }, "product_id":{ "description": "An item can reference a product by its uuid. See use_product", "type":"string" }, "use_product":{ "description": "If set and product_id is present, the products name, description, quantity, unit, price are copied if the according item fields are missing.", "type":"boolean" }, "created_at":{ "description": "Date the object was created in SK. Never changes afterwards", "format":"date-time", "readonly":true, "type":"string" }, "updated_at":{ "description": "Date the object was edited in SK.", "format":"date-time", "readonly":true, "type":"string" } } }