AdminGetDiscountsParams
Parameters used to filter and configure the pagination of the retrieved discounts.
constructor
Parameters
args
unknown[]RequiredProperties
expand
stringComma-separated relations that should be expanded in the returned data.
fields
stringComma-separated fields that should be included in the returned data.
is_disabled
booleanFilter discounts by whether they're disabled.
is_dynamic
booleanFilter discounts by whether they're dynamic.
limit
numberLimit the number of items returned in the list.
Default: 20
offset
numberThe number of items to skip when retrieving a list.
Default: 0
q
stringSearch terms to search discounts' code fields.
Filter discounts by their associated rule.
Was this section helpful?