Skip to content

Republish Activity

POST
/promotion/202607/activities/{activity_id}/republish

Use this API to republish a product discount activity or a flash deal activity that expired or was deactivated within the last 7 days. This API only supports FIXED_PRICE, FLASHSALE, and DIRECT_DISCOUNT activities. You must provide a new effective period by passing the new begin_time and end_time. Products and SKUs already associated with the activity do not need to be added again. After the activity is republished, you can edit the activity and modify its products or SKUs as usual. We recommend using this API instead of recreating the activity to reduce requests to the API for adding products.

activity_id
required
string

A unique ID that identifies different activities.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

Media typeapplication/json
object
end_time

Activity end time as a Unix timestamp in seconds. It must be later than begin_time, and the effective period must be at least 10 minutes. The maximum period depends on the activity type and shop region; for FLASHSALE activities, it must not exceed 3 days.

integer format: int64
begin_time

Activity start time as a Unix timestamp in seconds. The value must be later than the current time.

integer format: int64
Example
{
"end_time": 1782895064,
"begin_time": 1782875064
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
activity_id

On success, the ID of the republished activity. This is the same activity_id supplied in the request path; republishing does not create a new activity. Use this ID for subsequent activity, product, or SKU edits.

string
Example
{
"code": 0,
"data": {
"activity_id": "7136104329798256386"
},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}