Query URL to get Contacts, deals and deal stage


#1

I created a custom report using custom report builder that uses two data sets: Deals and Contacts.

I see following data:

Contact, Deal and Deal stage.

Next, I want a QueryURL that can bring the same data for me. But not able to write a queryURL that can do this for me. Please help!!!!!

Thanks
Avinash


#3

Hi Avinash,

It sounds like you need to use the "Get all deals" GET request and specify in your URL "&properties=dealstage" as well as "includeAssociations=true". This will return all your deals, with their associated contact vids and deal stage property values.

You can see how you would structure your url in this article: https://developers.hubspot.com/docs/methods/deals/get-all-deals