dash.discounts
Discount code validation methods.
Updated
On this page
dash.discountStore
list()
const { products, customer_points } = await dash.discountStore.list()
redeem(productId)
const { success, discount_code, points_remaining } = await dash.discountStore.redeem("product_id")
For applying discount codes to cart, see Apply Discount Code:
await dash.cart.applyDiscount("SAVE20")
await dash.cart.removeDiscount()
See Discounts for full details.