Webhook Schema
Schema of the payloads of various webhooks supported by CustomerGlu
Reward Webhook Schema
{
"campaignId": "c666f62e-66b9-4ef7-9191-cc70ff4a3as",
"type": "spinthewheel",
"rewardType": "points",
"userId": "281d08d8-34c0-4ed2-9400-20149c15fg",
"rewardId": "be1f951c-e9e2-49b9-806b-bf3a6573bas",
"status": "redeemable-seen",
"transactionId": "4RjchS3UO-6ubJx2TMPmx3OVyoJKcy7dQMpbji1je8Y", //Idempotent
"rewardName": "25 coins",
"rewardAmount": 25,
"body": "You have won 25 coins",
"rewardExpiry": 1724913123,
"tnc": ["NA"],
"code": "CODE123",//optional
"details": {//optional
"userBName": "testuser2", //in case of a reward for a referral
"userBId": "testuser2"//in case of a reward for a referral
"userAName": "testuser0", //in case of a reward for a referral
"userAId": "testuser0"//in case of a reward for a referral
"rewardCategory": "RM",//custom attribute
"currency":"USD"//custom attribute,
"campaignName": "Daily Reward"
}
//details object can also contain any logic/business specific custom attributes
//which can be configured as a campaign input
}FIELD
TYPE
DESCRIPTION
VALUES
Nudge Webhook Schema
FIELD
TYPE
DESCRIPTION
VALUES
content
object
button
object
Last updated