Introduction
Capillary Intelligent Loyalty platform delivers a comprehensive approach to customer loyalty solutions. The platform provides complete online, in-store, and social media-based loyalty to engage customers and positions your brand for efficient customer engagement.
MoEngage <> Capillary
The MoEngage and Capillary integration enables you to send dynamic coupon codes and customer loyalty data such as points, loyalty levels, and programs inside of MoEngage campaigns.
Integration
library_add_check |
Prerequisites
|
Display customer rewards in MoEngage Campaigns
Using MoEngage's Content APIs, you can dynamically pull customers' reward points inside MoEngage campaigns for a more personalized experience.
Step 1: Set up a MoEngage Content API
- Navigate to Settings > Advanced settings > Content API. Click + Add content API at the top right corner of the Content API screen.
- Add your Capillary API to the endpoint URL. Depending on your use case, the endpoint will change.
To display your customers' rewards, use Capillary's Get Loyalty Details API.
While setting up your content API, insert the following URL:
https://{host}/v2/customers/{{UserAttribute['capillary_id']}}/loyaltyDetails
Your host will depend on the server to which the API calls are made, usually the cluster URL.
Under Headers, add the following:
-
-
Authorization
: Use an online tool to create your basic auth withusername
as a username and your MD5 hash of yourpassword
as a password:
In the above example, the value of this header would beBasic dXNlcm5hbWU6Y0dGemMzZHZjbVE9
-
Content-Type
:application/json
-
Accept
:application/json
-
- Click on "Save" and then "Done" once you see a successful response.
- Note - You can also test your APIs. To test your APIs, from the Content API's action menu, click on "Test". You can your API response and validate it.
Step 2: Display your customers' loyalty points inside MoEngage campaigns
To use this API in your MoEngage campaigns,
- On step 2 on your campaign creation, enter @.
- In the pop up, you can select the Capillary Content API configured in Step 1.
- You can use MoEngage Templating Language to parse through the API response and use the content in your campaigns.
- You can click on the Preview tab to view your campaign in real-time personalization:
- Once you are ready, click on Publish to send the campaign.