Our first app, Migrato, is live on the Shopify App Store - free plan, no credit card. Take a look
Home / Documentation / Filter Discounts
Discounts Import/Export

Filter Discounts

Export only the discounts you need, using filters and conditions.
6 min read Updated 14 October 2026 Applies to Migrato on all plans

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
Discount Export Filters
Discount Export Filters

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
i
Note

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

  1. Open Shopify Admin.
  2. Go to Apps → Migrato.
  3. Open the Export section.
  4. Select Discounts as the entity you want to export.
Discount Export
Discount 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
Select Discount Fields
Select Discount Fields

Step 3: Add Discount Filters

Open the Filters section and click Add New Filter.

  1. Select the discount field.
  2. Select the required condition.
  3. Enter or select the filter value.
  4. Add additional filters if required.
Add Discount Filter
Add Discount Filter

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.

Multiple Discount Filters
Multiple Discount Filters

Step 5: Start the Export

Once the filters have been configured:

  1. Review the selected discount fields.
  2. Review the filter conditions.
  3. Confirm the export settings.
  4. Start the export.

Migrato will process the export according to the selected filters.

Start Discount Export
Start Discount Export

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:

Example
gid://shopify/DiscountCodeNode/123456789

gid://shopify/DiscountCodeNode/987654321

Select:

ID → Equals to any of

Enter the required discount IDs.

Filter Discounts by ID
Filter Discounts by ID

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.

Filter Discounts by Title
Filter Discounts by Title

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.

Filter Discounts by Tags
Filter Discounts by Tags

Example 4: Export Active Discounts

To export only active discounts:

Status → Active

Migrato will export discounts that currently have an active status.

Filter Active Discounts
Filter Active Discounts

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.

Filter Discounts by Method
Filter Discounts by Method

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.

Discount Start Date Filter
Discount Start Date Filter

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.

Recently Updated Discounts
Recently Updated Discounts

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.

Discount Usage Count Filter
Discount Usage Count Filter

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.

Multiple Discount Filters
Multiple Discount Filters
★
Tip

When using multiple filters, review each condition carefully before starting the export to make sure the resulting dataset matches your requirements.

Ready to run this on your own store?

Migrato's free plan handles 25 items per job - enough to follow any page in these docs end to end before you pay anything.

Free plan forever No credit card 2-minute setup Uninstall anytime