# 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**".&#x20;

#### 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":

```http
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

{% content-ref url="<https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/search-promotions>" %}
[Search promotions](https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/search-promotions)
{% endcontent-ref %}

{% content-ref url="<https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/update-promotion>" %}
[Update promotion](https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/update-promotion)
{% endcontent-ref %}

{% content-ref url="<https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/create-promotion>" %}
[Create promotion](https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/create-promotion)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ecwid.com/changelog/april-2025/april-25/schedule-for-automatic-promotions-enabling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
