rudderstack-docs
rudderstack-docs copied to clipboard
Need more detail on the payload being sent and examples on transformations on the payload
https://www.rudderstack.com/docs/destinations/webhooks/setup-guide/ I'm dying to try to change the payload to a simple payload:
[{
"version" : 1,
"type" : "track",
"userId" : "019mr8mf4r",
"event" : "Purchased an Item",
"properties" : {
"revenue" : "39.95",
"shippingMethod" : "2-day"
},
"timestamp" : "2012-12-02T00:30:08.276Z"
}]'
But the webhook payload has always a specific format:
{
"body": {
"XML": {},
"FORM": {},
"JSON": {
"data": {
"premium": false,
"question_id": 103597,
"answers_count": 0
},
"name": "Question visited",
"external_id": "0f288e49-fbd6-4d65-a7af-ecadfdd225da"
}
},
"JSON_ARRAY": {}
},