We are using the "Send a Webhook" functionality to integrate HubSpot with a downstream system. It appears that the JSON data type for certain properties (such as "phone_number" and "zip") are inconsistent. Sometimes, they are passed as JSON Strings. Other times, they are passed a JSON Integers/numerics. This is leading to integration challenges downstream as the consuming system expects the value to always be the same data type. As these are standard HubSpot attributes, there is no ability to change the data type. However, I would expect they would be sent as Strings as that's how it's represented in the Webhook configuration (with "Abc" next to the property name).
Is there a way to consistently send these values as a single data type (String)?
Yes, this is for the standard "phone" and "zip" fields on the Contact record. "Phone_number" was a mistype. I cannot show a full example due to personally identifiable information, but the request the downstream system received looked like this:
Hey, @EHalvorsen👋 Thanks for your question. I have a few of my own 😊
Q1 — can you check your Phone Number property, please? You show `phone_number` as the internal value, but looking at the Properties API it should be `phone`. I wonder if there is either a mismatch and a custom property is getting called, or if there is a subscription set up for both??
Q2 — do you have examples for both? Where you are getting stings vs integers as expected
Q3 — what object is this for? I used Contacts in my quick test, and I want to be certain I am reproducing your steps correctly
Thanks for the additional information! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !