APIs & Integrations

ricky23
Contributor

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

SOLVE

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
ricky23
Solution
Contributor

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

SOLVE

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
Contributor

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

SOLVE

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