Webhook Schema
Schema of the payloads of various webhooks supported by CustomerGlu
Reward Webhook Schema
campaignId
string
This represents an instance of the campaign.
Any String Value
type
enum
Type of activity
"spinthewheel","slotmachine","scratchcard","direct","memorygame","quiz","referral","multistep","streak","activity-scratchcard","collectthestamps","gamechallenge","unity","tossthecoin","rollthedice","unitygame","giftbox"
rewardType
enum
Type of reward
'pdr','discount','deliveryDiscount','buyXGetY','freebie','noReward',customReward','coupons','coins','points','cashbacks','stamp','booster'
userId
string
User Identification.
Any String Value
status
enum
Describes the state of the coupon
"redeemable-unseen"
transactionId
string
Idempotent transaction id that's unique and same for a reward issued for completing an activity within a specific campaign by a specific user.
base64 URL safe string
rewardName
string
Title of reward
Any String Value
rewardAmount
number
Amount of reward that is won by the user
Any Integer Value
rewardExpiry
number
Reward Expiry
Unix timestamp or -1 in-case rewardExpiry is set as never
body
string
Further description around reward.
Any String Value
tnc
array of string
Terms and Conditions
Any List of Strings
code
string
coupon code (if applicable)
Any String value
details
object
any custom key-value pairs for the reward, configurable by the client
Object containing key- value pairs
Nudge Webhook Schema
client
string
This represents an instance of the client.
Any String Value
campaignId
string
This represents an instance of the campaign.
Any String Value
userId
string
User Identification.
Any String Value
notificationType
string
Type of notification
Any one of the following value 1. push 2. in-app
pageType
string
Layout of notification
Any one of the following 1. full-default 2. middle-default 3. bottom-default 4. bottom-slider
timeRemaning
string
Not utilised
N/A
expiry
string
Not utilised
N/A
webhookType
string
Type of webhook
Supported values
title
string
Heading for notification
Any String Value
body
string
Body of the notification
Any String Value
clickAction
string
Activity to perform on click
Any String Value
image
string
Image displayed in notification container
Any String Value
text
string
Text on the CTA button
Any String Value
action
string
Activity to perform on button click
Any String Value
Last updated