Edit Promo
POST
/open/promo/edit
Name | Type | Description | |
---|---|---|---|
api_key | string | Your API-key | |
promo_code | string | Name of promo code | |
promo_type | number | 0-public , 1-hidden, 2-auto apply | |
promo_id | number | promo code unique id | |
description | string | 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] | |
to_be_add_products | array(optional) | to be add products | |
remove_store_id | number(optional) | remove store id | |
to_be_remove_products | array(optional) | to be remove products | |
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 |
Request
Body Params application/json
Request samples
Responses
Modified at 2024-04-17 07:11:33