DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsCustomersCustomer Points
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Get CustomerUpdate CustomerCustom FieldsTags & SegmentsCustomer PointsCustomer AddressesCustomer Orders
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
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

Customer Points

Loyalty points system and point balance management.

Updated March 29, 2026

On this page
  • Overview
  • Reading Points
  • Earning Points
  • Social Earn Tasks
  • Redeeming Points
  • Points Display Example
  • Tiers
  • Next Steps

Overview

DashForDevs includes a built-in loyalty points system. Customers earn points on purchases and can redeem them for discounts in the discount store.

Reading Points

typescript
import dash from "@/lib/dash"

const { customer } = await dash.auth.getProfile()

console.log(customer.loyalty_points)   // 250
console.log(customer.loyalty_balance)  // "$12.50"
console.log(customer.tier)             // "gold"
console.log(customer.tier_name)        // "Gold Member"

Earning Points

Points are earned automatically through:

  • Purchases — Points per dollar spent (configured in dashboard)
  • Social tasks — Follow on Instagram, share products, etc. See Earn Points
  • Referrals — Points for referring new customers. See Referrals

Social Earn Tasks

typescript
// List available earn tasks
const { completed_tasks } = await dash.earnPoints.list()

// Complete a task
const { success, points_awarded, points_remaining } = await dash.earnPoints.complete("task_instagram_follow")

Redeeming Points

Customers redeem points in the discount store:

typescript
// List discount store products
const { products, customer_points } = await dash.discountStore.list()

// Redeem a product for a discount code
const { success, discount_code, points_remaining } = await dash.discountStore.redeem("product_id")

Points Display Example

typescript
export function LoyaltyBanner({ customer }) {
  return (
    <div className="bg-gradient-to-r from-yellow-600 to-amber-600 p-4 rounded">
      <p className="font-bold">{customer.tier_name}</p>
      <p>{customer.loyalty_points} points ({customer.loyalty_balance} value)</p>
      <a href="/rewards">Redeem Points →</a>
    </div>
  )
}

Tiers

Loyalty tiers are configured in the dashboard. As customers accumulate points, they automatically advance through tiers which can unlock benefits like better earn rates or exclusive discounts.

Next Steps

  • Customer Addresses — Managing addresses
  • Discount Codes — Discount store and codes
  • Tracking Referrals — Referral points
PreviousTags & SegmentsNextCustomer Addresses

On this page

  • Overview
  • Reading Points
  • Earning Points
  • Social Earn Tasks
  • Redeeming Points
  • Points Display Example
  • Tiers
  • Next Steps