# Shopify flow

This guide explains how to configure **Dollarback cashback workflows** using **Shopify Flow** to debit or credit store credit to user account. By combining these tools, you can create highly customized reward logic—far beyond standard app settings.

{% embed url="<https://dollarlabs.neetorecord.com/watch/acbb81bba0cd76c23297>" %}

***

### Overview

Shopify Flow allows you to automate cashback rewards (store credits) based on specific customer actions or conditions. With Dollarback integration, you can:

* Reward first-time customers
* Incentivize milestone orders (e.g., 10th order)
* Customize reward amounts dynamically
* Support multi-currency stores
* Set flexible expiry rules
* Credit or debit store credit automatically

***

### Example Use Case: Reward First Order

Here’s a simple workflow to reward customers on their first purchase:

#### 1. Trigger: Order Created

Start with the **Order Created** trigger in Shopify Flow.

#### 2. Condition: First Order

Add a condition:

* `Customer total orders = 1`

This ensures the reward is only applied to the customer’s first order.

#### 3. Action: Issue Cashback

Configure the cashback reward:

* **Reward Type**: Percentage of order value
* **Example**: 5% or 10% cashback
* **Amount Field**: Can use dynamic variables
* **Currency Field**: Use `presentment currency` to match the customer’s checkout currency

This ensures accurate rewards even for stores operating in multiple currencies.

***

### Using Variables (Dynamic Rewards)

Dollarback supports variables in:

* **Amount**
* **Currency**

This enables advanced logic, such as:

* Calculating rewards based on order value
* Adapting currency automatically
* Creating personalized reward flows

***

### Customizing Offer Details

You can enhance your cashback setup with additional configurations:

#### Offer Title

* Add a custom title for the reward
* Helps with tracking in store credit logs and analytics

#### Expiry Settings

* Set custom expiration periods (e.g., 90 days, 180 days)
* Override default app expiry rules

***

### Advanced Capabilities

With Shopify Flow + Dollarback, you can:

* Create complex reward logic beyond app limitations
* Control **when and how** store credit is issued
* Automatically:
  * Credit store credit
  * Debit store credit
  * Remove store credit

This gives you full control over your store credit system.

***

### Understanding V1 vs V2 Flow Actions

There are two versions of Dollarback flow actions:

#### V1 (Basic)

* Static values for amount and currency
* Best for simple setups
* Quick and easy to configure

#### V2 (Advanced)

* Supports **dynamic variables**
* Ideal for:
  * Conditional logic
  * Calculated rewards
  * Complex workflows

**Recommendation:**\
Use **V2** if you need flexibility and advanced automation.

***

### Extending Functionality with Shopify Flow

Anything achievable with Shopify Flow can now be extended to cashback logic, including:

* Customer segmentation
* Order-based triggers
* Behavioral rewards
* Custom promotional campaigns

You’re not limited by the app’s built-in features—Shopify Flow unlocks deeper customization.

***

### Pro Tip: Use Shopify Sidekick

Shopify Sidekick can help you:

* Quickly build workflows
* Automate complex logic
* Generate flows with minimal effort

It’s especially useful for advanced setups.

***

### Need Help?

If your use case isn’t supported out of the box:

* Use Shopify Flow to extend functionality
* Reach out to support for guidance

***

### Summary

By integrating Dollarback with Shopify Flow, you can:

* Automate cashback rewards
* Build advanced promotional logic
* Support multi-currency stores
* Fully control store credit behavior

This setup is powerful, flexible, and scalable for any Shopify store.
