I'm trying to catch a PUT/webhook request that is being made by the Aftership API in node.js. A PUT request is made each time a push notification is needed to be made, I am using Parse to send the notifications but I need some of the data from the webhook.

The header of the webhook looks like Content-Type: application/json And contains this data:

ts - UTC unix timestamp that the event occurred event - the name of the event (for tracking update, the value will be 'tracking_update') msg - details about the message for which the event occurred, in the following format.

How would I go about getting the tracking number, slug and the value for token in the custom fields dictionary in node or js?