# Add Snap Up Task

Note: Per item(SPU)There can only be one rush at a time. If the current Rush Quest has not ended, whether or not to start, are not allowed to create a second Rush You can change the status of the Snap Up task to end in advance, and then create a new task. This SPU must be populated each time a snap task is created All SKU buying information

# Interface call request specification

Http request method: POST
https://api.weixin.qq.com/product/limiteddiscount/add/access_token=xxxxxxxxx

# Request Parameter Sample

{
    "product_id":20959565,
    "start_time":1614863822,
    "end_time":1614873822,
    "limited_discount_sku_list":
    [
        {
            "sku_id":21244061,
            "sale_price":2888,
            "sale_stock":3
        },
        {
            "sku_id":24350012,
            "sale_price":2600,
            "sale_stock":50
        }
    ]
}

# Return Package Example

{
    "task_id": 346164
}

# Request Parameter Dxplaination

parameter type Is it necessary to fill out Introductions
product_id number yes Product ID for Buying
start_time number yes Start Time of Rush Task Second time stamp
end_time number yes End of rush hour Second time stamp Must be greater than the current time and start_time
limited_discount_sku_list[].sku_id number yes Under the Product ID of Participating in Buying Product information of different specifications
limited_discount_sku_list[].sale_price number yes SKU's snap up prices Must be less than the original price
limited_discount_sku_list[].sale_stock number yes Inventory of goods participating in the buying Must be less than or equal to existing stock

# Return parameter specification

parameter type Introductions
Errcode number Error code
task_id number Mission ID Return after successful creation

# Return code

Return code Type of error
-1 System exception
-2 Token is too long
9401020 Wrong parameter
9401021 Call the api without permission
110000 The product _ID already exists a rush task
110003 Snap up set time illegal