The integration with Segment uses webhook limits for sending data from Segment to Voucherify.
Two-way configuration
With this connector, you can push data from a promotion engine to a Customer Data Platform (CDP) and the other way around and your business can leverage its customer attributes to create targeted promotions. For example, the promotions can be based on customers’ past purchases, browsing history, demographics, and actions, such as leaving a review. Segment’s event tracking and user identification capabilities can be effectively used to automatically trigger Voucherify campaigns, personalize incentives, and measure the effectiveness of campaigns in real-time. The integration between Segment.io and Voucherify is bidirectional: outbound and inbound. In other words, Voucherify can be configured as both the destination and source of customer data.Outbound integration between Segment and Voucherify
The outbound integration provides a continuous flow of customer data from Segment to Voucherify. The data received from Segment enable you to:- Track custom events in Voucherify
- Create or update customers in Voucherify
- Group customers
- Choose Voucherify from Segment’s Catalog and choose your sources to connect the destination.
- Use Voucherify’s integrations keys to authenticate the connector. In Voucherify, go to Dashboard and Project Settings. In the General tab, scroll down to Integration keys. Fill in the Name and choose your Role from the drop-down list. Choose Segment from the Integration drop-down list and click the Create Integration API Key button.
- Paste your keys into the new source settings in Segment.
- Fill in the Custom Voucherify URL field. Go to Voucherify Dashboard > Project Settings > General tab. In the Application Information section, scroll down to API endpoint. For example, if your API endpoint is
https://api.voucherify.io, the Custom Voucherify URL will behttps://segmentio.voucherify.io. You can also use dedicated URLs.
Inbound integration between Segment and Voucherify
The inbound integration supports the flow of data the other way around – from Voucherify to Segment. The integration supports the following events to be sent to Segment:- Redemption:
- Publication:
- Rewards:
- Validation:
The default region is set to US (Oregon), but it is also possible to send data to an EU endpoint. After connecting to Segment, click Settings in the integration and select the proper region.
Choosing the Right Event Type in Segment
To update or modify customer data in Voucherify through Segment, use Update Customer, Create Customer, or Upsert Customer events. These are Identify-type events in Segment, used to update customer traits in Voucherify. Other event types are sent using the Track Event API call and do not support customer metadata updates. Any metadata added to these events is mapped as event metadata instead of customer traits. To make metadata work in Segment, follow these steps:- Choose an event that supports customer updates, such as Update Customer, Create Customer, or Upsert Customer.
- Structure the Payload Correctly – Ensure the
"traits"object includes metadata, as shown in this example:
3. Check the Mappings – The general and address mappings in your configuration should match the provided example. 4. Verify Metadata Mapping – Check if the metadata defined in the payload appears in the mappings. 5. Run a Test Event – When set up correctly, the customer will be properly recorded in Voucherify.
Examples
You can check if the connection works properly and data are sent between Segment.io and Voucherify. First, try the inbound integration.- Redeem a voucher in Voucherify dashboard
- See if any notification appears on the Segment account; head to your Segment account and click Connections > Sources. Select your source and click Debugger. There, you can keep track of all the actions that have taken place including the redemption that was made seconds ago.
- Click the redemption to see more details regarding the event.
- Go to Connections > Destinations. Select your destination and go to Mappings.
- Choose between already existing mappings or add a new one by clicking New Mapping in the upper right corner.
- Follow the Create or Update Customer mapping, click on the three dots and edit the mapping.
- In the second step, select the Load Sample Event option.
- The third step shows information defining mappings that can be used. You can see these changes being also implemented at the bottom of step 3 window.
- When ready, select test mapping at the bottom of the page.

