Discount codes
A discount code reduces the order price by a percentage or a fixed amount.Validation before purchase
The customer can check a code publicly:valid, discountAmount, and finalPrice. The code is also applied when creating an order through the discountCode field.
Vouchers
A voucher is a single-use code that the customer exchanges for a specific product — without payment.Generation
A staff member with thevouchers:write permission creates a single voucher (POST /vouchers/{shopId}) or generates a batch (POST /vouchers/{shopId}/generate).
Redemption
statusToken. The voucher becomes used. Expired vouchers are marked periodically.