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 products and categories for promotion
  • Limit promotion by a specific product variation
  • Set products and categories for discount coupon

Was this helpful?

  1. Customize discounts

Limit discounts by products and categories

PreviousLimit discounts to customer groupsNextLimit the number of discount coupon uses

Last updated 2 months ago

Was this helpful?

You can limit the application of discount coupons and promotions to certain products and categories to create product promos or category sales.

Set products and categories for promotion

If you have an existing promotion, you can make it affect only specific products and products from a specific category with the following API call:

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

{
    "targets": {
        "products": [102039482, 236754267],
        "categories": [0, 80056181]
    }
}

where products and categories are arrays of product and category IDs (, ).

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

Limit promotion by a specific product variation

You can also limit promotion by specific variation IDs to make offers like 10% off for XL blouses:

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

{
    "targets": {
        "products": [102039482, 236754267],
        "combinations": [1006525572, 1086715627]
    }
}

Set products and categories for discount coupon

If you have an existing discount coupon, you can make it work with specific products and products from a specific category with the following API call:

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

{
    "catalogLimit": {
        "products": [102039482, 236754267],
        "categories": [0, 80056181]
    }
}

where combinations is an array of product combination IDs ().

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

where products and categories are arrays of product and category IDs (, ).

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

find variation ID
find promotion ID
find product ID
find category ID
find discount coupon ID
find product ID
find category ID
find promotion ID

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

instructions