Last active
February 13, 2018 16:52
-
-
Save tshuck/a90103840c53bf24495f596dd7bdcbf9 to your computer and use it in GitHub Desktop.
Hatch Webhook -- Point Reduction via Reward Redemption
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"type": "webhook", | |
"id": "6c556e92-301c-43fc-8891-9bafa85ed70f", | |
"attributes": { | |
"event": "points.redemption", | |
"payload": { | |
"membership": { | |
"id": "354067ec-ff43-487b-91ed-9134ac79954d", | |
"chain_id": "24f31117-4457-4e4b-be45-15831a220acc", | |
"email": "jane@example.com", | |
"phone": "5556667777", | |
"custom_data": {} | |
}, | |
"redemption": { | |
"id": "e74e7531-3921-4665-b004-4cbb35ba5261", | |
"created_at": "2018-01-25T14:39:18-06:00", | |
"state": "unfulfilled" | |
}, | |
"reward": { | |
"id": "1b423d34-1b79-4ba8-ba2f-e2d35b0d4642", | |
"name": "Spend 150 points and get 25lbs of Poodle Preferred Potluck free!", | |
"custom_data": { requires_hot_food: true }, | |
"points": 200 | |
}, | |
"point_change": { | |
"id": "fc96c9e9-4285-49e2-bed1-27ff710c5118", | |
"quantity": -150, | |
"notes": null | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment