# Coupons and Redeeming Rewards

This is to demonstrate how our **Coupon Service** and **Reward Point Management Service** can be used.

### Coupons

Coupons can be managed within the Management Dashboard, two different types are supported: percentage and absolute.

<figure><img src="https://3057647601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTY7EwZtYYQYC6GOcdTj%2Fuploads%2Fgit-blob-a51eb4369d7f245723410018cf8d225b3d8a2782%2Fcoupon.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To learn about details how to create coupons, see the [Coupon](https://developer.emporix.io/ce/management-dashboard/customer-management/coupons) user guides.
{% endhint %}

1. Login as a customer and add products to the cart.
2. Go to the checkout and add a coupon to the cart.

<figure><img src="https://3057647601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTY7EwZtYYQYC6GOcdTj%2Fuploads%2Fgit-blob-ef87f7b880a7dba65b1e6abb55ac43cac9f5d4a4%2Fcoupon2.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Choose **Apply**, the discount is calculated based on the Subtotal without VAT.

{% hint style="warning" %}
If you delete the coupon, the discount percentage is added again to the cart value. Vat is calculated based on “Subtotal without VAT” - “Discount Amount” = Base value for VAT.
{% endhint %}

4. Go through the normal check out and submit the order. The discount is also displayed within the **My Orders** overview page.

### Reward Points

Reward points can be exchanged for coupons by customers within the B2B Showcase. To have that functionality available it is necessary to create rewards points first using the [Reward Points](https://github.com/emporix/emporix-documentation-portal/blob/master/content/user-guides/b2b-showcase/business-scenarios/ce-use-cases/broken-reference/README.md) endpoint.

In case a customer already had points, use Adding [reward points for a customer endpoint](https://github.com/emporix/emporix-documentation-portal/blob/master/content/user-guides/b2b-showcase/business-scenarios/ce-use-cases/broken-reference/README.md) to add additional points to a customer.

Points can be exchanged to coupons, which then can be used for future purchases. Redemption options are not limited and can be configured by your employees

To use it within the B2B Showcase follow the steps:

1. Login and add a product to the cart.
2. Go to the checkout and click on **Get coupons for points**.

<figure><img src="https://3057647601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTY7EwZtYYQYC6GOcdTj%2Fuploads%2Fgit-blob-c428958b17de74e27681b2dfde6ff2f8ba5171fb%2Frp.png?alt=media" alt=""><figcaption></figcaption></figure>

3. The redeem options are displayed which were configured beforehand. Select one redeem coupon and click on **Redeem selected**.

<figure><img src="https://3057647601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTY7EwZtYYQYC6GOcdTj%2Fuploads%2Fgit-blob-65c199d3b46fed0df953881a5a4eab3f1bc8da74%2Frp2.png?alt=media" alt=""><figcaption></figcaption></figure>

**Result**: The discount should appear in green and the points are counted down.

<figure><img src="https://3057647601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbTY7EwZtYYQYC6GOcdTj%2Fuploads%2Fgit-blob-a87817257717d911b83b170a7288c4ba7ea399be%2Fdiscount.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Proceed with the checkout and submit the order.

{% hint style="info" %}
To learn more about API used in this use case see the [Rewards and Promotions Services](https://app.gitbook.com/s/d4POTWomuSS7d3dnh4Dg/api-guides/rewards-and-promotions) and for user guides check the [Coupons](https://developer.emporix.io/ce/core-commerce/coupons) and [Reward Points](https://developer.emporix.io/ce/core-commerce/reward-points-management) documentation.
{% endhint %}
