Skip to main content

Emarsys

info

The Emarsys integration allows Karla to provide your Emarsys account with triggers of any sort, like shipment notifications or claims.

Steps

1. Open Emarsys & navigate to Administration

Navigate to your Emarsys instance and click on Management and Security Settings.

Emarsys 1

2. Access API Credentials

In Security Settings, select API Credentials to create new API access.

Emarsys 2

3. Generate API Credentials

Click on Create API Credentials and select OpenID Connect.

Create new API credentials and configure the necessary permissions.

Emarsys 3

Core

Permissions that enable the core notify functionality:

  • Contact Management: create and update contact profiles
  • Event Tracking: send custom events to your Emarsys account
  • Email Campaigns: trigger automated email campaigns

These permissions are mandatory to have the minimum notification functionality working:

  • contact.create: will create contact emails if not existing in the system
  • contact.get
  • contact.getdata
  • contact.list
  • contact.lookup
  • externalevent.create: will create karla_* custom events
  • externalevent.delete
  • externalevent.get
  • externalevent.list
  • externalevent.trigger
  • externalevent.update
  • externalevent.usages
  • field.get
  • field.list
  • field.multichoice.list
  • field.singlechoice.get
  • field.singlechoice.lang.list
  • field.singlechoice.trans.list

Campaigns

Optional, only required to enable the following functionality:

  • Segments: access segment data for targeted campaigns
  • Contact Lists: access list of contacts for targeted campaigns

Enable the following in the permissions section for the API credential:

  • contactlist.contact.count
  • contactlist.contact.get
  • contactlist.contact.ids
  • contactlist.contact.list
  • contactlist.contact.lookup
  • contactlist.contact.lookup.batch
  • contactlist.list
  • combinedsegment.get
  • combinedsegment.list
  • combinedsegment.test.get
  • combinedsegment.universal.get
  • combinedsegment.universal.list
  • segment.contact.count
  • segment.contact.list
  • segment.contact.lookup
  • segment.criteria.get
  • segment.get
  • segment.list

4. Set up the API Credentials

Copy both the Client ID and Client Secret from the generated credentials.

In our portal, navigate to Settings > Integrations, and select Emarsys.

Emarsys Portal 1

Paste the Client ID and Client Secret and click on Save.

Emarsys Portal 2

Once the key has been saved successfully, you can toggle the integration settings.

Emarsys Portal 3

Building Emarsys Programs

Our Emarsys integration will automatically create external event names prefixed with karla_. Emarsys 4.

From there, you can create automation programs relying on these events to configure your own email flows.

Emarsys 5

Pickup Reminder Program

Create an automated program that triggers pickup reminders for packages delivered to parcel shops or lockers that haven't been collected within a specified timeframe.

To include the tracking page link in your Emarsys transactional emails you should use dynamic content with order_number and zip_code variables, so that your customers always receive their personalised link:

For emails triggered through Emarsys:

Karla events

Karla hosted tracking page
https://app.gokarla.io/track/slug?orderNumber=$order_number$&zipCode=$zip_code$&ref=karla
Embedded tracking page
https://yourshop.com/pages/tracking?orderNumber=$order_number$&zipCode=$zip_code$&ref=karla

Shipping Confirmation

Triggered by external events from your shop system.

Karla hosted tracking page
https://app.gokarla.io/track/slug?orderNumber=$order_number$&zipCode=$shipping_zip$&ref=karla
Embedded tracking page
https://yourshop.com/pages/tracking?orderNumber=$order_number$&zipCode=$zip_code$&ref=karla
tip

A slug is your unique identifier that represents your shop within the Karla system. This is used to properly route tracking information and ensure that shipment data is associated with the correct merchant account.

Testing the programs

Once you've set up the programs and the respective emails it is important you make sure that the integration is working as expected.

In the Email Template Editor go to Preview & Test functionality.

There make sure that in the contact data you see the information from the profiles from your shop and not from Karla's test events. These should be infos like customer name, order number, shipping address etc.

warning

You will see this information only after you have integrated your shop and Emarsys with Karla. More on shop integrations

If you want to see how your customers will receive the emails, you can send a test email to your email address.

Putting the programs live

After you have tested your programs, you can put them live upon the agreed go-live date.

warning

Make sure you have configured the proper sending settings and have disabled any frequency caps for transactional emails, so that all of your customers receive their shipping updates.

Event Groups

Karla provides the following event groups to your Emarsys instance for building programs. These are business-friendly groupings that make it easier to create targeted campaigns without dealing with individual event names.

Event Groups vs Webhook Patterns

Event groups are specifically designed for Emarsys integration and are different from webhook ref patterns:

  • Event Groups: Business-friendly names, prefixed by karla_ (e.g., karla_shipment_delivered)
  • Webhook Refs: Technical identifiers (e.g., shipments/delivered/SUCCESSFULLY_DELIVERED)

For complete documentation of all events, ref patterns, and event groups, see: Events Reference

High Priority (Essential programs):

  1. karla_shipment_in_transit - Keep customers informed
  2. karla_shipment_out_for_delivery - Delivery readiness
  3. karla_shipment_delivered - Delivery confirmation