APIs & Integrations

reportsbuilder
メンバー

API data for Deals from HubSpot

I am trying to connect an app to HubSpot account and am using their API's

I am not able to get "won by"/ "lost by" details and "value period". Does hubspot send these value via API?

0 いいね!
1件の返信
cbarley
元HubSpot社員
元HubSpot社員

API data for Deals from HubSpot

Hi @reportsbuilder, are you using the Get all deals endpoint? If so, you can use the Properties With History parameter in conjunction with properties parameters to pull historical data for a property. Since won by / lost by are not default properties in HubSpot, you'll need to get the historical data for closedate which does store who closed that particular deal.

Here's what your request might look like:

api.hubapi.com/deals/v1/deal/paged?limit=2&propertiesWithHistory&properties=closedate&hapikey=XXXXXXXX

Another couple options you might consider are 1) trying to simply pull the owner of the deal (but if multiple people work on the deal at once then that might not work for your purposes) or 2) creating a custom property in your portal that tracks who closed the deal.

0 いいね!