cart
cart.coupon.add
Use this method to create a coupon with specified conditions.
post/cart.coupon.add.json
Request
- Base URL: https://api.api2cart.com/v1.1
- URL: https://api.api2cart.com/v1.1/cart.coupon.add.json
- Auth: API key in header x-api-key and API key in header x-store-key
Request body
Example request
{
"code": "000_BIG_SALE_000",
"action_type": "percent",
"action_apply_to": "order_total",
"action_scope": "matching_items",
"action_amount": 15.5,
"name": "Sale! -30%",
"date_start": "2019-12-29 06:44:30",
"date_end": "2020-01-05 01:00:00",
"usage_limit": 99,
"usage_limit_per_customer": 1,
"action_condition_entity": "order",
"action_condition_key": "product_id",
"action_condition_operator": "ONE_OF",
"action_condition_value": "17834222,45466663",
"include_tax": true,
"store_id": "1",
"free_cash_on_delivery": true,
"customer_id": "5",
"idempotency_key": "098f6bcd4621d373cade4e832627b4f6"
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.