LogoLogo
Build appsContact API support
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
  • Ecwid API Changelog
  • May 2025
    • May 16
  • April 2025
    • April 25
    • April 11
  • March 2025
    • March 28
    • March 25
    • March 20
    • March 17

Lightspeed® 2025

On this page

Was this helpful?

  1. April 2025
  2. April 25

Schedule for automatic promotions enabling

What's new

It is now possible to automate enabling/disabling promotions by setting up a weekly schedule. With API, you can specify days of the week when the promotion must be active, and optionally set the start and/or end time for the selected days. Once recurrence settings are set up, the promotion automatically activates on specified days and deactivates afterwards.

New settings allow you to make promotions like "Weekend sale".

Changes in API

New fields are added to GET/PUT/POST requests to the /promotions endpoint.

  • recurring boolean field enables recurrence settings for the promotion.

  • recurrenceSettings object contains 3 fields for setting up a weekly schedule: activeDays array that accepts days of the week in a form of strings, and activeDayStartTime and activeDayEndTime that are used if you don't want the promotion to be active for 24 hours on specified days.

Request example for updating an existing promotion to a "Weekend sale":

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

{
    "recurring": true,
    "recurrenceSettings": {
        "activeDays": ["SAT","SUN"]
    }
}

where:

  • STOREID - your Ecwid store ID.

  • secret_token - access token of your application.

  • "recurring": true enables the schedule.

  • "activeDays": ["SAT","SUN"] sets the promotion to automatically become available during weekends and unavailable for the rest of the week.

Documentation links

Last updated 23 days ago

Was this helpful?

Search promotions
Update promotion
Create promotion