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.

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

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:

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), 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:

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), and the secret_token with the secret access token of your app.

Last updated

Was this helpful?