See what each field/column from our “Discounts” template means including possible allowed values and examples.
Fields marked as “Export Only” cannot be imported/set in Shopify but can be exported with Matrixify export.
Excel Sheet Name
Discounts
When importing a file, to tell the app that you are importing Discounts, you can set the sheet/tab name to “Discount” or “Discounts”.
For example:
- If using a CSV file then the file name can be “my-shopify-discounts.csv”
- If using an XLSX file then the sheet/tab name would be set to “Discounts”. The file name for the XLSX file does not matter.
Even if the sheet/tab name is not set correctly, you will be able to manually change and set the entity you are importing after uploading file in the app.
See more on the Matrixify app import process and import user interface.
Need a quick start?
Export And Import Column
Basic Columns
| Column | Description / Example Value |
|---|---|
| ID | ID is an automatically generated number by Shopify to identify the item. It is filled in by an Export. Can be used for Import to identify and update existing Discounts. When creating new Discount, leave this value empty. Allowed ValuesNumber Example11920047631 |
| Title | Title of the Discount to show in Admin.
This is not a discount code – it’s the name to call all the discount codes of the same kind. To set the discount code, fill the “Code” column. If the Title column is not included in the import, it will automatically be set to match the value from the Code column. Allowed ValuesText ExampleXmas Discount |
| Command | When importing a Discount – tell the app, what to do with it:
If no Command is specified, then the app will assume the UPDATE command. Allowed ValuesNEW MERGE UPDATE REPLACE DELETE IGNORE ExampleMERGE |
| Code | Discount code that customers use at checkout. Required when creating a discount.
You can have several discount codes for one Discount. To create several discount codes, duplicate the row with the same ID or Title. When exporting a Discount with several codes, each code also will be put in a new line. The maximum length is 255 characters. The code is not case-sensitive, which means that there is no difference if big or small letters are used. Empty value for Automatic Discounts. When importing new Discounts with “Method” set as Allowed ValuesText Examplechristmas-sale-AB12 |
| Code Command | When importing Discounts with Codes, tell the app what to do with Codes listed in the “Code” column.
If no Code Command is specified, then the app will assume it as MERGE. Allowed ValuesMERGE REPLACE DELETE ExampleMERGE |
| Code Used Count
Export only |
A number of times the discount code has been used in Orders.
If Discount has multiple Codes in then will export each code used count. Example6 |
| Total Used Count
Export only |
A number of times the whole Discount has been used in Orders.
Example12 |
| Type | Type field specifies how Discount is handled within your Shopify store. See the Shopify manual for more details about different discount types.Mandatory column to import new Discounts. Allowed ValuesAmount off Products Amount off Order Free Shipping Buy X Get Y ExampleAmount off Order |
| Method | The Method column indicates if the Discount is Code or Automatic.
Mandatory column to import new Discounts. Allowed ValuesCode Automatic ExampleCode |
| Value Type | The Discounts value type. Possible values changes based on the Discounts Type.
Mandatory column to import new Discounts, except “Free Shipping” Discounts. Allowed ValuesFor “Free Shipping” Discount – empty value. For “Amount of Products” and “Amount of Order” Discounts: Percentage Fixed Amount For “Buy X Get Y” Discounts: Amount Off Each Percentage Free ExampleFixed Amount |
| Value | Discounts value. Empty for Free Shipping Discounts.
Mandatory column to import new Discounts, except “Free Shipping” Discounts. Allowed ValuesDecimal number
Example10.49 |
| Minimum Requirement | The type of minimum purchase requirements set for the Discount.
For Buy X Get Y Discount will represent the Customer Buys section as it is also a minimum requirement for the Discount to be applied. Mandatory column to import new Buy X Get Y Discounts and cannot be set as “None”. Allowed ValuesNone Amount Quantity ExampleAmount |
| Minimum Value | The minimum subtotal or quantity of items that are required for the discount to be applied.
Mandatory column to import new Buy X Get Y Discounts. Allowed ValuesIf “Minimum Requirement” is set to
Amount – decimal number.If the provided value is more than 2 decimal places then it is rounded to 2 decimal places. If “Minimum Requirement” is set to
Quantity – whole number.If the provided value is not a whole number then it is rounded down/floored to a whole number. Example50.99 |
| Limit Total Times | The number of times this discount can be used.
Cannot be set for Automatic Discounts. Allowed ValuesNumber Example2 |
| Limit One Use Per Customer | If TRUE, then each customer will be able to use this discount code only once.
Cannot be set for Automatic Discounts. Allowed ValuesTRUE FALSE ExampleTRUE |
| Limit Uses Per Order | Limit for the number of times the Discount can be used within an Order.
Can only be set to:
Allowed ValuesNumber Example1 |
| Status
Export only |
Discount Status – cannot be imported. When importing, use the Starts At and Ends At columns to manage if a discount is Active, Expired or Scheduled.
Possible ValuesActive Expired Scheduled ExampleActive |
| Starts At | The date and time when the discount becomes active and is available to customers. If left empty, will start as imported.If set in the future, the discount will be shown as Scheduled in Shopify. Allowed ValuesDate & Time Example2018-12-17 18:20:07 +0200 |
| Ends At | The date and time when the discount expires and is no longer available to customers.
If left empty, the code will never expire. Must be date and time after Starts At. If set in the past then the discount will show as Expired in Shopify. Allowed ValuesDate & Time Example2018-12-17 18:20:07 +0200 |
| Created At
Export only |
The date and time when the Discount was created in your Shopify store.
Cannot be set or changed and will always be when the specific Discount was actually created in your Shopify store. Possible ValuesDate & Time Example2018-12-16 18:20:07 +0200 |
| Updated At
Export only |
The date and time when the Discount was last updated in your Shopify store.
Possible ValuesDate & Time Example2018-12-17 18:20:07 +0200 |
| Summary
Export only |
A detailed explanation of what the Discount is, who can use it, when and where it applies, and any associated rules or limitations.
Possible ValuesText Example100% off one-time purchase products • Minimum purchase of £50.00 • One use per customer |
| Row #
Export only |
Will have a row number from 1 till the end for each row. So that if you change the sorting in your exported file to easier update your data, you can sort it back by “Row #” and return it to the original sorting. Because, you know, all the item data should be together – and if you change the sorting, you need to sort it back. |
| Top Row
Export only |
It will have value TRUE for each “top row” of the Discount. That can help you filter in Excel to get only the base rows, in case you need to get rid of repeated rows for each Discount if the Discount is exported in multiple rows, such as due to multiple codes in a discount. |
| Applies To: Type | The type of item the Discount applies to.
In the Shopify admin, this is selection if the Discount applies to specific Products or specific Collections for “Amount of Products” and “Buy X Get Y” Discounts. Cannot be set for “Free Shipping” Discounts. For “Amount of Orders” Discounts the value is “All”. For “Buy X Get Y” Discounts cannot be set to value “All”. Allowed ValuesAll Products Collections ExampleProducts |
| Applies To: Values | Item to which the Discount applies.
If the “Applies To: Type” is set to “Products” then:
If the “Applies To: Type” is set to “Collections” then values will be the collection Handles. The Products, Variants or Collections to which the Discount applies to, must exist in the store, otherwise, error for the Discount will be returned when importing. Allowed ValuesComma-separated handles for whole Products and Collections. Exampletshird-red, tshird-green tshirt-summer|SKU1234 |
Type-Specific
| Column | Description / Example Value |
|---|---|
| Buy X Get Y: Customer Buys Type | The type of item customers must purchase for the Discount to apply.
In the Shopify admin, this selection is under “customer gets” to select the Discount to apply to specific Products or specific Collections. Allowed ValuesProducts Collections ExampleProducts |
| Buy X Get Y: Customer Buys Values | Item to which Customer must purchase for the Discount to be applied.
If the Discount is set to apply to specific Products then:
If the Discount is set to apply to specific Collections then values will be the collection Handles. The Products, Variants or Collections to which the Discount applies to, must exist in the store, otherwise, error for the Discount will be returned when importing. Allowed ValuesComma separated handles Exampletshird-blue, tshird-yellow |
| Buy X Get Y: Customer Gets Quantity | Number of items customer will receive the discount for.
Allowed ValuesNumber Example1 |
| Free Shipping: Country Codes | Country international codes, consisting of 2 letters, to which free shipping to be applied to.
To enter several country codes, you can either enter them in the same cell, separating country codes by comma. Or you can create new rows with the same Discount Code value, and have each country code in its own row. It is important, that each Country Code is added to at least one Shipping Zone. You can do it in Admin: Settings -> Shipping -> Shipping Zones. Use “*” to apply free shipping to the Rest of the World. Allowed ValuesCountry Code ExampleCA, * |
| Free Shipping: Over Amount | Amount starting from what free shipping will be applied with this discount code.
Allowed ValuesDecimal number Example20.00 |
Eligibility
| Column | Description / Example Value |
|---|---|
| Eligibility: Customer Type | The type of Customer eligibility set for the Discount – either Discount applies to all customers, specific customer segments, or specific customers.
Allowed ValuesAll Segments Customers ExampleProducts |
| Eligibility: Customer Values | Customers or Customer Segments which are eligible for the Discount.
When importing, the Customers or Customer Segments set must exist in the Shopify store. Allowed ValuesText Example[email protected] |
| Column | Description / Example Value |
|---|---|
| Purchase Type | Shopify Discount attribute “Purchase Type”. Allows to manage if Discount applies to one-time purchase items, subscription items, or both.Purchase Type cannot be set or changed for Buy X Get Y discounts. In Shopify, Buy X Get Y discounts only can be applied to One-Time Purchases.To set Purchase Type to apply to Subscriptions or Both, the store must have a subscription plan enabled by using any of the available Shopify subscription apps. Allowed ValuesOne-Time Purchase Subscription Both ExampleOne-Time Purchase |
| Purchase Type: Recurring Subscription Limit | Shopify Discount attribute “Recurring payments for subscriptions”. Can be set/managed only if the Purchase Type is Subscription or Both.In Shopify admin, this field is managed by selecting one of the below options which in the spreadsheet file are managed via a numeric value:
If the Discounts Purchase Type is One-Time Purchase then the Recurring Subscription Limit is exported as value “1” and ignored when importing. Allowed ValuesNumber Example1 |
Combinations
| Column | Description / Example Value |
|---|---|
| Combines with Product Discounts | Determines if the Discount can be combined with Product discounts.
Allowed ValuesTRUE FALSE ExampleTRUE |
| Combines with Order Discounts | Determines if the Discount can be combined with Orders discounts.
Allowed ValuesTRUE FALSE ExampleTRUE |
| Combines with Shipping Discounts | Determines if the Discount can be combined with Free Shipping discounts. Attribute does not exist for Free Shipping discounts as you cannot combine Free Shipping discounts with other Free Shipping discounts. Allowed ValuesTRUE FALSE ExampleTRUE |
Shareable Links
Discount URLs that can be used to share the Discount.
Can only be Exported and are always generated automatically by Shopify.
| Column | Description / Example Value |
|---|---|
| Shareable Link: Target
Export only |
The type of page that’s associated with the URL.
Possible ValuesHOME COLLECTION PRODUCT ExampleCOLLECTION |
| Shareable Link: Title
Export only |
The title of the page that’s associated with the URL.
ExampleSummer Collection |
| Shareable Link: URL
Export only |
The Discounts URL that can be used to share the Discount.
Examplehttps://testing-store.myshopify.com/discount/ctc-004 |
| Shareable Link: Image URL
Export only |
The image URL of the item (product or collection) to which the discount applies.
Examplehttps://cdn.shopify.com/s/files/1/2244/9876/1234/files/red_shirt_123.jpg?v=1612358112 |
Export Filters
In the Matrixify app, you can apply filters to Export only specific items from your Shopify Store.
When creating new export, select what you wish to export, and under that entity click on the “Filters” button.
Note: total displayed item count and estimated time won’t be affected by the filters applied.
| Filter | Description |
|---|---|
| ID | Filters Discounts that have specific Shopify IDs.
Possible Conditions
Example87123461124,1234897263,98273493214 |
| Title | Put the comma-separated list of all the Discount Titles which you want to filter by.
Possible Conditions
ExampleX-Mas2019, Black Friday Discount |
| Status | Allows to export filters by their Status.
Possible Conditions
|
| Method | Filter Discounts by their application Method to export only either Code or Automatic Discounts.
Possible Conditions
|
| Starts At | Allows exporting Discounts by their Starts At field.
Relative date condition allows you to export Discounts that have Starts At the last full amount of time. Possible Conditions
|
| Ends At | Allows exporting Discounts by their Ends At field.
Relative date condition allows you to export Discounts that have Ends At in the last full amount of time. Possible Conditions
|
| Created At | Allows exporting Discounts by the Created At date – created date in the Shopify within a specific date range.
Relative date condition allows you to export Discounts that have been created in the last full amount of time. For example – Last 1 Days, would export Discounts from last full day, so yesterday. Possible Conditions
|
| Updated At | Allows exporting Discounts by their Updated At attribute – last updated date in the Shopify within a specific date range.
Relative date condition allows you to export Discounts that have been updated in the last full amount of time. For example – Last 1 Days, would export Discounts from last full day, so yesterday. Possible Conditions
|
| Total Used Count | Filter Discounts export by each Discounts Total Used Count.
Possible Conditions
|
Legacy columns
On February 20, 2025, the Matrixify app Discounts sheet export and import functionality was updated to use Shopify GraphQL.
We used the chance to also significantly improve the Discounts template format to be able to store all the newly available fields, and make it more understandable, user-friendly and more similar to the Admin UI field structures.
The following columns were removed from the Export setup and mapped to various other new columns and fields.
In Matrixify app Imports they will continue to work and will be recognized. You can see them in the Import UI marked as “Legacy”.
| Legacy Column | Description / Mapped Columns |
|---|---|
| Used Count | Legacy Export-only column.
Equivalent new template column:
|
| Discount Type | Legacy column.
Previously used for the following Discount types: “Percentage”, “Fixed Amount”, “Free Shipping” and “Buy X Get Y”. Equivalent new template columns:
|
| Discount Value | Legacy column.
Change – the value in this column was previously exported as a negative decimal number. Equivalent new template column:
|
| Discount Value Type | Legacy column.
This column was used only in Buy X Get Y Discounts for possible values “Percentage”, “Amount Off Each” and “Free”. Equivalent new template column:
|
| Minimum Purchase Amount | Legacy column.
Grouped functionally for legacy columns: “Minimum Purchase Amount, “Minimum Quantity Of Items” and “Customer Buys: Quantity” as they cannot all be set at the same time. Equivalent new template columns:
|
| Limit Once Per Order | Legacy column.
The legacy column was used only in Amount of Products Fixed Amount discounts. Equivalent new template column:
|
| Max Uses Per Order | Legacy column.
The legacy column was used only in Buy X Get Y discounts. Equivalent new template column:
|
| Minimum Quantity Of Items | Legacy column.
Grouped functionally for legacy columns: “Minimum Purchase Amount, “Minimum Quantity Of Items” and “Customer Buys: Quantity” as they cannot all be set at the same time. Equivalent new template columns:
|
| Customer Buys: Quantity | Legacy column.
Grouped functionally for legacy columns: “Minimum Purchase Amount, “Minimum Quantity Of Items” and “Customer Buys: Quantity” as they cannot all be set at the same time. Equivalent new template columns:
|
| Customer Buys: Collections | Legacy column.
Grouped functionally for legacy columns: “Customer Buys: Collections”, “Customer Buys: Products” and “Customer Buys: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Customer Buys: Products | Legacy column.
Grouped functionally for legacy columns: “Customer Buys: Collections”, “Customer Buys: Products” and “Customer Buys: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Customer Buys: Variants | Legacy column.
Grouped functionally for legacy columns: “Customer Buys: Collections”, “Customer Buys: Products” and “Customer Buys: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Customer Gets: Quantity | Legacy column.
Equivalent new template column:
|
| Applies To: Collections | Legacy column.
Grouped functionally for legacy columns: “Applies To: Collections”, “Applies To: Products” and “Applies To: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Applies To: Products | Legacy column.
Grouped functionally for legacy columns: “Applies To: Collections”, “Applies To: Products” and “Applies To: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Applies To: Variants | Legacy column.
Grouped functionally for legacy columns: “Applies To: Collections”, “Applies To: Products” and “Applies To: Variants” as they cannot all be set at the same time. Equivalent new template columns:
|
| Applies To: Customer Groups | Legacy column.
Grouped functionally for legacy columns: “Applies To: Customer Groups”, “Applies To: Customers” and “Applies To: Customers Email” as they cannot all be set at the same time. Equivalent new template columns:
|
| Applies To: Customers | Legacy column.
Grouped functionally for legacy columns: “Applies To: Customer Groups”, “Applies To: Customers” and “Applies To: Customers Email” as they cannot all be set at the same time. Equivalent new template columns:
|
| Applies To: Customers Email | Legacy column.
Grouped functionally for legacy columns: “Applies To: Customer Groups”, “Applies To: Customers” and “Applies To: Customers Email” as they cannot all be set at the same time. Equivalent new template columns:
|
Good To Know
- To update only some columns of existing Discounts, remove those columns from the Excel file, which you don’t need to update. Then the Import will not touch them.
- If you have the Column with an empty value, then this field will be changed to empty.
- When you copy Discount codes from one shop to another, if they have related Collections Products or Variants, make sure that those exist in your other store, too.