跳转到主要内容
GET
JavaScript

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

page_size
integer<int32>

Page size (default = 10, max = 100).

必填范围: x >= 0
page_number
integer<int32>

Page number (default = 0).

必填范围: x >= 0
code
string

Filter by discount code (partial match, case-insensitive)

discount_type
enum<string>

Filter by discount type

可用选项:
percentage
active
boolean

Filter by active status (true = not expired, false = expired)

product_id
string

Filter by product restriction (only discounts that apply to this product)

响应

List of active Discounts

items
object[]
必填

Array of active (non-deleted) discounts for the current page.

最后修改于 2026年4月1日