<?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 Using private app to retrieve each deal stage and time in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-private-app-to-retrieve-each-deal-stage-and-time/m-p/853416#M67647</link>
    <description>&lt;P&gt;I'm looking to retrieve a list of all deals and understand each deal stage (e.g. appointment scheduled, kickoff scheduled,... closed won/lost) and the date each transition happened.&amp;nbsp; I have a list of 5k deals I need to pull this data for so the API seems to be the best solution.&amp;nbsp; For example I need to understand:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Deal 123&lt;OL&gt;&lt;LI&gt;Appt scheduled == 09/09/2023&lt;/LI&gt;&lt;LI&gt;Kickoff scheduled == 09/15/2023&lt;/LI&gt;&lt;LI&gt;Closed Lost == 09/16/2023&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Deal 456&lt;OL&gt;&lt;LI&gt;Appt scheuled == 09/09/2023&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;Decision Maker Bought in == 09/20/2023&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've found a few similar type of requests but was unable to get this to pull the data correctly - ideally I'd like to make a single request per deal ID, grab the relevant data and loop through each deal_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a private app with&amp;nbsp; the following scopes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV class=""&gt;crm.schemas.deals.read&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;crm.objects.deals.read&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;timeline&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After doing some searching what seems should have what I need is the endpoint:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/engagements/v1/engagements/associated/deal/{deal_id}/paged?include=metadata" target="_blank" rel="noopener"&gt;https://api.hubapi.com/engagements/v1/engagements/associated/deal/{deal_id}/paged?include=metadata&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is while I can get a 200 response, the data is always empty:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"results"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"hasMore"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"offset"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you anyone guide me to an endpoint that would provide me with what I need?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 19:46:08 GMT</pubDate>
    <dc:creator>AdamReed51</dc:creator>
    <dc:date>2023-09-21T19:46:08Z</dc:date>
    <item>
      <title>Using private app to retrieve each deal stage and time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-private-app-to-retrieve-each-deal-stage-and-time/m-p/853416#M67647</link>
      <description>&lt;P&gt;I'm looking to retrieve a list of all deals and understand each deal stage (e.g. appointment scheduled, kickoff scheduled,... closed won/lost) and the date each transition happened.&amp;nbsp; I have a list of 5k deals I need to pull this data for so the API seems to be the best solution.&amp;nbsp; For example I need to understand:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Deal 123&lt;OL&gt;&lt;LI&gt;Appt scheduled == 09/09/2023&lt;/LI&gt;&lt;LI&gt;Kickoff scheduled == 09/15/2023&lt;/LI&gt;&lt;LI&gt;Closed Lost == 09/16/2023&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Deal 456&lt;OL&gt;&lt;LI&gt;Appt scheuled == 09/09/2023&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;Decision Maker Bought in == 09/20/2023&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've found a few similar type of requests but was unable to get this to pull the data correctly - ideally I'd like to make a single request per deal ID, grab the relevant data and loop through each deal_id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a private app with&amp;nbsp; the following scopes:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;DIV class=""&gt;crm.schemas.deals.read&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;crm.objects.deals.read&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;timeline&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After doing some searching what seems should have what I need is the endpoint:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/engagements/v1/engagements/associated/deal/{deal_id}/paged?include=metadata" target="_blank" rel="noopener"&gt;https://api.hubapi.com/engagements/v1/engagements/associated/deal/{deal_id}/paged?include=metadata&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is while I can get a 200 response, the data is always empty:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"results"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"hasMore"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"offset"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you anyone guide me to an endpoint that would provide me with what I need?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:46:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-private-app-to-retrieve-each-deal-stage-and-time/m-p/853416#M67647</guid>
      <dc:creator>AdamReed51</dc:creator>
      <dc:date>2023-09-21T19:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using private app to retrieve each deal stage and time</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-private-app-to-retrieve-each-deal-stage-and-time/m-p/853465#M67649</link>
      <description>&lt;P&gt;Looks like I got it using &lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/deals/{dealId}?propertiesWithHistory=dealstage" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/deals/{dealId}?propertiesWithHistory=dealstage&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This returns each stage ID insetad of name but it does give timestamps for each stage change so it's just a matter of converting the IDs to names for reporting purposes&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:37:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-private-app-to-retrieve-each-deal-stage-and-time/m-p/853465#M67649</guid>
      <dc:creator>AdamReed51</dc:creator>
      <dc:date>2023-09-21T20:37:20Z</dc:date>
    </item>
  </channel>
</rss>

