<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I retrieve the product association with a deal through API? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/298574#M28050</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 11:20:51 GMT</pubDate>
    <dc:creator>Kapil</dc:creator>
    <dc:date>2019-10-24T11:20:51Z</dc:date>
    <item>
      <title>How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295574#M27700</link>
      <description>&lt;P&gt;I have a deal created with the selected product associated to the deal. Can I get the product association with the deal through the API?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 19:53:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295574#M27700</guid>
      <dc:creator>wue</dc:creator>
      <dc:date>2019-10-08T19:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295652#M27715</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/107253"&gt;@wue&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope all is well with you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to get the product association with the deal API, you can do so by going through the following steps:&lt;/P&gt;
&lt;P&gt;1. Use this endpoint:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/get-associations" target="_blank"&gt;Get associations for CRM object&lt;/A&gt;&amp;nbsp;to get the deals and line items association (Line item contains the product details as it represent a line in an order).&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: The definition ID here is 19 -&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank"&gt;https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview&lt;/A&gt;&amp;nbsp;(Deal to line item)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;2. Once we retrieve the line items id, we can use this endpoint:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/line-items/get_line_item_by_id" target="_blank"&gt;Get line item by ID&lt;/A&gt;&amp;nbsp;to get the product id, name, quantity and price.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 02:48:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295652#M27715</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-10-09T02:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295772#M27727</link>
      <description>&lt;P&gt;Thanks, Wendy. That works great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a list of Line Items properties?I followed the examples on the page and get the property value of name, price and quantity, but would like to have te full list of properties as reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/line-items/get_line_item_by_id" target="_blank"&gt;https://developers.hubspot.com/docs/methods/line-items/get_line_item_by_id&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:41:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295772#M27727</guid>
      <dc:creator>wue</dc:creator>
      <dc:date>2019-10-09T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295896#M27754</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/107253"&gt;@wue&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get all the line items properties by using this endpoint here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-properties/get-properties" target="_blank"&gt;Get all object properties&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/properties/v2/line_items/properties&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 01:27:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/295896#M27754</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-10-10T01:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/298574#M28050</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 11:20:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/298574#M28050</guid>
      <dc:creator>Kapil</dc:creator>
      <dc:date>2019-10-24T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve the product association with a deal through API?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/309831#M29470</link>
      <description>&lt;P&gt;Hi there! Curious what tool you are integrating with for the products tool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have found lots of limitations with moving forward with the products tool and would love to find a way to export all that is needed to get all products' feature into another tool that will allow us to view in an aggregated way.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 18:15:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-can-I-retrieve-the-product-association-with-a-deal-through/m-p/309831#M29470</guid>
      <dc:creator>Carly_Farlow</dc:creator>
      <dc:date>2020-01-03T18:15:28Z</dc:date>
    </item>
  </channel>
</rss>

