Not able to get the company ID from a Deal using this endpoint

SOLVE
Highlighted
Regular Contributor

Hi,

I am trying the get the Company ID for each and every deal in Hubspot. I tried using this endpoint-

https://api.hubapi.com/deals/v1/deal/paged?hapikey

But according to Postman, the associations object is set to null as seen in the screenshot below

 

Hubspot.PNG

 

Any help on this matter would be greatly appreciated!

 

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Regular Contributor

Never mind! I was able to resolve this. I had to add this after the hapi key 

 

&includeAssociations=true

 

So, eventually the End Point would look something like this

https://api.hubapi.com/deals/v1/deal/paged?hapikey&includeAssociations=true

1 Reply 1
Regular Contributor

Never mind! I was able to resolve this. I had to add this after the hapi key 

 

&includeAssociations=true

 

So, eventually the End Point would look something like this

https://api.hubapi.com/deals/v1/deal/paged?hapikey&includeAssociations=true