...
Code Block | ||
---|---|---|
| ||
{ "couponId": "0526d543-3871-4e9c-bec5-327ebcd3f1db", "tokenId": "tester", "userIdemail": "{{${user_idemail}}}", "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
email
-> leave as is
Note |
---|
Note that in the past we relied on |
expiresOn
-> this field determines when the offer assignment will expire, so i.e. the end of the offer life
...
Code Block | ||
---|---|---|
| ||
{ "userIdemail": "{{${user_idemail}}}", "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
email
-> leave as is
Note |
---|
Note that in the past we relied on |
startDate
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)
...
Code Block | ||
---|---|---|
| ||
{ "pointsEarned": 500, "source": "braze", "userIdemail": "{{${user_idemail}}}" } |
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
email
-> leave as is
Note |
---|
Note that in the past we relied on |
Request headers
Webhook URL
...