Benjamin Reynolds (Deactivated) recording → Targeted Coupons Through Braze-20220322_123641-Meeting Recording.mp4
CBA Offers Sanity config
Use Required assignment ruleset
On the offer in sanity, set the ‘requires assignment' rule
Find here documentation on Sanity rulesets
CBA Offers Braze config
Body request
{ "couponId": "0526d543-3871-4e9c-bec5-327ebcd3f1db", "tokenId": "tester", "userId": "{{${user_id}}}", "expiresOn": "2020-08-11T08:59:59.000Z" }
Replace
couponId
with the offer Sanity ID of the coupon you want to assigntokenId
should be a unique identifier for each campaignuserId
-> leave as isexpiresOn
-> this field determines when the offer assignment will expire, so i.e. the end of the offer life
Request headers
Webhook URL
https://prod-bk.rbictg.com/api/v2/braze/webhooks/assign-coupon-token
Make sure you use v2 - in the past the URL used to be v1
Authorization
Authorization: Basic SCYkKk1tTnVQIiVtJCJLcUVpOWRpfmBEK3pJYkwlN24yLFhGbnpRfDpNWi4hcVgvRWI5dkZxTy45bXleNVFTTXkwZFo6WkdOJFwualRDeWFs
Content-type
Content-Type: application/json
Loyalty Offers Assignment (New Loyalty Offers Platform)
Sanity Setup
Create a template offer (e.g. template offer for Braze Offers in BK UK)
this offer can be used for all future Braze Offer Assignments
save the
Loyalty Engine ID
of the template offer to input into Braze afterunder
Mechanics
ensure a config offer as added underConfig Offer
and under theRequired Rules
drop down theDate Band
toggle is turned onit does not make a difference which config offer is within the template offer in Sanity - it just needs to be added so the offer can be Published
Create a Config Offer (e.g. config offer for for BK UK)
you will need a different Config Offer created for each offer you would like to assign using Braze
save the
Loyalty Engine ID
of the template offer to input into Braze afterwithin this config offer, in the
Mechanics
dropdown underBenefits
you will need to link the offer benefits (e.g. Picker or Offer Combo)Make sure to add the config offer to the list of Live Config Offers in the
Loyalty Offers UI
in Sanity, so the offer shows in the app to the user after it is assigned
Braze Configuration
Body request
{ "userId": "{{${user_id}}}", "templateId": "31860003-2e04-4b2e-9008-a6aa33f69da9", "source": "braze-test", "rank": 123456, (optional) "configId": "Loyalty engine id of config offer", "ruleParams": { "startDate": "yyyy-mm-dd", "endDate": "yyyy-mm-dd" } }
Replace
templateId
with the Loyalty Engine ID of the Template Offer used for Braze OffersReplace
configId
with the Loyalty Ending ID of the offer you want to assign using Brazesource
should bebraze
in Production;braze-test
in lower environments (Dev, Staging)userId
-> leave as isstartDate
andendDate
-> required fields; theendDate
must be set after thestartDate
- this represents the duration of time the offer assignment will be available forrank
field (optional) determines the sequence priority of the assigned personalized offer. The lower the number, the higher the priority (i.e. 1 would rank at the top)
Request headers
Webhook URL
the Hot path should be used for any user triggered campaigns that should happen in realtime
ie: T-Mobile Tuesdays, sign up bonuses
the Cold path should be used for any marketer triggered campaigns that can be processed over time
ie: mass offers assignments, mass points updates
Example of Hot Webhook URL in Production:
https://prod-bk-loyalty-middleware.rbictg.com/bulk-action/hot/create-offer
Example of the Cold Webhook URL in Production:
https://prod-bk-loyalty-middleware.rbictg.com/bulk-action/cold/create-offer
If you would like to test in Staging the Offer assignment first, just replace prod
with staging
in the Webhook URL
Content-type
Content-Type: application/json
X-Region
x-region: gb
x-region
is the 2-character ISO country code string of that market (e.g. gb
= United Kingdom, ch
= Switzerland)
X-Api-Key
x-api-key: string
Please reach out to Lopes da Costa, Valentina or another PM to get you access to the API Key in Production or Staging for your brand
Other resources
How to Assign Loyalty Points to Users Using Braze Webhook
This can be used for Markets with Loyalty for both CBA Offers Platform and the New Loyalty Offers platform
Body request
{ "pointsEarned": 500, "source": "braze", "userId": "{{${user_id}}}" }
Replace
pointsEarned
with the amount of points you would like users that receive this Braze web hook to receivesource
should bebraze
in Production;braze-test
in lower environments (Dev, Staging)userId
-> leave as is
Request headers
Webhook URL
the Hot path should be used for any user triggered campaigns that should happen in realtime
ie: T-Mobile Tuesdays, sign up bonuses
the Cold path should be used for any marketer triggered campaigns that can be processed over time
ie: mass offers assignments, mass points updates
Example of Hot Webhook URL in Production:
https://prod-bk-loyalty-middleware.rbictg.com/bulk-action/hot/assign-points
Example of the Cold Webhook URL in Production:
https://prod-bk-loyalty-middleware.rbictg.com/bulk-action/cold/assign-points
If you would like to test in Staging the Offer assignment first, just replace prod
with staging
in the Webhook URL
Content-type
Content-Type: application/json
X-Region
x-region: gb
x-region
is the 2-character ISO country code string of that market (e.g. gb
= United Kingdom, ch
= Switzerland)
X-Api-Key
x-api-key: string
Please reach out to Lopes da Costa, Valentina or another PM to get you access to the API Key in Production or Staging for your brand