Loyalty Points Reminders and Status Notifications
Inquiries regarding loyalty points status are one of the most frequently asked questions. By sending notifications and reminders, you're keeping your customers satisfied and up-to-date with their loyalty points status and also giving them the opportunity to use their earned benefits.
In order to start communicating with your customers over WhatsApp, you must receive and store their opt-ins.
Process Workflow
Implementation Steps
The loyalty_points
notification is already approved by WhatsApp, as shown in the table below. Bear in mind that this specific template can be reused for different passengers adapting placeholders with other values.
NOTE
For template registration, you need to provide template name, notification content and language info, after which Infobip sends the template to WhatsApp for approval. Once registered on WhatsApp platform, templates for your account get unique template namespace.
Template name |
Content |
Language |
Approved |
---|---|---|---|
loyalty_points |
Hi {{1}}, thank you for shopping with us! With this purchase, you have earned {{2}} reward points. Your current loyalty program balance is now {{3}} points and you can use them by {{4}}. |
en |
✅ |
Login to dev.infobip.com and copy your BASE URL:
- e.g. Your personal base URL is: https://{{BASE_URL}}.api.infobip.com/
NOTE
The personal BASE URL is a simple way to identify who sent out the API request. This means we can identify the request through DNS and then find the optimal route for API requests.
Send approved Message Template following the steps below:
- Choose POST method
- Replace endpoint with https://{{BASE_URL}}.api.infobip.com/omni/1/advanced
- Add Authorization header, e.g. Basic: Base64 encoded username and password (more about Authorization methods on our API developer hub)
- Copy previously created
scenarioKey
In case you have not created your scenario yet, check Creating scenario.
- Specify the destination
phoneNumber
you wish to send the notification to -
Replace
templateName
,,templateData
andlanguage
fields with registered ones (refer to table above). FieldtemplateData
contains real data for placeholders in the registered template.
"scenarioKey":"CC9F01A5DC7BEE2C2B829D203482A654",
"destinations":[
{
"to":{
"phoneNumber":"41793026727"
}
}
],
"whatsApp":{
"templateName":"loyalty_points",
"templateData":["Tom","23", "179", "8-03-2020"
],
"language":"en"
}
}
NOTE
Template name, template data, and language are mandatory in order to successfully send the notification. Template data should contain the same number of elements as placeholders in the registered template. In case the template doesn’t contain any placeholders, templateData field should be an empty array “[ ]”.