# Rewards

DotApparel can integrate with the Rewards module in ERP, enabling merchants to offer an enhanced shopping experience for their customers. With this integration, customers can easily earn and track loyalty points, view their rewards status, and even make purchases online while earning points towards their rewards.

### **How it works**

DotApparel retrieves rewards account details for a given customer by providing their email address.

If a customer does not already have a rewards account in ERP, the endpoint can automatically create a new account and proceed with it. However, this functionality must be enabled in the app's settings.

<figure><img src="/files/aNFWzbe7mO1kPMGFMp8f" alt="" width="563"><figcaption></figcaption></figure>

### **Types of Rewards Data and how they sync**

* **Customer tier status:** DotApparel retrieves the "status" from ERP. DotApparel doesn't calculate the spending, or control the tier rules as that's all handled by ERP.
* **New customers:** DotApparel creates a person record for new accounts signed up online.
* **Existing customers:** DotApparel attaches online order history to an existing person record.
* **Rewards communications:** This is not handled by DotApparel. All should be handled between ERP and the Email Marketing platform.
* **Date for customer rewards account creation:** DotApparel only tracks the date for new customers. If an existing customer signs up for rewards at a later stage, DotApparel does not keep track of the date of the account's creation.

### **FAQ for Rewards**

**Is it possible to tag a reward profile to allow for rewards-specific marketing whilst the marketing status for all other marketing emails is `false`?**

DotApparel does not handle marketing emails, but it does apply tier tags to customers to enable the email marketing platform to trigger transactional flows. Merchants need to configure the flow and request the email marketing platform to make reward-specific emails "transactional" so that the subscribe status of customers is ignored.

### Rewards product SKU and discount application title <a href="#rewards-product-sku-and-discount-application-title" id="rewards-product-sku-and-discount-application-title"></a>

It may be necessary for the front-end to locate Shopify rewards products by their SKU number. These products will require discounts to be applied to line items using Shopify Script, and it's important to ensure that both the rewards product SKU and discount application title are consistent with DotApparel.

While both the SKU and title can be customized in DotApparel settings, we suggest using the following conventions:

* Rewards product SKU: `LOYALTY_REWARD`
* Discount application title: `Reward Redemption`

{% hint style="info" %}
The Reward product SKU will simply exist in your Shopify product catalogue but will not be active or purchasable on the front-end.
{% endhint %}


---

# 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://docs.dotapparel.com.au/core/rewards.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.
