API vs UI difference when creating a deal


#1

Hi,

We're seeing an difference between the way deals are created via the API and the UI.

When creating a deal via the API, you can omit the amount field and 'null' gets stored in HubSpot.

When creating a deal via the UI, if you leave the amount field blank, an empty string (i.e. "") gets stored in HubSpot.

We are then trying to serialize the value back to a double/number and it fails if it hits the empty string.

It seems like there's an issue somewhere along the line. Please advise.

Regards,

Dave


#2

Hi @Dave_Clarke,

I can reproduce this on my end as well. I'm not entirely sure what's going on, but I'll dig into this with my team and get back to you as soon as I have some more information.


#3

Hi @Dave_Clarke,

Thanks for your patience here; this should now be resolved. Creating deals in the UI no longer sets the amount field to an empty string. Let me know if you have any other questions!


#4

Thanks - will take a look and let you know if there's any further issues!