CrossupsellSortInput
Sorting criteria for cross-sell and upsell recommendation results.
Defines a field and order direction for sorting search results. Multiple sort inputs can be combined to create complex sorting logic where results are sorted by the first criteria, then by subsequent criteria for ties.
input CrossupsellSortInput {
field: CrossupsellSortField!
order: SortOrder
}
Fields
CrossupsellSortInput.field
● CrossupsellSortField!
non-null enum
The field to use for sorting cross-sell and upsell recommendation results.
Available sorting options include:
- ID: Sort by unique recommendation identifier
- TYPE: Group by recommendation type (accessories, alternatives, etc.)
- SUBTYPE: Sort by custom subtype classification
- PRODUCT_ID_FROM/CLUSTER_ID_FROM: Sort by source product/cluster
- PRODUCT_ID_TO/CLUSTER_ID_TO: Sort by target product/cluster
- CREATED_AT: Sort by creation timestamp
- LAST_MODIFIED_AT: Sort by last modification timestamp
CrossupsellSortInput.order
● SortOrder
enum
The sort order direction for the specified field.
- ASC: Ascending order (A-Z, 0-9, oldest to newest)
- DESC: Descending order (Z-A, 9-0, newest to oldest)
Default value: ASC
Member Of
CrossupsellSearchInput
input