Voucherify

Voucherify functions as a low-code Promotion Engine designed to execute high-impact promotions. It is fully capable of integration with Bloomreach Engagement. This guide explains how to set up the integration with Voucherify and provides two example use cases showing how you can use Voucherify to your advantage.

How the Integration Works

The integration of Voucherify with Bloomreach Engagement allows for the flow of data from Voucherify to Bloomreach. Customer-related events from Voucherify are sent to Bloomreach Engagement and are associated with customers. These events can be used to update the customer’s parameters with additional information from Voucherify. It can also trigger event-based messaging.

Moreover, this integration enables you to update customer data in the Voucherify database for more personalized promotions. It also lets you initiate specific promotions from Bloomreach scenarios in real time.

Setup in a Nutshell

1. Authenticate the Webhook

In Bloomreach Engagement, set up the webhook authentication for Voucherify to ensure a secure data transfer in the webhook request. This webhook authentication will come into play when you create a scenario in a subsequent step.

To configure the webhook authentication:

  1. In Bloomreach Engagement, go to Data & Assets > Integrations.
  2. Click on +Add new integration. Search for HTTP Authentication Schemas > Add integration.
  1. In the Endpoint field, enter the Voucherify API base URL. The base URL differs based on your area.
  1. Name integration ‘VoucherifyAuthenticationGeneral’ and click on Custom headers.
  1. Go to Voucherify, click on Your Project Name > Project Settings. Scroll down to Application Keys and copy the Application ID and Secret Key.
  1. In Bloomreach Engagement, set the first key to X-App-Id and paste the Application ID value.
  2. Click on + Add header. Set the second key to X-App-Token and paste the Secret Key value.
  3. Click on Test integration. If the authentication is successful, click on Save integration.

2. Generate Bloomreach API Keys

The inbound integration moves data from Voucherify to Bloomreach Engagement. Bloomreach Engagement associates these events with customers. This association uses new Voucherify information to update customer parameters. It also initiates event-based messaging. Lastly, it improves Bloomreach's segmentation options.

To use Voucherify with Bloomreach Engagement you first need to generate API Keys.

  1. In Bloomreach Engagement, click on Settings > Project Settings.
  1. Go to PROJECT > Access management > API.
  2. Save your Project Token and API Base URL.
  1. Create a new API group under API groups > + New group > Private access. Set the name which will help you distinguish this permission set (eg. Voucherify), and click on Create group.
  1. Save your API Secret Key. You will not be able to see it again.
  2. Save the API Key ID from the newly created group - usually named Default
  3. Scroll down to Group Permissions > Events. Assign permission for events that you want to process through the API.
  1. Optional: If you don’t have defined events or you want to allow processing of all new events sent by Voucherify, check the New Events checkbox in the Set column
  2. Do not forget to Save Changes.

3. Configure Bloomreach Engagement in Voucherify

To activate the integration between Bloomreach and Voucherify, provide specific details in Voucherify's integration section. Follow these steps to set up the integration:

  1. In Voucherify, click on your Profile > Integrations.
  1. Scroll down to Bloomreach Engagement and click on Connect.
  2. In the basic menu view, the following items are displayed:
  • Bloomreach Engagement Main Hard ID – Bloomreach Engagement customers use various IDs to identify customers. Select which Customer's Hard ID will serve as the source_id in Voucherify
  • Send events – This instructs Voucherify to send Voucherify events tied to customers to Bloomreach Engagement. If activated, provide Bloomreach Engagement API keys below
  • Sync Voucherify Customer's ID – If enabled, the Voucherify Customer’s ID will be stored in Bloomreach Engagement as a Hard or Soft ID

The Bloomreach Engagement full menu view includes the following fields:

  • Bloomreach Hard/Soft ID for storing Voucherify Customer's ID – Access to this setting is available only when 'Sync Voucherify Customer's ID' is enabled. It defines the Hard or Soft ID that stores the Voucherify customer ID.
  • Bloomreach Engagement API keys – If 'Send events' or 'Sync Voucherify Customer's ID' is enabled, you must fill in these fields. Use the Project Token, API base URL, API Key ID, and API Key Secret you created in the previous step in Bloomreach API.

Once the configuration is done, Bloomreach Engagement will receive all customer-related events from Voucherify.

4. Configure Webhook Authentication

Once configured, the webhook authentication allows the transfer of data from Bloomreach to Voucherify. To configure the Bloomreach Engagement webhook authentication:

  1. Repeat steps 1-3 from the ‘Authenticate the Webhook’ section.
  2. Name integration ‘VoucherifyAuthenticationBloomreachEngagement’ and click on Custom headers.

