How can I retrieve the product association with a deal through API?SOLVE
Oct 8, 2019 10:48 PM
I hope all is well with you 😄
When looking to get the product association with the deal API, you can do so by going through the following steps:
1. Use this endpoint: Get associations for CRM object to get the deals and line items association (Line item contains the product details as it represent a line in an order).
Note: The definition ID here is 19 - https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview (Deal to line item)
2. Once we retrieve the line items id, we can use this endpoint: Get line item by ID to get the product id, name, quantity and price.