Skip to main content
Version: 3.x

VoucherSortField

No description

enum VoucherSortField {
CODE
NAME
START_DATE
END_DATE
VALUE
TYPE
USAGE_LIMIT
MINIMUM_SPENT_AMOUNT
}

Values​

VoucherSortField.CODE​

Sort vouchers by code.

DEPRECATED: this field will be removed in Saleor 4.0.

VoucherSortField.NAME​

Sort vouchers by name.

Added in Saleor 3.18

VoucherSortField.START_DATE​

Sort vouchers by start date.

VoucherSortField.END_DATE​

Sort vouchers by end date.

VoucherSortField.VALUE​

Sort vouchers by value.

This option requires a channel filter to work as the values can vary between channels.

VoucherSortField.TYPE​

Sort vouchers by type.

VoucherSortField.USAGE_LIMIT​

Sort vouchers by usage limit.

VoucherSortField.MINIMUM_SPENT_AMOUNT​

Sort vouchers by minimum spent amount.

This option requires a channel filter to work as the values can vary between channels.

Member of​

VoucherSortingInput input


Was this page helpful?