🚧

WARNING:

The endpoint URLs are different than in the ‘Authenticate the Webhook’ section.

  1. In Voucherify, go to Your project > Project Settings > General. Scroll down to Integration Keys and click on +.
  1. Choose a Name and select the Role.
  2. Choose Bloomreach Engagement from the Integration drop-down list.

🚧

Be Careful!

The Bloomreach Engagement integration is different than Bloomreach.

  1. Click on Create Integration API Key.
  2. In Bloomreach Engagement, set the first key to application-id and paste the Application ID value.
  3. Set the second key to secret-key and paste the Secret Key value.
  4. Click on Test integration. If the authentication is successful, click on Save integration.

Use Cases

Assign New Voucher

📘

NOTE:

This preset uses the https://api.voucherify.io/v1/publications endpoint.

The Voucherify API boosts marketing campaigns managed in Bloomreach Scenarios. It allows to send unique coupon codes, customer loyalty points, recent discounts, and more to each customer.

In this scenario, the abandoned cart email includes a Voucherify discount code. This coupon motivates the customer to complete the purchase by providing an extra perk. The scenario contains three parts:

  • An On event trigger that will start the process
  • A Voucherify - Assign new Voucher preset retrieves a unique customer coupon code from Voucherify
  • An email action that sends a message with the allocated voucher code to the customer

Voucherify - Assign new Voucher preset requires the following configuration:

  1. In Bloomreach Engagement go to your Scenario.
  2. On the left-hand side go to Actions > Other > Voucherify - Assign new Voucher.
  3. Double-click on the Webhook (or click on the Edit button) and go to Settings.
  4. Choose VoucherifyAuthenticationGeneral in Authentication and select your consent category.
  1. Go to Voucherify > Campaigns and select the Campaign you want to use. Copy the Campaign ID.
  1. Go to Parameters and paste your Campaign ID.

When the preset becomes operational, you can use the returned values in marketing automation. The returned values can be implemented using Jinja tags, as seen here:

{{ webhook['voucher.code'] }}

Update Customer Records

You can use the Voucherify - Update Customer Records preset to modify customer properties or add new customers.

Here's an example: If a new customer registers (triggering the 'registration' event), we also want to add that customer to Voucherify. This scenario includes two components:

  • An On event trigger that will start the process
  • A Voucherify - Update Customer Records preset that will communicate with Voucherify to transfer the customer data

Voucherify - Update Customer Records preset requires the following configuration:

  1. In Bloomreach Engagement go to your Scenario.
  2. On the left-hand side go to Actions > Other > Voucherify - Update Customer Records.
  3. Double-click on the Webhook (or click on the Edit button) and go to Settings.
  4. Choose VoucherifyAuthenticationBloomreachEngagement in Authentication and select your consent category.
  1. Go to Parameters and enter your campaign Hard ID.

📘

NOTE:

By default, the "registered" key in the Editor tab is Bloomreach's main hard ID. This ID needs to match the Main Hard ID set in Voucherify's Bloomreach Engagement configuration.

  1. Go to Editor > Batch Webhook > 'Turn on and reset template'.
  1. Paste this code into the root part:
[  
	{{ customers | join(",") }}  
]

Send Events

Use the Voucherify - Send Events preset to create and send events to Voucherify.

For example, when a voucher gets assigned to a customer (which triggers the 'voucher_assigned' event), we also want to send this event to Voucherify. This scenario includes two components:

  • An On event trigger that will start the process
  • A Voucherify - Send Events preset that will communicate with Voucherify to transfer the event data

Voucherify - Send Events preset requires the following configuration:

  1. In Bloomreach Engagement go to your Scenario.
  2. On the left-hand side go to Actions > Other > Voucherify - Send Events.
  3. Double-click on the Webhook (or click on the Edit button) and go to Settings.
  4. Choose VoucherifyAuthenticationBloomreachEngagement in Authentication and select your consent category.
  1. Go to Parameters and enter your campaign Hard ID.

📘

NOTE:

By default, the "registered" key in the Editor tab is Bloomreach's main hard ID. This ID needs to match the Main Hard ID set in the Voucherify's Bloomreach Engagement configuration.

  1. Go to Editor > Batch Webhook > 'Turn on and reset template'.
  1. Paste this code into the root part:
[  
	{{ customers | join(",") }}  
]