# Reward TrustShop reviews Using Dollarback

If you're using **Dollarback: Cashback & Loyalty** alongside **TrustShop: Product Reviews**, you can seamlessly reward customers with store credit when they leave a review—automatically. This guide will walk you through integrating both apps using **Shopify Flow**.

{% embed url="<https://www.youtube.com/watch?v=Yd_-9JJJ8mI>" %}

***

**🛠️ Prerequisites**

Before setting up the flow:

* Ensure **both apps are installed**:
  * [Dollarback](https://apps.shopify.com/dollarback)
  * [TrustShop](https://apps.shopify.com/trustshop)
* Enable Shopify Flow Integration in both apps.

***

**🔌 Step 1: Enable Integrations**

**In Dollarback**

1. Go to the **Dollarback app** in your Shopify admin.
2. Navigate to `Settings > Integrations`.
3. Enable **Shopify Flow Integration**.

**In TrustShop**

1. Go to the **TrustShop** app.
2. Navigate to `Settings > Integrations`.
3. Under “Shopify Flow,” click **Integrate Now**.
   * Most stores will find this pre-enabled.

***

**🔁 Step 2: Create a Shopify Flow Automation**

1. Open **Shopify Flow** and create a new flow.
2. Set **trigger**:
   * **TrustShop: New Review Received**
3. Add **Action**:
   * Choose **Get Customer Data**
   * Sort by ID: Ascending
   * Limit results: 1
   * In “Query,” choose **Advanced** and type:

     ```
     id: {{ email }}
     ```
   * (This uses the email sent by TrustShop to identify the customer.)
4. Add a **For Loop**:
   * Input: Output of “Get Customer Data”
   * For each item:
     * Add **Action**: **Deposit Store Credit**
     * Configure:
       * Amount to credit (e.g., ₹50)
       * Expiry (e.g., 30 days from credit)

***

{% hint style="warning" %}
**⚠️ Note:**

TrustShop doesn’t send full customer objects, the workaround using email-based filtering (as shown above) ensures compatibility.
{% endhint %}

***

**✅ That's It!**

Your store is now set up to **automatically issue store credit** whenever a customer leaves a review through TrustShop.

If you face any issues or have questions, reach out to our support team through the Dollarback app dashboard.


---

# 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/store-credit-for-submitting-review/reward-trustshop-reviews-using-dollarback.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.
