I created a new app and got it authenticated using OAuth 2.0 to our HubSpot portal. Every time I try to test the subscription within the app, it keeps giving me a 400 error code (and nothing else). I use Postman to hit my API with the exact same sample JSON and URL and it hits. I’m unsure as to what’s exactly happening.
[
{
"eventId": "100",
"subscriptionId": 210677,
"portalId": 6787449,
"occurredAt": 1575663161592,
"subscriptionType": "deal.propertyChange",
"attemptNumber": 0,
"objectId": 123,
"changeSource": "CRM",
"propertyName": "dealstage",
"propertyValue": "sample-value"
}
]
Edit: I investigated and realized that in the sample JSON, the “eventId” is a string, but in the Webhook Event Details, it is a a number. Also, the JSON that’s sent from the Webhook Event Details isn’t an array.
{
"objectId": 1148387968,
"propertyName": "dealstage",
"propertyValue": "1175058",
"changeSource": "CRM_UI",
"eventId": 930654971,
"subscriptionId": 210178,
"portalId": 6205670,
"appId": 207344,
"occurredAt": 1575656726200,
"subscriptionType": "deal.propertyChange",
"attemptNumber": 2
}
Any help?