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

Path parameters

cartRuleIdinteger required

Parent cart rule ID

Request body

codestring required
usage_limitinteger nullable
usage_per_customerinteger nullable
expired_atstring date nullable

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.