DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsSDK Referencedash.discounts
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
admin moduleDashClientaffiliates moduledash.productsauth moduledash.categoriesblog moduledash.cartbrands moduledash.checkoutcalendar moduledash.authCart Moduledash.customercategories moduledash.blogcheckout moduledash.reviewscoa moduledash.shippingcontact moduledash.discountscontent-types moduledash.locationsdash.getGlobalDatadiscount-store moduledash.contactearn-points moduledash.seoemail moduleforms modulehtml-templates modulelegal modulemarketing modulemedia modulepage-groups modulepages modulepayment modulePayment Methods Moduleproducts modulereferrals moduleseo moduleshipping modulesitemap moduletax moduleSubscriptions Moduletracking moduleupload moduleinsights modulesurvey module
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

dash.discounts

Discount code validation methods.

Updated March 29, 2026

On this page
  • dash.discountStore
  • list()
  • redeem(productId)

dash.discountStore

list()

typescript
const { products, customer_points } = await dash.discountStore.list()

redeem(productId)

typescript
const { success, discount_code, points_remaining } = await dash.discountStore.redeem("product_id")

For applying discount codes to cart, see Apply Discount Code:

typescript
await dash.cart.applyDiscount("SAVE20")
await dash.cart.removeDiscount()

See Discounts for full details.

Previouscontact moduleNextcontent-types module

On this page

  • dash.discountStore
  • list()
  • redeem(productId)