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, andactiveDayStartTime
andactiveDayEndTime
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":
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
Was this helpful?