<?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: Deleting a line item using ExternalObjectId in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381517#M37522</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks. Now I can get a deal with its corresponding ExternalObjectId but when I try to&amp;nbsp;get line items associated with a deal through the CRM Associations API&amp;nbsp;&lt;A href="https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT_DEFINED/19" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT_DEFINED/19&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm getting this response: "&lt;SPAN&gt;Error&amp;nbsp;405&amp;nbsp;Method&amp;nbsp;Not&amp;nbsp;Allowed&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 24 Oct 2020 13:44:35 GMT</pubDate>
    <dc:creator>Resanehlab</dc:creator>
    <dc:date>2020-10-24T13:44:35Z</dc:date>
    <item>
      <title>Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/379522#M37297</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;SPAN&gt;I'm trying to develop an integration from an e-commerce platform to HubSpot using HubSpot eCommerce bridge API. I use a unique ExternalObjectId for any object in sync messages.&amp;nbsp;All fine but how can I get a synced object in HubSpot by its ExternalObjectId? There is no request endpoint which takes a parameter as ExternalObjectId and returns the corresponding object. My current problem is that I want to delete some line items from a deal but it can't be done by sync messages because as the document says "Please note: that the DELETE action type will not remove the object from HubSpot, it will prevent it from syncing in the future."&amp;nbsp;I can't delete them by sync messages and also I don't have their object Id in HubSpot to delete them using the delete line item endpoint documented&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/line-items/delete-line-item" target="_blank" rel="nofollow noopener noreferrer"&gt;https://legacydocs.hubspot.com/docs/methods/line-items/delete-line-item&lt;/A&gt;. So, what can I do to delete some line items from a deal?&lt;BR /&gt;&lt;/SPAN&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 20:11:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/379522#M37297</guid>
      <dc:creator>Resanehlab</dc:creator>
      <dc:date>2020-10-16T20:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/379956#M37351</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/97208"&gt;@Resanehlab&lt;/a&gt; !&lt;/P&gt;
&lt;P&gt;Going to tag in &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/82817"&gt;@umakantmwb&lt;/a&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;&amp;nbsp;here!&amp;nbsp; They make the web better &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:35:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/379956#M37351</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-10-19T19:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380021#M37361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/97208"&gt;@Resanehlab&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;Yes there is no direct api to delete an object using&amp;nbsp;&lt;SPAN&gt;ExternalObjectId for now.&lt;BR /&gt;&lt;BR /&gt;But your requirement of deleting line item from deal can be achieved by using - &lt;A href="https://developers.hubspot.com/docs/api/crm/deals" target="_blank" rel="noopener"&gt;get&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/deals" target="_blank" rel="noopener"&gt;&amp;nbsp;deal&lt;/A&gt; line items associations by using &lt;STRONG&gt;deal id&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;associations=line_items,&amp;nbsp;&lt;/STRONG&gt;In response you'll get line items details with line item id, you can filter out the line items you want to delete/update and perform the action usin line item id.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;Himanshu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 04:54:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380021#M37361</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2020-10-20T04:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380022#M37362</link>
      <description>&lt;P&gt;Thanks for mentioning&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 04:55:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380022#M37362</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2020-10-20T04:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380095#M37376</link>
      <description>&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply but as I mentioned before, I'm using&lt;SPAN&gt;&amp;nbsp;HubSpot eCommerce bridge API and I only have the ExternalObjectId for any object. I don't have any information and idea about the object ids in HubSpot like deal Id for every deal. How can I access the deal Id for a deal when I sync orders to deals using HubSpot sync messages?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 09:46:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/380095#M37376</guid>
      <dc:creator>Resanehlab</dc:creator>
      <dc:date>2020-10-20T09:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381213#M37491</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/97208"&gt;@Resanehlab&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can search the deal using the&amp;nbsp;&lt;SPAN&gt;ExternalObjectId, i am supposing that if you are using the eComm bridge api you are creating deal for order or passing the ExternalObjectId in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;ip__ecomm_bridge__order_number&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;search api&lt;/A&gt; you can get the deal ID using the&amp;nbsp;&lt;SPAN&gt;ExternalObjectId.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;BR /&gt;Himanshu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 03:49:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381213#M37491</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2020-10-23T03:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381517#M37522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks. Now I can get a deal with its corresponding ExternalObjectId but when I try to&amp;nbsp;get line items associated with a deal through the CRM Associations API&amp;nbsp;&lt;A href="https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT_DEFINED/19" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.hubapi.com/crm-associations/v1/associations/dealId/HUBSPOT_DEFINED/19&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm getting this response: "&lt;SPAN&gt;Error&amp;nbsp;405&amp;nbsp;Method&amp;nbsp;Not&amp;nbsp;Allowed&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 13:44:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381517#M37522</guid>
      <dc:creator>Resanehlab</dc:creator>
      <dc:date>2020-10-24T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a line item using ExternalObjectId</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381555#M37527</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/97208"&gt;@Resanehlab&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;I recommend you to please migrate on v3 and using this endpoint you can get the line items&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/deals" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/deals/dealId?associations=line_items&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Himanshu&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 03:48:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deleting-a-line-item-using-ExternalObjectId/m-p/381555#M37527</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2020-10-26T03:48:50Z</dc:date>
    </item>
  </channel>
</rss>

