# Revel Loyalty

### Web Hook

For the loyalty in Revel to work with Appfront, it is important to make sure that Revel has set up a Webhook for all transactions:

[https://beengo.me:8443/MediatorWebService/rest/receive/revel/loyalty\_orders/ ](<https://beengo.me:8443/MediatorWebService/rest/receive/revel/loyalty_orders/ &#xA;>)

This is the way Revel informs the Appfront servers that a transaction has been made.

### Loyalty

When creating a campaign in Appfront with a gift, upon saving, this same gift will be created in Revel in the following way:

In our example, the name of the gift (Coupon Title) is: **Gratuliere: 10 Besuche**

![The campaign configuration in Appfront](/files/-LaZ-fdpvWd31Rim1qGJ)

Once saving the campaign, in the revel backend you will be able to find the gift name under Products > Product Groups

![Products > Product Groups in Revel dashboard](/files/-LaZ0ijkM5bfemedniNy)

Going in to edit this product group will show all of the products attached to the campaign (that were added previously when creating the campaign in Appfront):

![Editing the product group will show the selected products in the product group](/files/-LaZ0zePaHcZnqVYboJF)

Please make sure all of the items that you would like to be available IN STORE while scanning are marked correctly in this product group in ALL locations.

#### This product group is connected to the final customer that receives the gift in the following way:

When the campaign is created for the first time, other than creating the product group in Revel, automatically the following connectors are created:

A discount that is connected to the product group above:

![Under discounts - find a discount with the same name as the gift created in Appfront (Coupon Title) ](/files/-LaZ1nRrRt-hPuJPAu5D)

Under CRM > Customer Groups, you will find the same name as a customer group

![](/files/-LaZ2A__QEloI8PW498A)

This customer group will have all of the customers who currently have this coupon in their account

When a gift is handed out in Appfront (manually or by a lifecycle trigger), the customer is added automatically to this customer group

When the customer redeems the gift, weather online or by scanning, the customer will be removed from this group (as long as his balance of this gift in his account on Appfront is 0)


---

# 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://appfront.gitbook.io/portal/loyalty-and-crm/revel-loyalty.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.
