• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

API: Query deal including associations with a single request

CEbert
Member

Is there are more effcient way, to GET a deal including all associations to line items, company and contact in less requests. Currently I have to execute a 7 requests to get the information:

- GET the deal

- GET the line item ids by querying the associations of a deal

- GET the line items from the line items API

- GET the contact id by querying the associations of a deal

- GET the contact from the contacts API

- GET the company id by querying the associations of a deal

- GET the company from the companies API

0 Upvotes
1 Accepted solution
CEbert
Solution
Member

Found it by myself using the associations parameter

View solution in original post

0 Upvotes
2 Replies 2
PGraça
Member

Do you have any example?

 

0 Upvotes
CEbert
Solution
Member

Found it by myself using the associations parameter

0 Upvotes