Rewards Webhook

Send the reward outputs like points, merchandise, cashbacks, coupons to your servers

A webhook url can be provided to CustomerGlu to receive the rewards won by users in real-time

A POST request will be made to the specified Webhook URL . Example request body is as follows

{
"userId":"xyz",
"type":"customReward",
"rewardId":"abc",
"rewardName":"Merchandise:T-shirt",
"details":{
"size":"L"
}
‚Äč
}

Optionally, to verify the authenticity of request, a secret token can be provided to CustomerGlu. See here on how set a token

When you set a token, you'll receive the X-GLU-SIGNATURE header in the webhook POST request. value of this header will be a hmac hexdigest of the request body with the provided token. See here on how to validate the requests