Goals and Outcomes
Emarsys enables personalized, one-to-one customer engagement across multiple marketing channels. By integrating Yotpo Loyalty & Referrals with Emarsys, you can automatically sync program-related data, such as loyalty attributes and referral events, to your Emarsys account.
This integration allows you to:
Send loyalty and referral emails directly through Emarsys
Align customer messaging with loyalty status and activity
Manage all customer engagement flows in one platform
Before You Begin
To ensure proper communication between Yotpo and Emarsys, you need to update your API permissions in Emarsys:
In Emarsys, go to Management > Security Settings > API Users.
Click the Edit icon next to the relevant API user.
Enable the required API endpoints:
List of endpoints
Field
field.get
field.create
Event
externalevent.create
externalevent.get
externalevent.list
externalevent.triggercontact.update
Contact
contact.create
contact.getdata
contact.update
contact.create
contact.getdata
Customer
customer.settings
Enable the Integration in Emarsys
To enable the integration, sign in to the Emarsys Help Portal and request to enable the Yotpo Referrals integration within your Emarsys account.
Once the integration is enabled in your account:
Log in to Emarsys as the Account Owner.
Click Admin > Security Settings.
Create your API Username and API Secret Key choosing the WSSE authentication option (not OIDC).
Make sure to copy and store these credentials securely as they cannot be retrieved later.
Note
Only the Emarsys Account Owner can create API credentials.
Connect Emarsys to Yotpo Loyalty & Referrals
Once you've enabled Yotpo Loyalty & Referrals in your Emarsys account and generated your API credentials, you'll need to connect Emarsys to your Yotpo Loyalty & Referrals account:
From your Yotpo Loyalty admin, go to Integrations Center.
Search for the Emarsys tile and click to connect it.

Enter your Emarsys API credentials in the corresponding fields.

Click Connect.
Note
Once connected, loyalty and referral events and attributes will begin syncing automatically.
Loyalty & Referrals Events in Emarsys
You can view externally mapped Yotpo Loyalty & Referrals events in your Emarsys admin under External Events.
Loyalty and Referrals External Events
swell/points/earned
swell/redemption/created
swell/points/reminder
swell/redemption/reminder
swell/customer/birthday
swell/referral/share
swell/referral/completed
swell/tier/earned
swell/tier/lost
swell/purchase/payout/scheduled
swell/redemption/payout/scheduled
swell/purchase/payout/received
swell/purchase/payout/unclaimed
swell/redemption/payout/received
swell/referral/share/reminder
swell/referral_discount_code/updated
swell/birthday/captured
swell/redemption_code/below_threshold
swell/widgets/customer/authentication
loyalty/opt_in
loyalty/opt_out
loyalty/donation/created
loyalty/custom/reward/created
swell/points/changed
loyalty/anniversary/captured
swell/account/created
swell/newsletter/signup
loyalty/customer/anniversary
swell/referral_code/activated
Creating Event-Based Automation Flows
Event-based flows can be created through the Emarsys Automation Center:
Click Campaigns > Automation Center.
Create a new program from scratch by clicking Create Blank Program, or use an existing template by clicking Create Program From Blueprint and selecting the most relevant category.
You can also edit an existing program by clicking Edit next to the relevant program.
Add external events to your program using the External Event element in the Entry Points menu.
Click External Event, click the External Event box, and then select the desired Yotpo event from the Node Settings menu.

Add any other conditions or triggers you'd like.
We recommend sending a test email to make sure your flow performs as intended.
Adding Customer Attributes in Email Templates
To include Yotpo Referrals customer attributes in Emarsys templates:
In Emarsys, go to Campaigns > Triggered Email.
Create a new mail stream or edit an existing one.
Choose Block-Based Email or Custom HTML Email.

In your template, insert personalization variables where needed.
Add event-related attributes in double brackets, e.g. {{event.swell_perk_reward_points}}, in line with Emarsys scripting language.
Add customer attributes as {{contact.value of points balance param}}.
For example: {{ contact.100009777 }}, where100009777 directly corresponds with the Yotpo referrals points balance parameter defined in Emarsys.Note
Attributes must follow Emarsys Scripting Language (ESL). Do not use {{contact.swell_point_balance}} formatting.