# Set up start and end dates for discounts

You can set up start and end dates for both discount coupons and promotions for creating timed offers, such as a **Black Friday** discount.

{% hint style="info" %}
If you don't yet have an app for Ecwid API access, start with the following [instructions](https://app.gitbook.com/s/uOzT5egoVTAjMJwRuMQT/get-started/set-up-your-dev-environment-in-ecwid#step-2.-get-your-first-application).
{% endhint %}

### Start and end dates for promotion

If you have an existing promotion, you can change its start and end dates with the following API call:

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

{
    "triggers": {
        "startDate": "2025-03-06 00:00:00 +0000",
        "endDate": "2025-03-30 23:00:00 +0000"
    }
}
```

Change `STOREID` with your store ID, `PROMOTIONID` with the promotion ID ([find promotion ID](https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/promotions/search-promotions)), and the `secret_token` with the secret access token of your app.

### Start and end dates for discount coupon

If you have an existing discount coupon, you can change its start and end dates with the following API call:

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

{
    "launchDate": "2025-03-06 00:00:00 +0000",
    "expirationDate": "2025-03-30 12:00:00 +0000"
}
```

Change `STOREID` with your store ID, `DISCOUNTCOUPONID` with the discount coupon ID ([find discount coupon ID](https://app.gitbook.com/s/G9n5VxMY9T0Ob3D56PSD/rest-api/discounts/discount-coupons/search-discount-coupons)), and the `secret_token` with the secret access token of your app.
