I am using the deals API to get the cumulative time spent by my deals in each stage of our pipeline. However, the time is different between what the API returns and what I see in Hubspot.
For instance, using the API I see that this specific deal has spent 429882213 seconds in this stage. This amounts to 4975 days.
However, when looking up the deal directly in Hubspot I see that it has spent 21 days in this stage.
Am I using the API incorrectly ? How do I get the correct value ?
The API returns the time in milliseconds. 429882213 is 4.975 Days.
Next steps for troubleshooting should be:
compare what the API is returning to the property value on the deal and not on this UI card. There could be additional logic behind what is displayed on that card.
validate the internal id of the pipeline stage is the correct id.
I think that the return value is not in seconds because 21 days is equal to 1,814,400 seconds. So could you please check the unit of the returned value?
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
I think that the return value is not in seconds because 21 days is equal to 1,814,400 seconds. So could you please check the unit of the returned value?
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
The API returns the time in milliseconds. 429882213 is 4.975 Days.
Next steps for troubleshooting should be:
compare what the API is returning to the property value on the deal and not on this UI card. There could be additional logic behind what is displayed on that card.
validate the internal id of the pipeline stage is the correct id.
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!