Admin Marketing: Promotions
Create a new cart rule
Create a new cart rule
post/marketing/cart-rules
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "10% off summer",
"description": "Sitewide 10% off summer collection",
"channels": [
1
],
"customer_groups": [
1,
2,
3
],
"coupon_type": 1,
"coupon_code": "SUMMER10",
"uses_per_coupon": 100,
"usage_per_customer": 1,
"condition_type": 1,
"conditions": [
{
"attribute": "cart|base_sub_total",
"operator": ">=",
"value": "100",
"attribute_type": "price"
}
],
"action_type": "by_percent",
"discount_amount": 10,
"discount_quantity": 1,
"starts_from": "2026-06-01 00:00:00",
"ends_till": "2026-08-31 23:59:59",
"status": 1
}Response
Cart rule created.
Changes
No recorded changes to this operation across all 8 revisions of this API.