<?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: Getting response code 400 - bad request requesting Deals on API v3 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316943#M30336</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request url I use is :&lt;BR /&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=**myAPIkey**" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=**myAPIkey**&lt;/A&gt;&lt;BR /&gt;I am using this documentation page :&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs-beta/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs-beta/crm/search&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 15:27:22 GMT</pubDate>
    <dc:creator>SAMsan</dc:creator>
    <dc:date>2020-02-05T15:27:22Z</dc:date>
    <item>
      <title>Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316930#M30334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to request deals per Pipeline using API v3 Search&amp;nbsp; method.&lt;/P&gt;&lt;P&gt;I can get entries at some point.&lt;/P&gt;&lt;P&gt;Using "after"=999 is working but "after"=9999 fails returning 400 - bad request.&lt;/P&gt;&lt;P&gt;Here are the logs :&lt;/P&gt;&lt;PRE&gt;{limit=100.0, filters=[{propertyName=pipeline, value=571502.0, operator=EQ}], after=999, sorts=[{propertyName=createdate, direction=ASCENDING}], properties=[dealname, amount, dealstage, sign_par, hubspot_owner_id, rdv_vecu, produit_vendu, type_de_produit, statut_dossier, origine, motif_de_contact, raison_des_clotures, lead_brut_lead_net_contacts, url_site]}
----- RETURN -----
UrlFetchApp result: 200.0 {total=10875, paging={next={after=1099}}}


{limit=100.0, filters=[{propertyName=pipeline, value=571502.0, operator=EQ}], after=9999, sorts=[{propertyName=createdate, direction=ASCENDING}], properties=[dealname, amount, dealstage, sign_par, hubspot_owner_id, rdv_vecu, produit_vendu, type_de_produit, statut_dossier, origine, motif_de_contact, raison_des_clotures, lead_brut_lead_net_contacts, url_site]}
----- RETURN -----
UrlFetchApp Failed: 400.0 {"status":"error","message":"There was a problem with the request.","correlationId":"27d1f756-d1ee-4943-a4e4-610611b1a0b6","requestId":"412b9bca-7814-41f4-9fb4-72d1ebb76215"}&lt;/PRE&gt;&lt;P&gt;Obviously, I won't be able to request all my deals...&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:51:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316930#M30334</guid>
      <dc:creator>SAMsan</dc:creator>
      <dc:date>2020-02-05T14:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316939#M30335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118712"&gt;@SAMsan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to assist, would you be able to forward on the exact Request URL you're currently using and the associated v3 documentation you're referencing too for me? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:16:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316939#M30335</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-02-05T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316943#M30336</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request url I use is :&lt;BR /&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=**myAPIkey**" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=**myAPIkey**&lt;/A&gt;&lt;BR /&gt;I am using this documentation page :&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs-beta/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs-beta/crm/search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:27:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316943#M30336</guid>
      <dc:creator>SAMsan</dc:creator>
      <dc:date>2020-02-05T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316948#M30338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118712"&gt;@SAMsan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing this! To confirm, the &lt;CODE&gt;after&lt;/CODE&gt; parameter is used to&lt;SPAN&gt;&amp;nbsp;access the next page of results and the value entered is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="inline-code"&gt;paging.next.after&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;property seen in the previous response. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="inline-code"&gt;paging.next.after&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;property isn’t provided, there are no additional results to display.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you're searching Deals in your Pipelines, I would not expect you to be fetching this many results that the &lt;CODE&gt;paging.next.after&lt;/CODE&gt; value returned is 9999. Can you confirm?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:34:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316948#M30338</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-02-05T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316972#M30342</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I do indeed receive the after parameter once the first limit is reached.&lt;/P&gt;&lt;P&gt;My code loops until the after parameter is absent.&lt;/P&gt;&lt;P&gt;As I request all deals from one pipeline for analytics purpose, request's total items is above 10k.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:16:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/316972#M30342</guid>
      <dc:creator>SAMsan</dc:creator>
      <dc:date>2020-02-05T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/317183#M30377</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118712"&gt;@SAMsan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just wanted to follow-up here! I am looking into this further from my end and will revert with an update once I have more for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feel free to add any questions you may have in the meantime. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 10:20:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/317183#M30377</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-02-06T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/317279#M30389</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/118712"&gt;@SAMsan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience here! I was able to dig into this internally and find that this is a known limitation currently, as such, we've updated the new documenation to include this now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The new limitation reads:&lt;/P&gt;
&lt;PRE&gt;The search endpoints are limited to 10,000 total results in the response. Attempting to page beyond 10,000 will generate a 400 error.&lt;/PRE&gt;
&lt;P&gt;See here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs-beta/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs-beta/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:31:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/317279#M30389</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-02-06T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/390040#M38479</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a timeline to fix this limitation? We have updates of 800K contacts to be pulled on a daily basis that we're filtering using the lastmodifieddate param. Do you have a better solution to achieve the data pulls?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 19:43:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/390040#M38479</guid>
      <dc:creator>adley_amzovski_</dc:creator>
      <dc:date>2020-11-30T19:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/465001#M45280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;, when will this issue be resolved? While it isn't a big problem for Deals, it is a massive problem for Contacts - the Contacts API (without filterable results) provides too much information from past (years/months) whereas the Search API gives too less. Having more than 10k active Contacts is pretty normal and not an edge case.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 08:14:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/465001#M45280</guid>
      <dc:creator>saps</dc:creator>
      <dc:date>2021-07-23T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/692600#M56895</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;&amp;nbsp;is there no way to only check the number of contacts/deals matching some criteria if there are more than 10k results?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 11:30:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/692600#M56895</guid>
      <dc:creator>StanBartczak</dc:creator>
      <dc:date>2022-09-13T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting response code 400 - bad request requesting Deals on API v3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/965059#M73022</link>
      <description>&lt;P&gt;Hello, are there any updates? This issue is 2 years old and still exists on the search enpoint as far as I can see? (experiencing on the contacts search endpoint). Also this limit is not documented here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/usage-details#rate-limits" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/usage-details#rate-limits&lt;/A&gt;&amp;nbsp;under `other limits`. Just wondering what is the correct method to handle big resposnes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see it is in the docs at:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&amp;nbsp;but there is no suggestion for work around, and as it looks on this thread this is a known limitiation which is now ~4 years old?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 09:19:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Getting-response-code-400-bad-request-requesting-Deals-on-API-v3/m-p/965059#M73022</guid>
      <dc:creator>DZaboronsky</dc:creator>
      <dc:date>2024-04-23T09:19:29Z</dc:date>
    </item>
  </channel>
</rss>

