Two places to export
From the rules list — open the row actions on any rule and choose Export rule.
From the editor — open any rule and use Export, top right next to Import.
Both produce the same file: a small .json named after the rule, in the form
hide-shopify-payments-for-specific-countries.rule.json. These are tiny — a
typical rule is well under a kilobyte — so keeping a folder of them costs
nothing.
What it is for
| Use | Why |
|---|---|
| Move a rule between stores | Build once on a dev store, import to live |
| Back up before a big edit | The editor has no undo for a cleared condition set |
| Send to support | Far faster to diagnose than a screenshot |
| Template a setup you repeat | Agencies rolling the same rule across clients |
Export before switching condition sets
Switching a rule’s condition set clears its conditions with no undo. If you are about to experiment, export first — re-importing is quicker than rebuilding from memory.
What travels, and what does not
The file carries the rule’s action, method type, selected methods, conditions, match type and condition set.
What it cannot carry is the meaning of store-specific references. A condition on Product in cart points at a product that exists on the store it was built on. Import it elsewhere and that product may not exist — the importer tells you what it had to skip rather than importing something subtly wrong.