| Name | Type | Description | |
|---|---|---|---|
| api_key | string | Your API-key | |
| promo_code | string(optional) | Name of promo code | |
| promo_type | number | 0-public , 1-hidden, 2-auto apply | |
| description | string(optional) | description of promo | |
| min_order_value | number(optional) | minimum order for promo to be applicable | |
| max allowed users | number(optional) | number of users to be allowed | |
| max_allowed_count | number(optional) | number of promo can be applicable | |
| max_discount_value | number(optional) | maximum discount users can apply | |
| promo_mode | number | 0 flat 1 percentage | |
| promo_value | number | value of promo | |
| usage_limit_per_day | number(optional) | day wise usage (number) | |
| multiple_allowed_single_user | number(optional) | 0 - one time for single customer or 1 - allow multple times for single customer | |
| promo_on | number(optional) | 0-subtotal , 1-delivery, 2-product | |
| single_user_max_count | number(optional) | single user count promo to be used | |
| timezone | number | in minutes (utc time - current local time) | |
| from_time | string | local time in TZ format | |
| end_time | string | local time in TZ format | |
| store_id | number(optional) | if promo is product wise assign value of merchant of that products if promo is product wise else leave it as it is optional product_ids : [1,2,3] if promo is 0-subtotal , 1-delivery and assign to specific merchants merchant_ids : [2131, 2132] | |
| product ids | arr(optional) | ||
| merchant_ids | array(optional) | merchant ids | |
| customer_subscription_plan_ids | array(optional) | array of plan ids map the promo (optional) | |
| city_data | array(optional) | optional city data | |
| loyalty_points_enabled | number(optional) | loyalty points enabled | |
| loyalty_earning_enabled | number(optional) | loyalty earning enabled |