Prerequisites
Before starting the back in stock configuration for Centra, ensure the following:- Customer Engagement configuration: The integration must first be configured on the Voyado side before testing can begin. Contact your Voyado account manager or project team to ensure your Customer Engagement environment is correctly set up.
- Product Feeds: Product feeds must be connected to Customer Engagement for each locale (Ex: sv-SE).
- Event System in Centra: The event system must be enabled in Centra. Contact your Centra Customer Success Manager for validation.
- Back in Stock email module: A “Back in Stock” module must be added to your Customer Engagement email templates.
- API Credentials: API credentials must be set up in Centra and Customer Engagement.
- Subscription form in front-end: A back-in-stock subscription form must be available on the product page and connected to Customer Engagement’s Subscription API.
- Marketing automation: A back-in-stock marketing automation flow must be set up in Customer Engagement.
Configuring API token in Centra
Follow these steps:Log in to Centra
Navigate to System > API Tokens
Create a new Integration
Enable all Store types
Enable all Stores you wish to integrate with Customer Engagement
Enable the following permissions
- Event
- Allocation rule
- Event
- Market
- Product
- Product Size
- Product Variant
- Stock Change
- Store
- Warehouse
- Orders
- Returns
Save the API token securely
Share the API token securely with your Voyado team
Using multiple brands
This is important for the following reason: When the same token and integration name are reused across multiple brands, Centra will mark processed events (such as stock changes) as “Processed” for all integrations sharing that configuration. As a result, when Brand X processes its stock events, Brand Y will no longer receive the same event data in its subsequent stock-level queries. This leads to missing updates and prevents the back-in-stock automation from triggering correctly for Brand Y. Best practice tp prevent this is therefore:- Create one token per brand
- Assign each token a distinct Integration name (such as “Voyado_Integration_BrandX”, “Voyado_Integration_BrandY”)
- Ensure each token is only shared with its corresponding Customer Engagement tenant
Subscription API for Centra
The subscription flow is not supported “out of the box” and requires front-end development. These are the steps in building a subscription flow:Build subscription form
Register the subscriptions
Check locales
JSON example - Body
JSON example - Body
JSON Example - Output to Customer Engagement
JSON Example - Output to Customer Engagement
JSON Example - Subscription
JSON Example - Subscription
Store field format
Thestore field used above must be a unique string based on your client’s setup.
When you have a single Customer Engagement environment for all stores just use the tenantId value as the store field. For example: “mytenant”.
When you have multiple Customer Engagement stores (one per Centra store) combine the tenantId and CentraStoreID to a single string. For example “mytenant-124”.
Doing this ensures each connection is uniquely identified in Customer Engagement.
Stock changes
Customer Engagement receives the current Free to Allocate (FTA) quantity for a product at the time of the stock change event. It does not calculate or use the delta (the change in quantity). This means the quantity value in the payload always reflects the latest available stock level, and not how much it has changed since the last update.Workflow
Here is the entire workflow as an image:
The back-in-stock workflow
Testing the Integration
Here are some ways to test the integration.Simulate subscriptions
Simulate subscriptions
- Subscribe to a back-in-stock notification for a test product.
- Validate that the subscription has been registered on the user in Customer Engagement.
Simulate stock changes and test notification emails
Simulate stock changes and test notification emails
- Update stock levels in Centra for a test product SKU.
- Validate that the automation has been triggered and a notification email is sent upon stock update.
Review integration logs
Review integration logs
- Check Customer Engagement Administration > Integration log to confirm stock changes and email triggers are processed correctly.