Promotions
Create coupon
Create a percentage or fixed-amount discount coupon, with validity dates and per-branch scope.
POST
Discount value. For
percentage it is a value between 0 and 100; for value it is a fixed amount in the store currency.Validity end date/time (ISO 8601). Must be equal to or later than
valid_from. If omitted, it never expires.If
true, the coupon applies to all branches and branches is ignored. If false, it only applies to the branches listed in branches.The
code must be unique within its branch scope. You cannot create two coupons with the same code if they share a branch (or if either applies to all branches). A percentage discount cannot exceed 100.