List all discounts
Returns a paginated list of discounts. Supports filtering by type, status, condition, applies_to, date range, text search, product, and customer.
Query Parameters
ascdescnametypeapplies_toconditioncreated_atSearch by discount name, coupon code, or currency
Start date filter (ISO 8601 or unix timestamp)
End date filter (ISO 8601 or unix timestamp)
Filter by discount type
customer_discountproduct_discountFilter by what the discount applies to
selected_productsselected_categoriesall_productsFilter by activation condition
all_ordersitem_subtotalitem_quantitycouponvouchersorder_subtotal
order_quantityFilter by active/inactive status
activeinactiveFilter by product UUID
Filter by customer UUID
Responses
Discounts listed successfully
Fixed discount amount in smallest currency unit
Shipping discount in smallest currency unit
product_discountcustomer_discountall_ordersitem_subtotalitem_quantitycouponvouchersselected_productsselected_categoriesall_productsMinimum amount in smallest currency unit (for subtotal conditions) or quantity
order_subtotalorder_shippingorder_quantityUnix timestamp of expiry date
onceforeverrepeatingNumber of months for repeating subscription discounts
Customer UUID (only for customer_discount type)
Product UUIDs (only when applies_to is "selected_products")
Category configuration (only when applies_to is "selected_categories")
Coupon code (only when condition is "coupon")
Maximum redemptions (only when condition is "coupon")
Number of times redeemed (only when condition is "coupon")
Voucher code list (only when condition is "vouchers")
Voucher generation method (only when condition is "vouchers")
Voucher code prefix (only when condition is "vouchers")
Total number of vouchers (only when condition is "vouchers")
Unix timestamp
Validation or business-logic error.
| Code | Description |
|---|---|
1002 | Product or customer UUID not found |
Unauthorized – invalid or missing Bearer token