[{"label": "Discount Name", "type_id": 1, "required": true, "field_name": "name", "data_column": "name", "order_index": 1}, {"label": "Discount Type", "options": [{"label": "Percentage on Product", "value": "product_percent"}, {"label": "Amount on Product", "value": "product_amount"}, {"label": "Category (% Only)", "value": "category_percent"}, {"label": "Storewide (% Only)", "value": "store_percent"}, {"label": "Buy X Get Y Free - Product", "value": "bogo_product"}, {"label": "Buy X Get Y Free - Category", "value": "bogo_category"}, {"label": "Buy X Get Y Free - Storewide", "value": "bogo_store"}, {"label": "X Products for $Y", "value": "x_for_y"}, {"label": "% Off for X Items", "value": "percent_for_x_items"}], "type_id": 4, "required": true, "field_name": "discount_type", "data_column": "discount_type", "order_index": 2}, {"label": "Product", "type_id": 13, "required": true, "field_name": "product_id", "data_column": "product_id", "order_index": 3, "options_table": "products", "condition_field": "discount_type", "condition_value": "product_percent|product_amount|bogo_product|x_for_y|percent_for_x_items", "options_label_column": "name", "options_value_column": "product_id"}, {"label": "Category", "type_id": 13, "required": true, "field_name": "category_id", "data_column": "category_id", "order_index": 4, "options_table": "product_categories", "condition_field": "discount_type", "condition_value": "category_percent|bogo_category", "options_label_column": "name", "options_value_column": "category_id"}, {"label": "Discount Percentage", "type_id": 2, "required": true, "field_name": "percentage_value", "data_column": "percentage_value", "order_index": 5, "condition_field": "discount_type", "condition_value": "product_percent|category_percent|store_percent|percent_for_x_items"}, {"label": "Discount Amount", "type_id": 2, "required": true, "field_name": "amount_value", "data_column": "amount_value", "order_index": 6, "condition_field": "discount_type", "condition_value": "product_amount"}, {"label": "Buy Quantity", "type_id": 2, "required": true, "field_name": "buy_quantity", "data_column": "buy_quantity", "order_index": 7, "condition_field": "discount_type", "condition_value": "bogo_product|bogo_category|bogo_store"}, {"label": "Free Quantity", "type_id": 2, "required": true, "field_name": "free_quantity", "data_column": "free_quantity", "order_index": 8, "condition_field": "discount_type", "condition_value": "bogo_product|bogo_category|bogo_store"}, {"label": "Bundle Quantity", "type_id": 2, "required": true, "field_name": "bundle_quantity", "data_column": "bundle_quantity", "order_index": 9, "condition_field": "discount_type", "condition_value": "x_for_y"}, {"label": "Bundle Price", "type_id": 2, "required": true, "field_name": "bundle_price", "data_column": "bundle_price", "order_index": 10, "condition_field": "discount_type", "condition_value": "x_for_y"}, {"label": "Required Item Count", "type_id": 2, "required": true, "field_name": "threshold_quantity", "data_column": "threshold_quantity", "order_index": 11, "condition_field": "discount_type", "condition_value": "percent_for_x_items"}, {"label": "Start Date", "type_id": 3, "field_name": "start_date", "data_column": "start_date", "order_index": 12}, {"label": "End Date", "type_id": 3, "field_name": "end_date", "data_column": "end_date", "order_index": 13}, {"label": "Notes", "type_id": 8, "field_name": "notes", "data_column": "notes", "order_index": 14}]