# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.dollarlabs.io/dollarback-store-credit/integrations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
