Admin Marketing: Promotions
Create a single coupon code for a cart rule
Create a single coupon code for a cart rule
post/marketing/cart-rules/{cartRuleId}/coupons
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cartRuleIdinteger required
Parent cart rule ID
Request body
Example request
{
"code": "WELCOME10",
"usage_limit": 100,
"usage_per_customer": 1,
"expired_at": "2027-12-31"
}Response
Coupon created.
Changes
No recorded changes to this operation across all 8 revisions of this API.