{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OrderItem", "type": "object", "properties": { "PO": { "type": "array", "items": { "type": "integer", "title": "PO" } }, "PO_line_num": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "account": { "type": "integer" }, "accountCode": { "type": "string", "maxLength": 100 }, "active": { "type": "boolean" }, "approved_currency_rate": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,9}(?:\\.\\d{0,6})?$", "nullable": true }, "approved_datetime": { "type": "string", "format": "date-time", "nullable": true }, "approved_price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "approved_quantity": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$", "nullable": true }, "approved_shipping_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "approved_tax_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "attachments": { "type": "string" }, "catalog_item": { "type": "integer", "nullable": true }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "currency": { "type": "integer" }, "dateInvoiced": { "type": "string", "format": "date-time", "nullable": true }, "external_id": { "type": "string", "description": "External id of the order item", "maxLength": 100 }, "hot": { "type": "boolean" }, "id": { "type": "integer", "readOnly": true }, "inventoryItem": { "type": "integer", "nullable": true }, "is_active": { "type": "boolean" }, "item_attachments": { "type": "array", "items": { "type": "integer" } }, "last_changed_by": { "type": "integer", "nullable": true, "title": "Last changed by user" }, "last_modified": { "type": "string", "format": "date-time", "readOnly": true }, "lineComment": { "type": "string", "nullable": true }, "name": { "type": "string", "maxLength": 255 }, "num": { "type": "string", "maxLength": 50 }, "orderNum": { "type": "integer", "nullable": true }, "order_number": { "type": "integer", "readOnly": true, "nullable": true }, "po_note": { "type": "string", "title": "Comment" }, "po_version": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 }, "pref_vendor": { "type": "integer" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$" }, "purchase_order": { "type": "integer", "title": "Procurify PO Number", "nullable": true }, "purchaser": { "type": "integer", "nullable": true }, "quantity": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$" }, "receivedFailQty": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$", "title": "Received Fail Quantity" }, "receivedPassQty": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$", "title": "Received Pass Quantity" }, "shipping_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "sku": { "type": "string", "maxLength": 100 }, "status": { "nullable": true, "minimum": -2147483648, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/OrderItemStatusEnum" }, { "$ref": "#/components/schemas/NullEnum" } ], "type": "integer" }, "tax_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "total_cost": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,16}(?:\\.\\d{0,2})?$" }, "unit": { "type": "string", "maxLength": 30 }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "vendor": { "type": "string", "nullable": true, "maxLength": 100 }, "receive_method": { "allOf": [ { "$ref": "#/components/schemas/ReceiveMethodEnum" } ], "minimum": 0, "maximum": 65535 }, "type": { "allOf": [ { "$ref": "#/components/schemas/OrderItemTypeEnum" } ], "minimum": 0, "maximum": 65535 }, "blanket": { "allOf": [ { "$ref": "#/components/schemas/BlanketOrderItemRead" } ], "readOnly": true } }, "required": [ "account", "approved_datetime", "currency", "name", "num", "pref_vendor", "price", "quantity", "unit" ] }