Webhooks - different data types on json payload
I'm building a service which receives webhooks from pipedrive for update events on deals.
The json payload that is sent to the registered webhook sometimes contains strings and sometimes integer fields for the company_id and deal_id fields.
Below is an extract where these fields are integers:
{ "v": 1, "matches_filters": { "current": [] }, "meta": { "action": "updated", "change_source": "api", "company_id": 7823181, "host": "damsak.pipedrive.com", "id": 1175, "is_bulk_update": false,....
and then another call on the same webhook where these fields are sent as Strings:
{ "v": 1, "matches_filters": { "current": [] }, "meta": { "action": "updated", "change_source": "api", "company_id": 7823181, "host": "10.245.46.24:3081.pipedrive.com", "id": "1175", "is_bulk_update": false,
Notice that the host is also different... this seems like a bug somewhere in pipedrive's webhook system?
Comments
-
Hi!
We would recommend posting this directly on our Dev Community as you're more likely to find specialized help there from other developers.
You can also check all our webhooks documentation here.
Hope this helps!
0