Points Updates
Real-time Point Update Notifications
Open Loyalty Requirements
Braze Requirements
Setting up the integration
3
Configure the Data Transformation
let brazecall = {
"events": [
{
// Map the Open Loyalty loyaltyCardNumber to the Braze External ID
"external_id": payload.data.customer.loyaltyCardNumber,
"name": "Loyalty points changed",
"time": new Date().toISOString(),
"properties": {
// The amount added or subtracted
"points_amount": payload.data.amountChange,
// The new total balance
"current_balance": payload.data.amount,
// The type of change (e.g., "add" or "spend")
"operation": payload.data.amountChangeType
}
}
]
};
return brazecall;4
Trigger the Email Campaign
<p>Hello! We have an update on your loyalty points:</p>
{% if event_properties.${operation} == "add" %}
<p>You have earned {{event_properties.${points_amount}}} points.</p>
{% elsif event_properties.${operation} == "spend" %}
<p>You have spent {{event_properties.${points_amount}}} points.</p>
{% endif %}
<p>Your new balance is {{event_properties.${current_balance}}}.</p>
<p>Have a great day!</p>Last updated
Was this helpful?

