Overview
The new custom API action is the ultimate tool that allows you to bring your unique vision regarding your loyalty program to life.
It is especially beneficial for merchants who want to give points to a customer for doing X action on their website and have Lootly fully track that action.
For example: create a shopping wish list - earn X points; download our mobile shopping app - earn Y points; add a new product subscription - earn Z points, etc - the possibilities are endless.
This guide explains how to configure the new custom API action in Lootly.
Note: this action is only available in the Advanced plan.
Step 1: Create the earning action in Lootly
Go to Points -> Earning -> Add Action -> Custom API Action
Set how many points this action gives, the name of the action and any other limitations you’d like to set.
You’ll notice a grayed out text field at the top, which contains a unique ActionID. This is the number you place in the API call so Lootly knows which action the customer completed.
Enable the action and save your changes.
Step 2: Build the API call
Once the action is configured in Lootly, the next step is to build the call in your platform.
This is super important; please ensure you are comfortable building APIs or have a developer with this experience on your side ready to help.
To do this, refer to our API documentation
For the API call itself, you simply need to provide:
Email
ActionID
We also give you the option of stating a point value.
This is optional, in case you want to override the earning action setting and give a custom amount of points to a customer.
You’re all set!
As you call the API, Lootly will give the customer points and the action name will show up in all relevant areas in Lootly, such as the dashboard, earning activity, reporting and more.
FAQs:
Can I use the custom API action to give points for actions in platforms that Lootly is not directly integrated with? (like Trustpilot for example)
This depends on the platform. IF the platform where the action occurs allows you to build an API call in it, then you should be able to do this. If the platform doesn't allow this, then you won't be able to use the custom API action for the scenario. A direct integration will have to be build by Lootly.
Do customers have to do anything in the widget/rewards page in order to get the points from the custom API action?
No, the customer doesn't do anything within the widget/page to obtain the points from this action. The action itself is performed in a different environment, outside of Lootly's build-in options and fulfilled via an API call from your platform (the environment where the action is performed).
That’s it!
If you have any questions regarding the custom API action, please reach out to us in the chat.