Hi @tjsimpson
The discrepancy in dates is likely due to a time zone difference between your system and HubSpot.
HubSpot stores timestamps in UTC, while your system may be sending dates in your local time zone, causing a one-day difference when converted to UTC.
To avoid this issue, you can simply omit the Close Date when creating or updating a Deal via the API. HubSpot will automatically set the Close Date to the current UTC date and time when the Deal reaches a specific stage, such as “Funded”, which is configured to mark it as closed-won.
This approach streamlines your integration and eliminates potential time zone-related problems.
Also,
Simplify your approach by utilizing HubSpot’s automatic Close Date feature, which updates the Close Date based on the closed-won stage.
By leveraging this feature, you can avoid the complexity of time zone adjustments in your code and let HubSpot handle the date management seamlessly.
Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards