addedOutput schema / properties / promotions
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "combos": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "active_from": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "active_until": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "combo_price": {
+ "maximum": 1000000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "conditions": {
+ "additionalProperties": false,
+ "properties": {
+ "branch_ids": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "channels": {
+ "items": {
+ "enum": [
+ "qr_dine_in",
+ "pos_dine_in",
+ "web_pickup",
+ "whatsapp",
+ "delivery",
+ "pos"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "days": {
+ "items": {
+ "maximum": 6,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 7,
+ "type": "array"
+ },
+ "end_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "order_types": {
+ "items": {
+ "enum": [
+ "dine_in",
+ "pickup",
+ "delivery",
+ "reservation"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "start_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "description_ar": {
+ "anyOf": [
+ {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "image_url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_active": {
+ "type": "boolean"
+ },
+ "items": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "alternatives": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "included_modifiers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "names": {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "quantity": {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "group",
+ "quantity"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "menu_item_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "quantity": {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "required_modifiers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "group",
+ "name"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "sort_order": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "menu_item_id",
+ "quantity"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "max_per_order": {
+ "anyOf": [
+ {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name_ar": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sort_order": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "combo_price",
+ "items",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "discounts": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "active_from": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "active_until": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "conditions": {
+ "additionalProperties": false,
+ "properties": {
+ "branch_ids": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "channels": {
+ "items": {
+ "enum": [
+ "qr_dine_in",
+ "pos_dine_in",
+ "web_pickup",
+ "whatsapp",
+ "delivery",
+ "pos"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "days": {
+ "items": {
+ "maximum": 6,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 7,
+ "type": "array"
+ },
+ "end_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "order_types": {
+ "items": {
+ "enum": [
+ "dine_in",
+ "pickup",
+ "delivery",
+ "reservation"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "start_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "is_active": {
+ "type": "boolean"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name_ar": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scope": {
+ "enum": [
+ "item",
+ "category"
+ ],
+ "type": "string"
+ },
+ "target_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "value": {
+ "maximum": 1000000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value_type": {
+ "enum": [
+ "percent",
+ "fixed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "scope",
+ "target_id",
+ "value_type",
+ "value",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "offers": {
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "active_from": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "active_until": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "conditions": {
+ "additionalProperties": false,
+ "properties": {
+ "branch_ids": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "channels": {
+ "items": {
+ "enum": [
+ "qr_dine_in",
+ "pos_dine_in",
+ "web_pickup",
+ "whatsapp",
+ "delivery",
+ "pos"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "days": {
+ "items": {
+ "maximum": 6,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 7,
+ "type": "array"
+ },
+ "end_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "order_types": {
+ "items": {
+ "enum": [
+ "dine_in",
+ "pickup",
+ "delivery",
+ "reservation"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "start_time": {
+ "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "image_url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_active": {
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "bogo",
+ "spend_save"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name_ar": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "per_customer_limit": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "priority": {
+ "maximum": 99,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "registered_only": {
+ "type": "boolean"
+ },
+ "rule": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "buy_item_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "buy_item_ids": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "buy_modifier": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "group",
+ "name"
+ ],
+ "type": "object"
+ },
+ "buy_qty": {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "get_discount_pct": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "get_item_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "get_item_ids": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "get_modifier": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "group",
+ "name"
+ ],
+ "type": "object"
+ },
+ "get_qty": {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "max_applications": {
+ "anyOf": [
+ {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "buy_item_id",
+ "buy_qty",
+ "get_item_id",
+ "get_qty",
+ "get_discount_pct"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "max_discount": {
+ "anyOf": [
+ {
+ "maximum": 1000000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "min_subtotal": {
+ "maximum": 1000000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "quantity": {
+ "anyOf": [
+ {
+ "maximum": 99,
+ "minimum": 1,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "menu_item_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "modifier": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "group",
+ "name"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "menu_item_id"
+ ],
+ "type": "object"
+ },
+ "value": {
+ "maximum": 1000000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value_type": {
+ "enum": [
+ "percent",
+ "fixed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "min_subtotal",
+ "value_type",
+ "value"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "stack_with_discounts": {
+ "type": "boolean"
+ },
+ "total_use_limit": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "kind",
+ "rule",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "discounts",
+ "combos",
+ "offers"
+ ],
+ "type": "object"
+}