Bloomreach CMS Integration
This integration guide covers Bloomreach Content, which is a Content Management System (CMS) of the Bloomreach platform. Thanks to the integration, you can connect Voucherify resources and Bloomreach documents for easier CMS management related to the promotion offers, like coupons, cart-level promotion, etc. The connection can be created and managed from the Bloomreach document by selecting available Voucherify resources.
Once the connection is set up in Bloomreach, it is also visible in Voucherify. The information about the related Bloomreach document ID(s) is stored in Voucherify’s resource metadata.
A single Bloomreach document can be linked with multiple Voucherify resources and vice versa — a single Voucherify resource can be linked with multiple Bloomreach documents.
Currently supported resources are:
- Campaigns:
- Promotion tiers,
- Earning rules (within a loyalty program).
The integration with Bloomreach CMS uses API limits for downloading campaigns.
Contents
Integration configuration
Voucherify
To connect Bloomreach with Voucherify, you need to generate new integration keys.
- Go to Project Settings and in the General tab, scroll down to Integration Keys.
- Click the plus button on the right.
- Fill in the Name for your key.
- Choose your role from the Role drop-down list.
- Choose Bloomreach from the Integration drop-down list.
- Click Create Integration API Key button.
You can also use the User role in the integration keys configuration (as it has Bloomreach permission selected by default). However, we recommend creating a new custom role only for integration purposes.
Once the Bloomreach integration key is generated, it can be found in the Integration Keys section:
Bloomreach
To connect Bloomreach and Voucherify, you need to define a new custom integration in Bloomreach. Select from the left menu Setup, then Integrations, and Add a new Custom integration.
In the Custom integration configuration:
- Fill in the Name field.
- Fill in the Application URL field to proper address, e.g.:
https://eu1.cms-integrations.voucherify.io/frontend/bloomreach/<br>
The address above is for the EU cluster. It can be different for shared or dedicated clusters. If you are not sure what your Voucherify cluster is, contact our Support Team.
- Set Configuration to stringified JSON with your Voucherify integration credentials (the ones generated in the step above) and desired resource types as follows:
{"appId":"YOUR_APPLICATION_ID","appToken":"YOUR_SECRET_KEY", "resourceTypes":["campaigns","earningRules", "promotionTiers"]}<br>
- Set Height(px) to a proper value. We recommend 50-60 px per resource type, so if you want to use all three available resource types (campaigns, earning rules, promotion tiers), you can set it to 180 px.
- Set CSP property to frame-src and *.
Once the Voucherfy integration is set up, you can define the content type.
Select from the left menu Content, then choose Content types from the dropdown in the left column and select a New document type in the brxsaas folder.
Then, fill in the Name and choose the required layout and build the desired layout. To include Voucherify integration, choose the Field extension option from Primitive Field list and use the Voucherify custom integration created in the previous steps in the Integration field.
A correctly configured content type with document inspection can look like on the screen below:
To allow your new content type, you need to add it to the document allowed content.
In the Content section, choose Documents, then select the Edit allowed content from the folder options list. In the next window, select the content type created in the previous step.
Once it is done, you can now create a new document as shown:
Use guide
A document in the document inspection may look like on the screen below:
To get details about connected data, click the Connected <Resource type> button to see the connected data details, e.g., as follows:
This window shows up to 10 elements per page. In the bottom right corner, you can see the total number of elements and you can change the page. You can also search resources by name with the search button in the top right corner.
Once the Bloomreach document is connected with a Voucherify resource, it is also visible in Voucherify in the object Metadata tab:
Adding a connection
To add a connection:
- Go to document Edit mode in Bloomreach and click Manage Connected <Resource type>.
- In the new modal, click + Add <Resource type>.
- Find a resource that you want to connect and click Add.
- Click the Yes button to confirm your action in the new window.
Removing a connection
Deleting a connection is very similar to adding a new one.
- Go to document Edit mode in Bloomreach and click Manage Connected <Resource type>.
- In the new modal, find the resource whose connection you want to remove and click Delete.
- Click the Yes button to confirm your action in the new window.
If you delete a Bloomreach document that is connected to a Voucherify resource, that connection will not be deleted in Voucherify and vice versa — if a resource in Voucherify is deleted, the connection to the Bloomreach document will not be removed.