...
How to Assign Loyalty Points to Users Using Braze Webhook
Body request
Code Block |
---|
|
{
"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 receive
source
should be braze
in Production; braze-test
in lower environments (Dev, Staging)
userId
-> leave as is
Webhook URL
Info |
---|
the Hot path should be used for any user triggered campaigns that should happen in realtime the Cold path should be used for any marketer triggered campaigns that can be processed over time |
Example of Hot Webhook URL in Production:
Code Block |
---|
https://prod-bk-loyalty-middleware.rbictg.com/bulk-action/hot/assign-points |
Example of the Cold Webhook URL in Production:
Code Block |
---|
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
Code Block |
---|
|
Content-Type: application/json |
X-Region
Info |
---|
x-region is the 2-character ISO country code string of that market (e.g. gb = United Kingdom, ch = Switzerland)
|
X-Api-Key
Code Block |
---|
x-api-key: string |
Note |
---|
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 |
...