> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://regiostech.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Import Discounts from JSON Files

|| NOTE: To quickly create a discount, we recommend starting with our [AI Discount Generator](https://regiostech.crisp.help/en/article/ai-discount-generator-1woyn8t/), which can automatically generate discount logic from a simple prompt.
|| JSON import is best used when you already have pre-built logic. If this applies to you, you can proceed using the options below.


Using the `More > Import JSON file` or `Logic > Import` or `Create Discount > More > Import JSON file` button, you can import pre-made discount logic flows into the app to skip the bulk of setup effort.

## Use Cases
* Importing a `.json` file our support team sent you
* Reusing a discount logic flow between different stores

## Instructions
[![](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_cp1nus.png)](https://www.loom.com/share/5c4d241c6b334048bf5f81070a2c464b?sid=5e731b5a-ccdd-4f33-841e-e0eb0540b86e)

Click the above thumbnail to watch a video demonstration.

## From the Home Page
![Screenshot of the "More > Import JSON file"](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_1tenuus.png)

## From the Edit Product Discount Page

![Screenshot of the "Logic > Import"](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/import-json-3_1wpu9iv.png =700x201)

## From the AI Discount Generator Page

![](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/import-json-1_18tceh3.png =700x218)

![Screenshots of the "Create Discount > More > Import JSON file"](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/import-json-2_nvsrs2.png =700x238)

## Click "Import" or "Import JSON file"

![Screenshot of the "Import logic JSON file" modal](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_61pqvl.png)
2. Decide whether you want to create a product discount, order discount, shipping discount, or auto-add to cart. This choice will dictate the type of discount generated upon importing the file.

## Overwriting Existing Logic With a JSON File
![Screenshot of the "Logic > Import" button](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_n7s529.png)
1. Locate the top right of the screen to find the 'logic' button. Click on 'import'. If using a smaller screen, look for the 'actions' button, navigate to submenus, and select 'Logic > import'.
2. You can either click 'add file' to navigate to your JSON file or drag and drop the file directly onto the flowchart where it says 'discount logic'.

## Previewing Imported Logic
1. After uploading, preview the preview of the logic imported, which offers discounts based on specific criteria.
![Screenshot of a "Missing resources" alert](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1ro428d.png)
2. If you encounter an alert about missing resources, search your site to replace placeholders with actual identifiers for collections or products.
3. Select the appropriate collections/products, etc. to link the resources correctly before proceeding.
4. Once all resources are linked, click 'import' to finalize the process.
5. After the logic opens in full screen, set a descriptive title for the discount and hit 'save' to complete the setup.

### Cautionary Notes

* Ensure that the JSON file is correctly formatted and contains all necessary data before importing.
* Double-check that all placeholders are replaced with actual identifiers to avoid errors in discount application.
* If you encounter any issues during the import process, consult the support team for assistance.

### Tips for Efficiency

* Familiarize yourself with the [advanced logic builder](/en/article/about-the-advanced-logic-builder-1xxaj2u/) to navigate quickly.

## Your Feedback Matters

Your review helps keep this small business running. Please [leave one](https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal) on the Shopify App Store.