<?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 Get associated deal ID using contact IDs in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-associated-deal-ID-using-contact-IDs/m-p/670167#M55127</link>
    <description>&lt;P&gt;Hi, I need to get an associated deal ID by giving the contact ID. I didn't find an endpoint about that. Can anybody help me?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 08:21:24 GMT</pubDate>
    <dc:creator>SQUEZZOO</dc:creator>
    <dc:date>2022-07-25T08:21:24Z</dc:date>
    <item>
      <title>Get associated deal ID using contact IDs</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-associated-deal-ID-using-contact-IDs/m-p/670167#M55127</link>
      <description>&lt;P&gt;Hi, I need to get an associated deal ID by giving the contact ID. I didn't find an endpoint about that. Can anybody help me?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 08:21:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-associated-deal-ID-using-contact-IDs/m-p/670167#M55127</guid>
      <dc:creator>SQUEZZOO</dc:creator>
      <dc:date>2022-07-25T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get associated deal ID using contact IDs</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-associated-deal-ID-using-contact-IDs/m-p/670334#M55140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On all of the below replace CONTACT.ID &amp;amp; HUBSPOT_API_KEY with your real values. Depending on the API version you're using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Using the latest v4 API it would be the associations endpoint:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;https://api.hubapi.com/crm/v4/objects/contacts/&lt;STRONG&gt;CONTACT.ID&lt;/STRONG&gt;/associations/deals?hapikey=&lt;STRONG&gt;HUBSPOT_API_KEY&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Documentation here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Using v1 or v3 API:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;https://api.hubapi.com/crm-associations/v1/associations/&lt;STRONG&gt;CONTACT.ID&lt;/STRONG&gt;/HUBSPOT_DEFINED/4?hapikey=&lt;STRONG&gt;HUBSPOT_API_KEY&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;https://api.hubapi.com/crm-associations/v3/associations/&lt;STRONG&gt;CONTACT.ID&lt;/STRONG&gt;/HUBSPOT_DEFINED/4?hapikey=&lt;STRONG&gt;HUBSPOT_API_KEY&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"4" in these URLs is the ID for contact_to_deal as outlined here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/crm-associations/get-associations" target="_blank" rel="noopener"&gt;Documentation here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These all return JSON with a list of associated deal IDs, slightly different formatting between v4 &amp;amp; v1/v3 but both return the IDs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 14:22:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-associated-deal-ID-using-contact-IDs/m-p/670334#M55140</guid>
      <dc:creator>TomAshford</dc:creator>
      <dc:date>2022-07-25T14:22:31Z</dc:date>
    </item>
  </channel>
</rss>

