> 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/store-credit-for-submitting-review/reward-yotpo-reviews-using-dollarback.md).

# Reward Yotpo reviews Using Dollarback

How to Reward Product Reviews with Shopify Store Credit Using Dollarback and Yotpo Reviews Integration

**Introduction**\
This guide walks you through how to integrate [Yotpo: Product Reviews App](https://apps.shopify.com/yotpo-social-reviews) with [Dollarback: Cashback & Loyalty](https://apps.shopify.com/dollarback) using Shopify Flow. After this setup, your store can automatically reward customers with store credit whenever they leave a product review.

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

***

#### 🛠️ Prerequisites

* Yotpo: Product Reviews App installed and fully configured
* Dollarback: Cashback & Loyalty App installed
* Shopify Flow installed
* Reviewer email must be collected as part of the review
* Dollarback’s **Shopify Flow integration enabled**

***

#### 🔁 Step-by-Step Setup

**1. Enable Shopify Flow Integration in Dollarback**

* Open the Dollarback app
* Go to **Integrations** → **Shopify Flow**
* Ensure it's **enabled**

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-2a2eaee55fe973480b1edf8587cd9d6f048b8883%2Fdb-review-flow-enable-annotated.png?alt=media" alt="The Shopify Flow Integration card in DollarBack with an Enabled badge and a Disable button."><figcaption><p>In DollarBack, open Integrations, click Set up on the Shopify Flow card, and click Enable. The badge then reads Enabled.</p></figcaption></figure>

***

**2. Create a New Flow in Shopify Flow**

* Go to your Shopify Admin → **Flow**
* Create a new workflow
* Set the **trigger**: `Yotpo - New Review Submitted`

> ⚠️ **Note**: Yotpo does *not* pass customer object directly. We'll fetch customer info manually using the reviewer’s email.

***

**3. Get Customer from Email**

* Add a **Get Customer Data** step
* Use the following settings:
  * Query:

    ```graphql
    id: {{reviewerEmail}}
    ```
  * Max results: `1`
  * Sort by: `ID (ascending)`

***

**4. Flatten and Loop Over Result**

* Add a **For Each** loop over the customer array
* Inside the loop, use **Dollarback: Deposit Store Credit**
  * Customer ID: from the loop variable
  * Amount: ₹100
  * Expiry: 30 days

***

#### 🎉 That’s It!

Now, every time a customer leaves a review via Yotpo, they’ll automatically receive ₹100 in store credit via Dollarback.

***

#### ❓ Need Help?

Reach out via the chat support inside the Dollarback app. We’re happy to assist if you run into setup issues or flow errors.
