Import and export Shopify discounts
Excel tab and CSV name: Discounts. Percentage values are percentage points. 1 means 1%.
The sheet name Leaper looks for is Discounts. Type is the discount kind: amount off, Buy X Get Y, or free shipping. Percentage values are percentage points. 1 means 1%. New code discounts apply to all customers. Updates do not change existing customer or segment targeting. App discounts export but cannot be imported. Segments, variants, and country-based items are not written. Removing an existing minimum requirement is not supported from the file.
How rows group
One discount is one row. Code is empty for an automatic discount.
How a row is matched
Order is ID, then Code, then Title.
Command
| Command | What import does |
|---|---|
| empty or MERGE | Update the matched row, or create it if there is no match. |
| NEW | Create. Skipped if it already exists. |
| UPDATE | Update. Fails if there is no match. |
| DELETE | Delete the matched row. |
| IGNORE | Skip the row. |
File example
What fails
- An app discount (built with a Shopify Function) exports and then fails on import.
- Type that is not recognized fails the row.
- Status ACTIVE activates. EXPIRED deactivates. SCHEDULED cannot be set directly; it comes from Starts At.
- Applies To Items are product or collection handles on this shop. Missing handles are skipped.
The full header list is on Columns.
FAQ
- 1 means 100%?
- No. Percentage 1 is 1%. Use 10 for 10%.
- App discounts?
- They export. Import of those rows fails.
- Import job?
- Import discounts.
