Example Bloomreach webhooks

The Bloomreach & TRIFFT integration relies on REST APIs and Webhooks. The document below lists selected examples of who Webhooks can be configured to pass data on from TRIFFT to Bloomreach

📘

Consult this page for the overall documentation of Bloomreach & TRIFFT integration


👍

Bloomreach allows for a fully flexible configuration for events. Depending on your needs and the way your Bloomreach project is set up, the specific list of relevant events, the payload structure, the primary ID mapping etc may differ from the examples below. Similarly, the naming of custom parameters in TRIFFT will be different for each project. When in doubt, please consult our Support.

To set up Webhooks, head to Settings > Webhooks in Content Cockpit and:

  1. Set up Authorisation for Bloomreach
  2. Set up individual Webhooks for TRIFFT events you want to push to Bloomreach

Library of most typical webhooks to create Bloomerach events

Shared eventTRIFFT event typeTypeJSON payload
Coupon redeemedUser - User Reemed CouponPOST{
"event_type":"trft_perk_redeemed",
"properties":{
"perk_id":"{{ coupon.id }}",
"perk_name":"{{ coupon.name }}",
"venue_id":"{{ venue.id }}",
"venue_name":"{{ venue.name }}",
"venue_aztec_id":"{{ venue.param.aztecVenueId }}",
"site_id":"{{ venue.param.siteId }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User was VerifiedUser - User Was VerifiedPOST{
"event_type":"trft_registration",
"properties":{
"member_id":"{{ member.id }}",
"birth_date":"{{ member.param.birth_date | date('U') }}",
"first_name":"{{ member.param.first_name }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User - User Was CreatedUser - User Was CreatedPOST{
"event_type":"trft_registration_started",
"properties":{
"member_id":"{{ member.id }}",
"birth_date":"{{ member.param.birth_date | date('U') }}",
"first_name":"{{ member.param.first_name }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
Member Contest DrawnUser - Member Contest DrawnPOST{
"event_type":"trft_contest_drawn",
"properties":{
"contest_id":"{{ contest.id }}",
"contest_name":"{{ contest.name }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User Was Assigned With CouponUser - User Was Assigned With CouponPOST{
"event_type":"trft_contest_token_assigned",
"properties":{
"contest_id":"{{ contest.id }}",
"contest_name":"{{ contest.name }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User Signed Consent TextUser - User Signed Consent TextPOST{
"event_type":"trft_marketing_consent",
"properties":{
"consent_id":"{{ event.consentId }}",
"consent_text_id":"{{ event.consentTextId }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User Activated CouponUser - User Activated CouponPOST{
"event_type":"trft_perk_activated",
"properties":{
"perk_id":"{{ coupon.id }}",
"perk_name":"{{ coupon.name }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
Card Was Added to an UserUser Card - User Card Was AddedPOST{
"event_type":"trft_loyalty_number_added",
"properties":{
"user_card_id":"{{ metadata._aggregate_id }}",
"card_number":"{{ event.number }}",
"card_type":"{{ event.userCardType}}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}",
"trft_loyalty_number":"{{ event.number }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User Was Removed From SegmentUser - User Was Removed From SegmentPOST{
"event_type":"trft_segment_unset",
"properties":{
"segment_id":"{{ segment.id }}",
"segment_name":"{{ segment.name }}",
"segment_type":"{{ segment.type }}",
"segment_slug":"{{ segment.slug }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
App OpenedApp Event - App Event Was LoggedPOST{
"event_type":"trft_app_opened",
"properties":{
"app_version":"{{ event.params.app_version }}",
"app_platform":"{{ event.params.app_platform }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User Changed Favorite VenueUser - User Changed Favorite VenuePOST{
"event_type":"trft_favourite_venue_set",
"properties":{
"venue_id":"{{ venue.id }}",
"venue_name":"{{ venue.name }}",
"venue_aztec_id":"{{ venue.param.aztecVenueId }}",
"site_id":"{{ venue.param.siteId }}"
},
"customer_ids":{
"email_address":"{{ member.email }}",
"trfft_loyalty_id":"{{ member.id }}"
},
"timestamp":"{{ event.created_at | date('U') }}"
}
User - User Was AnonymizedUser - User Was AnonymizedPOST{
"event_type": "trft_annonymization"
"customer_ids": {
"trfft_loyalty_id": "{{ member.id }}"
},

"properties": {
"member_id": "{{ member.id }}"
},

"timestamp": "{{ event.created_at | date('U') }}",
}