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

Field Type Example Description
page int 1 Current page number
limit int 20 Number of items per page
total int 1 Total number of flashsale discounts
data array - Array of flashsale discount details
data[].
id
string 1475f9fc-cb07-4778-8448-e1b4ab864639 Unique ID of the flashsale
data[].
title
string tzt-限时促销-增加客户下单 Title of the flashsale
data[].
discount_type
string percentage Type of discount applied
data[].
once_per_customer
int 0 Whether the discount is limited to one use
data[].
starts_at
string 1682651959 Start time of the flashsale
data[].
ends_at
string -1 End time of the flashsale
data[].
status
int 1 Status of the flashsale
data[].
sort
string {"by":"title","direction":"asc"} Sorting configuration of the flashsale
data[].
allocation_method
string none Allocation method of the flashsale
data[].
allow_oversold
string uncheck Whether overselling is allowed
data[].
progress
string ongoing Current progress of the flashsale
data[].
product_num
int 410 Number of products included in the flashsale
data[].
detail_url
string tzt.myshoplaza.com/promotions/flashsale/1475f9fc-cb07-4778-8448-e1b4ab864639 URL 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!