HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Update Flash Price Campaign

PUT https://open.shopline.io/v1/flash_price_campaigns/{id}


To update new flash price campaign
更新商品限時促銷價活動

curl --request PUT \
     --url https://open.shoplineapp.com/v1/flash_price_campaigns/id \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "flash_price_campaign": {
          "start_at": "2022-01-01 00:00:00",
          "end_at": "2022-01-02 00:00:00",
          "title": "2022-01-02 00:00:00",
          "price_sets": [
               {
                    "product_id": "610258858c5acd00452fcf8d",
                    "price": 23.16,
                    "price_sale": 20.28,
                    "price_details": [
                         {
                              "variation_key": "610258858c5acd00452fcf8d",
                              "price": 996.12,
                              "price_sale": 11.11
                         }
                    ]
               }
          ]
     }
}
'

Path Param

id Required string Flash price campaigns's ID
商品限時促銷價活動ID

Request Body

product Required Object
product.start_at Required string The start time of the event
商品限時促銷價活動的開始時間
Should use UTC time
應使用UTC時間
product.end_at Required Object The start time of the event
商品限時促銷價活動的開始時間
Should use UTC time
應使用UTC時間
product.title Required Object Flash price campaign's title
商品限時促銷價活動的名稱
product.price_sets Required Object The product price sets of this flash price campaigns.
商品限時促銷價活動的商品限時價格。
see create flash price campaign for detail