APIs & Integrations

MakeDevelopment
Participant

request !== response

SOLVE

Hello there,

I have a problem, it's not related to performance, but it's confusing.
By endpoint Post https://api.hubapi.com/crm/v3/objects/contacts/search I want to filter it by a custom field - it's a number with 19 characters.
In response, I get a modified number, the last few digits turn into zeros.

MakeDevelopment_0-1686245430526.png

 

Why such behavior?

Thanks in adv!

0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

request !== response

SOLVE

Hello @MakeDevelopment 

You are using 19 digits. HubSpot only supports numbers with up to 18 digits. When you try to filter by a custom field with more than 18 digits, the API will automatically truncate the number to 18 digits.

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

2 Replies 2
MakeDevelopment
Participant

request !== response

SOLVE

Hi @himanshurauthan 

Thanks for the reply, it's all clear now 🙂
Is this mentioned somewhere in the documentation?

0 Upvotes
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

request !== response

SOLVE

Hello @MakeDevelopment 

You are using 19 digits. HubSpot only supports numbers with up to 18 digits. When you try to filter by a custom field with more than 18 digits, the API will automatically truncate the number to 18 digits.

Digital Marketing & Inbound Expert In Growth Hacking Technology