List all discounts
GET
https://api.tamio.com/v2/discounts/list
Returns a paginated list of discounts. Supports filtering by type, status, condition, applies_to, date range, text search, product, and customer.
Query Parameters
page
integer*
per_page
integer*
order
string
ascdesc
sort_by
string
nametypeapplies_toconditioncreated_at
filter
string
Search by discount name, coupon code, or currency
from
string
Start date filter (ISO 8601 or unix timestamp)
to
string
End date filter (ISO 8601 or unix timestamp)
type
string
Filter by discount type
customer_discountproduct_discount
applies_to
string
Filter by what the discount applies to
selected_productsselected_categoriesall_products
condition
string
Filter by activation condition
all_ordersitem_subtotalitem_quantitycouponvouchersorder_subtotal
order_quantity
status
string
Filter by active/inactive status
activeinactive
product_id
string
Filter by product UUID
customer_id
string
Filter by customer UUID
Responses
200
Discounts listed successfully
Discounts listed successfully
status
integer
total_results
integer
discounts
array of Discount
400
Validation or business-logic error. Possible `error_code` values:
Validation or business-logic error. Possible error_code values:
1002– ResourceNotFound: product or customer UUID not found
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string