Hope you're doing well!
We can achieve this with the help of Zapier. It's a bit complicated process so I have recorded a video with step by step information. Here's the video-
Here's the step by step process. To begin with, we need to ensure that we have the following apps downloaded in our Tribe Community:-
To begin with, we need to create a Zap in the Zapier App. It will be a 3-way connection between 2 Apps.
1. Webhooks by Zapier
2. Filter by Zapier
3. Webhooks by Zapier
Step-1- Under Webhooks by Zapier, the trigger event that you will need to select is Catch Hook and hit continue.
Step-2- Copy Custom Webhook URL and add it under the URL section in the Webhook Trigger. The video covers how to set it up in detail and test the trigger. It will pull the information.
Step-3- Under Filter App, you need to set up a filter so that it only moves forward after a user hits a certain score. For example- If you would like the user to receive a reward once they hit 1000 reputation score, Filter needs to be set to greater than 999. Please follow the steps in the video to set the filter.
Step-4- You need to move to "Webhooks by Zapier" and select 'Post' as an event action.
Step-5- In the URL section, you need to add "https://your-community-url/api/v1/users/Actor55 ID/credit
--> Actor ID- It needs to be selected from 'Catch Hook' section.
Step-6- Payload Type can be JSON and then in data, the following information needs to be added-
Wrap Request In Array needs to be no.
Unflatten needs to be no as well.
Lastly, Headers needs to be added in the following format
Post that, you can simply enable it for the users.
If in case you run into any questions, please don't hesitate to reach out.