APIs & Integrations

ym42324
Participant

Deal closed date stays empty when Deal is closed; also cannot update it via API

SOLVE

Our portal id is 5664924. Sometime around 8th of April 2020 we started having the following problem. When deal stage is changed to "checkout-completed" via API, the Deal close date does not update as it used to. It just stays empty, which causes all newest deals go to the bottom of "CHECKOUT COMPLETED" column, and also breaks reporting. So the first question is:

 

1) Why Deal's closed date no longer automatically updates when deal is closed?

 

To find a workaround, I tried updating Deal's close date property via API. However, Hubspot API does not list names of properties, so there is no way to look it up. I tried the following:

 

{"properties":[{"name":"closed_date","value":"1586614898000"}]}

 

Also tried "closeddate", "hs_closeddate", and others, but the repsonse is always PROPERTY_DOESNT_EXIST. Thus the second question is:

 

2) Is there a way to update deal closing date via API?

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

Deal closed date stays empty when Deal is closed; also cannot update it via API

SOLVE
Hello @ym42324

try using closedate when you update via API. this is correct internal name of the property.

Thanks
Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

1 Reply 1
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Deal closed date stays empty when Deal is closed; also cannot update it via API

SOLVE
Hello @ym42324

try using closedate when you update via API. this is correct internal name of the property.

Thanks
Digital Marketing & Inbound Expert In Growth Hacking Technology