<?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 Getting Company and Customer details through the api when deal status progresses in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-Company-and-Customer-details-through-the-api-when-deal/m-p/355989#M34987</link>
    <description>&lt;P&gt;I've got a simple php/mysql site i'm using to integrate HubSpot with other services. It's listening for a webhook when the Hubspot deal progresses to `appointmentscheduled` and saves the event to the DB. The fields saved are&amp;nbsp;id; event_type; object_id; event_id;&lt;/P&gt;&lt;P&gt;subscription_id; portal_id and some others. What is the most economical way to retrieve the associated Company and Customer data?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 12:28:46 GMT</pubDate>
    <dc:creator>DaMask</dc:creator>
    <dc:date>2020-07-21T12:28:46Z</dc:date>
    <item>
      <title>Getting Company and Customer details through the api when deal status progresses</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-Company-and-Customer-details-through-the-api-when-deal/m-p/355989#M34987</link>
      <description>&lt;P&gt;I've got a simple php/mysql site i'm using to integrate HubSpot with other services. It's listening for a webhook when the Hubspot deal progresses to `appointmentscheduled` and saves the event to the DB. The fields saved are&amp;nbsp;id; event_type; object_id; event_id;&lt;/P&gt;&lt;P&gt;subscription_id; portal_id and some others. What is the most economical way to retrieve the associated Company and Customer data?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 12:28:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-Company-and-Customer-details-through-the-api-when-deal/m-p/355989#M34987</guid>
      <dc:creator>DaMask</dc:creator>
      <dc:date>2020-07-21T12:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Company and Customer details through the api when deal status progresses</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-Company-and-Customer-details-through-the-api-when-deal/m-p/356272#M35009</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139170"&gt;@DaMask&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to retrieve associations of deals to company/contact, you would need to use the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank"&gt;CRM API | Associations&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically the. &lt;STRONG&gt;POST&lt;/STRONG&gt; &lt;STRONG&gt;crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e.&amp;nbsp;crm/v3/associations/deals/contacts/batch/read&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "inputs": [
    {
      "id": "{{deal id}}"
    }
  ]
}&lt;/PRE&gt;
&lt;P&gt;The return response will include the associated contact IDs.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 08:11:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-Company-and-Customer-details-through-the-api-when-deal/m-p/356272#M35009</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-07-22T08:11:30Z</dc:date>
    </item>
  </channel>
</rss>

