Update Promotions
You can re-enable an expired promotion by updating the end date and setting it in the future, in doing so you will clear out any previously attached codes - this is part of the system that prevents duplicate promotion codes existing on different promotions.
Update a Promotion
PUT
https://api.moltin.com/v2/promotions/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The unique promotion identifier |
Headers
Name | Type | Description |
---|---|---|
Authorization | string |
Request Body
Name | Type | Description |
---|---|---|
type | string | "promotion" |
id | number | The unique promotion identifier |
name | string | The name of your promotion |
description | string | A description of your promotion |
enabled | boolean |
|
promotion_type | string | One of: fixed_discount or percent_discount |
schema | object | One of: fixed schema, percent schema |
start | string | The start time of the promotion datetime (yyyy-mm-dd, yyyy-mm-ddThh:mm:ss+hh:mm). The simpler format will start the promotion at 00:00 UTC of the datetime specified. If time is not specified, it will default to the time at which the request was created. |
end | string | The end time of the promotion datetime (yyyy-mm-dd, yyyy-mm-ddThh:mm:ss+hh:mm). The simpler format will start the promotion at 00:00 UTC of the datetime specified. If time is not specified, it will default to the time at which the request was created. |
Last updated