Last active
February 13, 2018 16:50
-
-
Save tshuck/2ccf4bcb4bcb6cc9dba1d7cb751ca43f to your computer and use it in GitHub Desktop.
Hatch Webhook -- Point Accrual via Loyalty Event
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.loyalty_event", | |
"payload": { | |
"membership": { | |
"id": "354067ec-ff43-487b-91ed-9134ac79954d", | |
"chain_id": "24f31117-4457-4e4b-be45-15831a220acc", | |
"email": "jane@example.com", | |
"phone": "5556667777", | |
"custom_data": {} | |
}, | |
"loyalty_event": { | |
"id": "d2bae3ee-9d6b-4ed2-af54-1aa60692458c", | |
"event_type": "wheel_spin", | |
"event_data": { | |
"membership_id": "354067ec-ff43-487b-91ed-9134ac79954d", | |
"action": { "add_points": 100 } | |
} | |
}, | |
"offer": { | |
"id": "e74e7531-3921-4665-b004-4cbb35ba5261", | |
"name": "Spin the Prize Wheel for a chance to win!", | |
"external_id": "client-external-id", | |
"custom_data": {} | |
}, | |
"point_change": { | |
"id": "fc96c9e9-4285-49e2-bed1-27ff710c5118", | |
"quantity": 200, | |
"notes": null | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment