...
This guide will show you how you can create a Webhook campaign in Braze to assign offers to only specific users. This means only these particular users will show see these offers. In order to do this you will need to create a config Offer in Sanity and then create a Braze webhook campaign to assign this offer to users that meet a specific criteria set in Braze (e.g. assign Veggie Whopper Offer to guests that replied to a survey that they are vegetarian).
...
Code Block |
---|
https://euc1-prod-bk-loyalty-middleware.rbictg.com/bulk-action/cold/create-offer |
If you would like to test Please test offer assignment in Staging the Offer assignment first, just first. To do this: replace prod
with staging
in the Webhook URL.
The brand can set as bk
(as seen in the example above), plk
or fhs
.
Markets in EU Timezone and use euc1-
, APAC Timezone should add euc1apse1-
and apse1Iberia should use euw3-
prefixes to the URL respectively (e.g., https://euc1euw3-prod-bk-loyalty-middleware.rbictg.com/bulk-action/cold/create-offer
).
Input the URL in the “Webhook URL” field
...
Code Block | ||
---|---|---|
| ||
{ "email": "{{${email_address}}}", "source": "braze-test", "rank": 123456, (optional) "configId": "Loyalty engine id of config offer", "ruleParams": { "startDate": "yyyy-mm-dd", "endDate": "yyyy-mm-dd" } } |
Replace
configId
→ replaceconfigId
with the Loyalty Engine ID of the config offer you want to assign using Brazesource
→ should bebraze
in Production;braze-test
in lower environments (Dev, Staging)email
-> → leave as is
Note |
---|
Note that in the past we relied on |
startDate
andendDate
-> → theendDate
must be set after thestartDate
- this represents the duration of time the offer will be available for the guest in the apprank
field
Note |
---|
|
rank
→ (optional) field that 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)
...
Info | ||
---|---|---|
By default, the assigned offers will have the same rules as the ones configured in Sanity. If you want to override some of these with custom rules, for example, a custom End Date & Start Date, you can pass the following arguments:
In the above example, we set the Start Date to be the time when the Offer was assigned, and we set the End Date to be 7 days after the offer was assigned (now + 604800 seconds). | ||
Note | ||
|
Request headers
Content-type
...