Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asennoussi opened this issue Sep 20, 2024 · 1 comment

Comments

@asennoussi
Copy link

asennoussi commented Sep 20, 2024

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": {}
    },
@github-staff github-staff deleted a comment from SAMBILI Oct 28, 2024
@github-staff github-staff deleted a comment from SAMBILI Oct 28, 2024
@ameypv-rudder
Copy link
Collaborator

Hi @asennoussi - thanks for raising the issue and apologies for a delayed response - we'll get back to you ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants