Wrong Webhook Test payload sent


#1

So the documentation for Webhook testing states that a sample JSON payload will look like this:

{
  "eventId": 1,
  "subscriptionId": 25348,
  "portalId": 4721637,
  "occurredAt": 1531299052766,
  "subscriptionType": "contact.creation",
  "attemptNumber": 0,
  "objectId": 123,
  "changeSource": "CRM",
  "changeFlag": "NEW",
  "appId": 177426
}

Sadly, when testing out the payload is different. In the sample JSON we see that appId, objectId, subscriptionId, eventId are number. If you click test, and hubspot send payload - all fields arrive as strings which might be ok for some loose typed languages, but not for strict typed.

And the actual webhook events send payloads as in example json. So the "Test" button functionality should be fixed, and it should send payload as it is described


#2

Hi @gytisgreitai,

I can reproduce what you're talking about; let me take this to my team so that we can take a closer look. I'll reach back out in this thread when I have more information.


#3

Hi @gytisgreitai,

Thanks for your patience here; I've just heard back from my team that a fix has been rolled out for this. The test webhook payload should now match the actual payload sent exactly (aside from the fact that it's test data). Let me know if you have any other questions here!