<?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 Associating Line Items to Published Quotes in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Associating-Line-Items-to-Published-Quotes/m-p/1058452#M77561</link>
    <description>&lt;P&gt;I’ve created new line items via API and associated them with a published quote. I receive a success message, but no changes appear in the quote. Additionally, even when I modify the quantity of existing line items via APIs in the published quote, the changes are not reflected.&lt;/P&gt;&lt;P&gt;Has anyone else experienced this issue or have suggestions for resolving it?&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Regards Ali&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 11:35:59 GMT</pubDate>
    <dc:creator>AliFawadHassan</dc:creator>
    <dc:date>2024-10-22T11:35:59Z</dc:date>
    <item>
      <title>Associating Line Items to Published Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associating-Line-Items-to-Published-Quotes/m-p/1058452#M77561</link>
      <description>&lt;P&gt;I’ve created new line items via API and associated them with a published quote. I receive a success message, but no changes appear in the quote. Additionally, even when I modify the quantity of existing line items via APIs in the published quote, the changes are not reflected.&lt;/P&gt;&lt;P&gt;Has anyone else experienced this issue or have suggestions for resolving it?&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Regards Ali&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:35:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associating-Line-Items-to-Published-Quotes/m-p/1058452#M77561</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2024-10-22T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Associating Line Items to Published Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associating-Line-Items-to-Published-Quotes/m-p/1058836#M77596</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/490980"&gt;@AliFawadHassan&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think we have a quirk of this endpoint that is not clearly documented — that you need to unpublish your quote for the changes to take effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a quick test by doing the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I created a quote with one pre-existing line item — Oranges&lt;/LI&gt;
&lt;LI&gt;I published the quote&lt;/LI&gt;
&lt;LI&gt;I made a request to the Line Items API to create a net-new line Item — Lemons&lt;/LI&gt;
&lt;LI&gt;recieved the same success response as what you are reporting&lt;/LI&gt;
&lt;LI&gt;I did not see the updated line item when I made a request to the GET Line Item by ID endpoint&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2024-10-22 at 14.47.33@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/129887i010EA298B2C3C8C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2024-10-22 at 14.47.33@2x.png" alt="CleanShot 2024-10-22 at 14.47.33@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;That feels confusing to me. After searching the documentation for any clues as to what the heck is (not) happening, I found this at the bottom of the &lt;A href="https://developers.hubspot.com/docs/api/crm/quotes#:~:text=To%20modify%20any%20properties%20after%20you%27ve%20published%20a%20quote%2C%20you%20must%20first%20update%20the%20hs_status%20of%20the%20quote%20back%20to%20DRAFT%2C%20PENDING_APPROVAL%2C%20or%20REJECTED." target="_blank" rel="noopener"&gt;&lt;STRONG&gt;documentation&lt;/STRONG&gt;&lt;/A&gt; “to modify any properties after you've published a quote, you must first update the hs_status of the quote back to DRAFT, PENDING_APPROVAL, or REJECTED.” Although we are discussing line items, it seems the same restriction applies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as I put the quote back into a draft state, the line item I created and associated to this quote appeared as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try doing the same and let me know if the updated line items appear after using the “recall and edit" option?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2024-10-22 at 15.40.20@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/129890iF059F9694B9B32B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2024-10-22 at 15.40.20@2x.png" alt="CleanShot 2024-10-22 at 15.40.20@2x.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 21:47:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associating-Line-Items-to-Published-Quotes/m-p/1058836#M77596</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-10-22T21:47:23Z</dc:date>
    </item>
  </channel>
</rss>

