Chuyển đến nội dung chính
GET
JavaScript

Ủy quyền

Authorization
string
header
bắt buộc

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

Tham số truy vấn

page_size
integer<int32>

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

Phạm vi bắt buộc: x >= 0
page_number
integer<int32>

Page number (default = 0).

Phạm vi bắt buộc: x >= 0
code
string

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

discount_type
enum<string>

Filter by discount type

Tùy chọn có sẵn:
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)

Phản hồi

List of active Discounts

items
object[]
bắt buộc

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

Lần sửa đổi cuối 1 tháng 4, 2026