> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarback-store-credit/integrations.md).

# Integrations

Welcome to Dollarback Store Credit! In this guide, we’ll walk you through how to integrate Shopify Flow with Dollarback to create advanced store credit programs. By leveraging Flow, you can customize store credit rewards based on specific order conditions.

{% embed url="<https://youtu.be/FjzSgRjW3mk>" %}

***

### Enabling Shopify Flow Integration

Before you start creating workflows in Shopify Flow, you need to enable the integration within the Dollarback Store Credit app:

1. **Navigate to Integrations**: Go to the Dollarback Store Credit dashboard.
2. **Enable Shopify Flow**: Under the integrations section, enable the Shopify Flow integration.

### Creating a Shopify Flow Workflow

Once the integration is enabled, follow these steps to create a new workflow:

#### Step 1: Create a New Workflow

1. Open Shopify Flow.
2. Click **Create Workflow**.

#### Step 2: Select a Trigger

1. Click **Select Trigger**.
2. Choose **Order Created** as the trigger event.

#### Step 3: Define a Condition

1. Add a **Condition** block.
2. Select **Order Line Item Variant ID**.
3. Set the condition to check if the variant ID equals a specific product (e.g., *Minimal Snowboard*).

#### Step 4: Add an Action to Deposit Store Credit

1. Click **Add Action**.
2. Select **Deposit Store Credit**.
3. Enter the amount (e.g., $10) that should be credited when the condition is met.
4. Add a **Title** and **Description** (e.g., *Store credit of $10 added*).

#### Step 5: Enable the Workflow

1. Click **Turn On Workflow** to activate it.
2. Ensure that any conflicting store credit programs within the Dollarback app are disabled to avoid duplicate rewards.

### Testing the Workflow

To verify that the workflow is running correctly:

1. Create a **Draft Order** in Shopify.
2. Select a customer and add the qualifying product&#x20;
3. Choose a shipping address&#x20;
4. Complete the order by marking it as **Paid**.
5. Navigate to **Shopify Flow > Recent Runs** to confirm that the workflow executed successfully.
6. Go to **Customers > Customer Account** to check if the $10 store credit was applied.

### Customization Possibilities

With Shopify Flow and Dollarback, you can:

* Reward different customer segments with varying cashback amounts.
* Set store credit rewards based on total order value.
* Customize conditions and triggers to fit your business needs.
