Post Cart Coupon Add
POST {{baseUrl}}/cart.coupon.add.json?store_id=<string>&code=<string>&name=<string>&codes=<array>&action_type=<string>&action_apply_to=<string>&action_scope=<string>&action_amount=<number>&date_start=<object>&date_end=<object>&usage_limit=<integer>&usage_limit_per_customer=<integer>&action_condition_entity=<string>&action_condition_key=<string>&action_condition_operator=<string>&action_condition_value=<string>
Create new coupon
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
store_id | string | Defines store id where the webhook should be assigned | |
code | string | Gift card code | |
name | string | Coupon name | |
codes | string | Entity codes | |
action_type | string | Coupon discount type | |
action_apply_to | string | Defines where discount should be applied | |
action_scope | string | Specify how discount should be applied. If scope=matching_items, then discount will be applied to each of the items that match action conditions. Scope order means that discount will be applied once. | |
action_amount | string | Defines the discount amount value. | |
date_start | string | Defines when discount code will be available. | |
date_end | string | Defines when discount code will be expired. | |
usage_limit | string | Usage limit for coupon. | |
usage_limit_per_customer | string | Usage limit per customer. | |
action_condition_entity | string | Defines entity for action condition. | |
action_condition_key | string | Defines entity attribute code for action condition. | |
action_condition_operator | string | Defines condition operator. | |
action_condition_value | string | Defines condition attribute value/s. Can be comma separated string. |