Get All Discount Flash Sale List

Retrieves a list of flash sale discounts available for a shop.

🔒

Requires price_rules access scope. More access scope

The Discount Flash sale List API retrieves a list of flash sale discounts available for a shop. This enables users to manage and view flash sale discount details effectively.

This API is especially useful for:

  1. Viewing available flash sale discounts in the store.
  2. Managing flash sale campaigns for customers.
  3. Fetching detailed flash sale discount information.

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoCursor for pagination, use the cursor from the response to retrieve the next pagecursor_123456
page_sizeint32NoA limit on the number of objects to be returned. Ranges from 1 to 250. Default is 1020
need_detail_urlbooleanNoIf true, returns detail URLs in the responsetrue

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring200Error code (200 indicates success)
messagestringSuccessError message
dataobject{...}Contains the price rules data
data.flash_salesarray of objects[ {...}, {...} ]List of flash sale objects
data.cursorstringcursor_123456Cursor for pagination
data.has_morebooleantrueIndicates if there are more results available

Flash Sale Object Structure

ParameterTypeExampleDescription
idstringfs_123456Unique identifier of the flash sale
titlestringSummer Flash SaleName of the flash sale
discount_typestringpercentageType of discount (percentage, fixed_amount)
once_per_customerint321Whether the sale is limited to once per customer (1=yes, 0=no)
starts_atstring2023-06-01T00:00:00ZStart date and time of the flash sale (ISO 8601 format)
ends_atstring2023-06-30T23:59:59ZEnd date and time of the flash sale (ISO 8601 format)
statusint321Current status of the flash sale (1=active, 0=inactive, 2=upcoming)
sortstringprioritySorting priority of the flash sale
allocation_methodstringeachHow discounts are allocated (each, across)
allow_oversoldstringfalseWhether overselling is allowed (true/false)
progressstring50%Current participation progress
product_numint3242Number of products included in the flash sale
detail_urlstringhttps://example.com/flash-sale/123Detailed URL for the flash sale (only returned if need_detail_url=true)
apply_typestringall_productsType of product application (all_products, selected_products)
create_sourcestringmerchantSource of creation (merchant, system, api)

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!