# Hoe integreer je Discourse Gamification met een extern systeem (punten inwisselen en toekennen)

**URL:** https://meta.discourse.org/t/how-to-integrate-discourse-gamification-with-an-external-system-redeem-and-award-points/262968
**Category:** Integrations
**Tags:** gamification
**Created:** [26 april 2023 om 17:07 UTC](https://meta.discourse.org/t/how-to-integrate-discourse-gamification-with-an-external-system-redeem-and-award-points/262968 "2023-04-26T17:07:13Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [24 mei 2023 om 15:21 UTC](https://meta.discourse.org/t/how-to-integrate-discourse-gamification-with-an-external-system-redeem-and-award-points/262968/14 "2023-05-24T15:21:43Z")

</div>

> [@colin.mckibben](#):
>
> How does redeeming points work? I see there is an update event that could be used to subtract points from individual events, but that seems like an inefficient way to redeem points.

It may be my decade of experience working at banks, but the way I envision redeeming points is issuing negative value custom events.

For example, let’s say you have a user who wants to redeem points for a T-Shirt, and that T-Shirt costs 10k points. The flow on your redeeming system would be:

1. Check if the user has enough points:

2. Issue a “point withdraw” event

You will want to wrap this in a semaphore of some sorts, as this is the text book example of using those, but that is the gist of the proposed workflow.

This is a very recent feature, so let me know if the proposed workflow doesn’t work correctly.

> [@colin.mckibben](#):
>
> Also, when attempting to list events in my discourse instance, I get a 404.
> 
> GET [https://developer.sailpoint.com/discuss/admin/plugins/gamification/score\_events.json](https://developer.sailpoint.com/discuss/admin/plugins/gamification/score_events.json)

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/6/7/d67bb9585b2b6130813d9c96c68f9e554154fad1.png)

It’s working fine for me, both in the browser and via API. It’s an admin endpoint, so you need to be a logged in admin via browser, or pass API keys like explained in the OP.

---

_[View the full topic](https://meta.discourse.org/t/how-to-integrate-discourse-gamification-with-an-external-system-redeem-and-award-points/262968)._
