Skip to main content

shop.getDiscounts()

Returns currently active discounts — both shop-wide and product-specific. Use these to display sale badges, banners, and strikethrough prices.

Response

Discount type

Only discounts where start_date <= now <= end_date are returned.

Example — Sale banner

Example — Product sale badge