This recipe explains the concept of an external rule, how to configure it with Snag and how to issue rewards to your users.
POST /api/loyalty/rules/{id}/complete
endpoint can be hit.
This tells Snag that a given rule was completed by the given user(s) and issues the associated reward.
You can get more details on how to complete a rule in the Submit and verify loyalty rule completion recipe.
The id returned in the response will be used to complete the rule when a user performs the required action.
POST /api/loyalty/rules/{id}/complete
endpoint. This endpoint informs Snag that the rule has been satisfied for a specific user and triggers the reward.
You can get more details on how to complete a rule in the Submit and verify loyalty rule completion recipe.
Once the request is processed, Snag will issue the reward to the user based on the rule’s configuration.