{ "$schema": "http://json-schema.org/draft-04/schema#", "type":"object", "title": "sub_total_item", "description": "A sub-total item shows a sum of the previous line items, e.g. to distinguish hardware and service costs on a document.", "required" : ["position"], "properties":{ "id":{ "description":"Unique identifier - UUID", "identity":true, "readOnly":true, "type":"string", "maxLength": 22, "minLength":22 }, "position":{ "description": "Required since items are sorted by position.", "type":"integer" }, "name":{ "description": "Title of the sub-total e.g. Hardware total", "type":"string", "maxLength": 50 }, "type":{ "description": "The item type: SubTotalItem. Must be set when creating new items via document.items array", "type":"string", "maxLength": 20 }, "net_total":{ "description": "Net sub-total", "type":"number", "readOnly":true }, "gross_total":{ "description": "Gross sub-total", "type":"number", "readOnly":true }, "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" }, "_destroy":{ "description": "When set an existing item will be deleted. This switch is used for items passed-in nested inside their parent object(a document), which is default as long as there is no line item endpoint available.", "type":"boolean" } }, "links":[] }