LogoLogo
Build appsContact API support
Discounts and tips
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
Discounts and tips
  • Discounts and tips overview
  • Add discounts to the store
    • Automatic discounts (promotions)
    • Discount coupons
    • Bulk discount prices for products
    • Discounts calculated on your server
  • Add tips or surcharges to the store
    • Add tips selection to the checkout
    • Apply hidden surcharges
    • Calculate surcharges on your server
  • Customize discounts
    • Set up "Buy X - Get Y" promotions
    • Set up "Free shipping" promotions
    • Set up start and end dates for discounts
    • Limit discounts to customer groups
    • Limit discounts by products and categories
    • Limit the number of discount coupon uses

Lightspeed® 2025

On this page
  • Set customer groups for promotion
  • Set customer groups for discount coupon

Was this helpful?

  1. Customize discounts

Limit discounts to customer groups

PreviousSet up start and end dates for discountsNextLimit discounts by products and categories

Last updated 2 months ago

Was this helpful?

You can limit discount coupons and promotions to certain customer groups to create more engagement for new or regular customers only.

Set customer groups for promotion

If you have an existing promotion, you can make it available to specific customer groups with the following API call:

PUT /api/v3/STOREID/promotions/PROMOTIONID
Host: app.ecwid.com
Content-Type: application/json
Authorization: Bearer secret_token

{
    "triggers": {
        "customerGroups": [0, 1006534]
    }
}

where customerGroups is an array of customer group IDs ().

Learn more about customer groups in .

Change STOREID with your store ID, PROMOTIONID with the promotion ID (), and the secret_token with the secret access token of your app.

Set customer groups for discount coupon

If you have an existing discount coupon, you can limit its usage to new or regular customers only with the following API call:

PUT /api/v3/STOREID/discount_coupons/DISCOUNTCOUPONID
Host: app.ecwid.com
Content-Type: application/json
Authorization: Bearer secret_token

{
    "applicationLimit": "NEW_CUSTOMER_ONLY"
}

where applicationLimit must be one of:

  • UNLIMITED - no user application limits (use it to remove the limitation).

  • NEW_CUSTOMER_ONLY - discount coupon can be applied only by customers without placed orders. Unique customers are defined by the email they enter at the checkout.

  • REPEAT_CUSTOMER_ONLY - discount coupon can be applied only by customers who placed orders in the store before. Unique customers are defined by the email they enter at the checkout.

Change STOREID with your store ID, DISCOUNTCOUPONID with the discount coupon ID (), and the secret_token with the secret access token of your app.

Help Center

If you don't yet have an app for Ecwid API access, start with the following .

find discount coupon ID
find customer group ID
find promotion ID
instructions