Discount Flashsale List

🔒

Requires price_rules access scope. More access scope

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

This API is especially useful for:

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

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

NameTypeDescriptionRequired/OptionalExample
limitintLimit count per pageOptional20
pageintPage numberOptional1
need_detail_urlbooleanWhether to include detail URLsOptionaltrue

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

NameTypeExampleDescription
pageint1Current page number
limitint20Number of items per page
totalint1Total number of flashsale discounts
dataarray-Array of flashsale discount details
data[].idstring1475f9fc-cb07-4778-8448-e1b4ab864639Unique ID of the flashsale
data[].titlestringtzt-限时促销-增加客户下单Title of the flashsale
data[].discount_typestringpercentageType of discount applied
data[].once_per_customerint0Whether the discount is limited to one use
data[].starts_atstring1682651959Start time of the flashsale
data[].ends_atstring-1End time of the flashsale
data[].statusint1Status of the flashsale
data[].sortstring{"by":"title","direction":"asc"}Sorting configuration of the flashsale
data[].allocation_methodstringnoneAllocation method of the flashsale
data[].allow_oversoldstringuncheckWhether overselling is allowed
data[].progressstringongoingCurrent progress of the flashsale
data[].product_numint410Number of products included in the flashsale
data[].detail_urlstringtzt.myshoplaza.com/promotions/flashsale/1475f9fc-cb07-4778-8448-e1b4ab864639URL for detailed flashsale information

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "invalid line_item id"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

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