APIs & Integrations

asacurry
Member | Diamond Partner
Member | Diamond Partner

GET custom deal properties via API

I’m trying to generate some reports for me team by pulling our deal stage and deal source data via the API. In this case deal_stage is custom property that does display as expected using the property API, but doesn’t populate or throw an error when calling it as a property on the deal API. Here is the URL I am trying to use:

https://api.hubapi.com/deals/v1/deal/paged?hapikey=XXXXXX&properties=deal_source&properties=dealstag...

0 Upvotes
4 Replies 4
eric1
Member

GET custom deal properties via API

The problem with this is that it doesn't work on getting properties on an individual deal. Hence, you have to page the results until you find the correct deal to get all the properties. Surely this is an oversight by hubspot.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

GET custom deal properties via API

@asafullfunnel I don’t follow what your issue is here? dealstage is the name of the deafult Deal Stage property. You should be able to call any custom property on the Deal API.

What were your expectations for the error?

0 Upvotes
asacurry
Member | Diamond Partner
Member | Diamond Partner

GET custom deal properties via API

My apologies, it was a newer field than I realized so the field was blank on the records where it hadn’t been populated…had to page through a while.

Thank you for the quick reply nonetheless!

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

GET custom deal properties via API

anytime, let me know if you run into anything else

0 Upvotes