Last active
February 13, 2018 16:48
-
-
Save tshuck/11bf016c9eef995cd211f628cff6352f to your computer and use it in GitHub Desktop.
Hatch Webhook -- Point Accrual via Transaction
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.transaction", | |
"payload": { | |
"membership": { | |
"id": "354067ec-ff43-487b-91ed-9134ac79954d", | |
"chain_id": "24f31117-4457-4e4b-be45-15831a220acc", | |
"email": "jane@example.com", | |
"phone": "5556667777", | |
"custom_data": {} | |
}, | |
"transaction": { | |
"id": "802cbfd8-bdcf-4bab-9740-27c192c08bf0", | |
"transaction_time_at": "2018-01-25T14:27:10-06:00", | |
"location_id": "6ba75f11-2007-4771-ab49-ad6440e1dff9", | |
"partner_id": "client-partner-id" | |
}, | |
"offer": { | |
"id": "e74e7531-3921-4665-b004-4cbb35ba5261", | |
"name": "Purchase three Poodle Puppies get Plenty of Points", | |
"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