AdminGetDiscountsParams
Parameters used to filter and configure the pagination of the retrieved discounts.
Properties
Filter discounts by their associated rule.
q
stringSearch terms to search discounts' code fields.
is_dynamic
booleanFilter discounts by whether they're dynamic.
is_disabled
booleanFilter discounts by whether they're disabled.
created_at
DateComparisonOperatorDate filters to apply on the discounts' created_at
date.
created_at
DateComparisonOperatorcreated_at
date.updated_at
DateComparisonOperatorDate filters to apply on the discounts' updated_at
date.
updated_at
DateComparisonOperatorupdated_at
date.order
stringThe field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with
-
.expand
stringComma-separated relations that should be expanded in the returned data.
fields
stringComma-separated fields that should be included in the returned data.
if a field is prefixed with
+
it will be added to the default fields, using -
will remove it from the default fields.
without prefix it will replace the entire default fields.offset
numberThe number of items to skip when retrieving a list.
Default: 0
limit
numberLimit the number of items returned in the list.
Default: 20
Was this section helpful?