Skip to content

Need more detail on the payload being sent and examples on transformations on the payload #1194

@asennoussi

Description

@asennoussi

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": {}
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions