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

SOLVE
ricky23
Participant

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!

 

0 Upvotes
1 Accepted solution

Accepted Solutions
ricky23
Solution
Participant

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

View solution in original post

1 Reply 1
ricky23
Solution
Participant

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

View solution in original post