Filter Discounts
Export only the discounts you need, using filters and conditions.Migrato allows you to export specific Shopify discounts by applying filters before starting an export.
This is especially useful when your store contains a large number of discounts and you only want to export discounts that match particular criteria.
Migrato currently provides the following discount filter fields:
-
ID
-
Title
-
Tags
-
Status
-
Method
-
Starts At
-
Ends At
-
Updated At
-
Created At
-
Total Used Count
Available Discount Filters
| Filter | Description | Available Conditions |
|---|---|---|
| ID | Filters discounts using their Shopify discount ID. | Equals to any of; Not equal to any of |
| Title | Filters discounts based on their title or name. | Equals to any of; Contains any; Contains none |
| Tags | Filters discounts based on assigned discount tags. | Equals to any of; Not equal to any of; Contains any; Contains none |
| Status | Filters discounts based on their current Shopify discount status. | Active; Scheduled; Expired, where supported |
| Method | Filters discounts based on how the discount is applied. | Code; Automatic |
| Starts At | Filters discounts based on the date and time when they become active. | On or after; On or before; Date range; Relative date |
| Ends At | Filters discounts based on their expiration date and time. | On or after; On or before; Date range; Relative date |
| Updated At | Filters discounts based on when they were last updated. | On or after; On or before; Date range; Relative date |
| Created At | Filters discounts based on when they were created. | On or after; On or before; Date range; Relative date |
| Total Used Count | Filters discounts based on the total number of times they have been used. | Equals; Less than; Less than or equal to; Greater than; Greater than or equal to; Between |
The exact conditions displayed for a filter depend on the selected field and the current Migrato implementation.
How to Filter Discounts for Export
Follow these steps to export discounts based on specific conditions.
Step 1: Open Discount Export
- Open Shopify Admin.
- Go to Apps → Migrato.
- Open the Export section.
- Select Discounts as the entity you want to export.
Step 2: Select Discount Fields
Select the discount fields you want to include in the export.
You can select fields from groups such as:
-
Basic Columns
-
Type-Specific
-
Eligibility
-
Purchase Type
-
Combinations
-
Shareable Links
Step 3: Add Discount Filters
Open the Filters section and click Add New Filter.
- Select the discount field.
- Select the required condition.
- Enter or select the filter value.
- Add additional filters if required.
Step 4: Review the Filters
Review all selected filter conditions before starting the export.
For example, you could configure:
-
Status = Active
-
Method = Code
-
Total Used Count > 10
Migrato will use the configured conditions to determine which discounts are included in the export.
Step 5: Start the Export
Once the filters have been configured:
- Review the selected discount fields.
- Review the filter conditions.
- Confirm the export settings.
- Start the export.
Migrato will process the export according to the selected filters.
Filter Conditions
Migrato provides different filter conditions depending on the selected discount field.
Text-Based Conditions
| Condition | Description |
|---|---|
| Equals to any of | Exports discounts where the selected field matches any of the specified values. |
| Not equal to any of | Exports discounts where the selected field does not match any of the specified values. |
| Contains any | Exports discounts where the selected field contains any of the specified values. |
| Contains none | Exports discounts where the selected field does not contain any of the specified values. |
| Contains | Exports discounts where the selected field contains the specified text. |
| Does not contain | Exports discounts where the selected field does not contain the specified text. |
Date-Based Conditions
| Condition | Description |
|---|---|
| On or after | Exports discounts whose selected date is on or after the specified date. |
| On or before | Exports discounts whose selected date is on or before the specified date. |
| Date range | Exports discounts whose selected date falls within the specified date range. |
| Relative date | Exports discounts based on a relative period, such as the last few days, weeks, or months. |
Status Conditions
| Condition | Description |
|---|---|
| Active | Exports discounts with an active status. |
| Scheduled | Exports discounts that are scheduled to become active. |
| Expired | Exports discounts that have expired. |
Boolean Conditions
Where a discount field is represented as a Boolean value, Migrato may provide:
| Condition | Description |
|---|---|
| Yes | Exports discounts where the selected setting is enabled or true. |
| No | Exports discounts where the selected setting is disabled or false. |
Numeric Conditions
| Condition | Description |
|---|---|
| Equals | Exports discounts where the numerical value exactly matches the specified value. |
| Less than | Exports discounts where the numerical value is lower than the specified value. |
| Less than or equal to | Exports discounts where the numerical value is lower than or equal to the specified value. |
| Greater than | Exports discounts where the numerical value is higher than the specified value. |
| Greater than or equal to | Exports discounts where the numerical value is higher than or equal to the specified value. |
| Between | Exports discounts where the numerical value falls between the specified minimum and maximum values. |
Discount Filter Examples
Example 1: Export Discounts by ID
To export selected discounts, use the ID filter.
For example:
gid://shopify/DiscountCodeNode/123456789
gid://shopify/DiscountCodeNode/987654321
Select:
ID → Equals to any of
Enter the required discount IDs.
Example 2: Export Discounts by Title
To export discounts containing a particular title:
Title → Contains any
For example:
Summer
Holiday
Sale
Migrato will export discounts whose title matches the selected text criteria.
Example 3: Export Discounts by Tags
To export discounts associated with specific tags:
Tags → Equals to any of
For example:
summer-sale
vip
campaign-2026
This can be useful when discounts are organized using tags.
Example 4: Export Active Discounts
To export only active discounts:
Status → Active
Migrato will export discounts that currently have an active status.
Example 5: Export Code-Based Discounts
To export discounts that require a discount code:
Method → Code
This can be useful when you need to review or migrate manually entered discount codes separately from automatic discounts.
Example 6: Export Discounts Starting Within a Date Range
To export discounts scheduled or started within a specific period:
Starts At → Date Range
For example:
August 1, 2026 → August 31, 2026
Migrato will export discounts whose start date falls within the selected range.
Example 7: Export Recently Updated Discounts
To export discounts updated recently:
Updated At → Relative Date → Last 30 Days
This can be useful when you want to review or synchronize recently changed discount configurations.
Example 8: Export Frequently Used Discounts
To export discounts based on their usage count:
Total Used Count → Greater than → 100
Migrato will export discounts whose total usage count is greater than the specified value.
Using Multiple Filters
Migrato allows you to combine multiple discount filters to create more targeted exports.
For example, you can combine:
-
Status = Active
-
Method = Code
-
Total Used Count > 100
-
Updated At = Last 30 Days
This allows you to export only active, code-based discounts that have been used frequently and were recently updated.
When using multiple filters, review each condition carefully before starting the export to make sure the resulting dataset matches your requirements.