Automating Price Updates for Line Items inside the Quotes via API

Hello everyone

I need assistance to find out current API capabilities.
My objective is to automate the process of updating product prices, line item prices, and subsequently, the overall quote amount that these line items contribute to. The updates need to be reflected in the quotes, especially in the table format displayed within each quote. I can update line item prices using patch requests, but am unable to update quote prices or quote amount (hs_quote_amount is read-only property).

Here are my specific queries:

1. Automatic Quote Updates: Is there a way to trigger the quote to automatically revisit the updated line items and adjust the quote amount accordingly, without manually setting the price for each line item inside the quote?
If option 1 is not possible:
2. Updating Line Items inside Quotes: Is there an API endpoint or method that allows for the direct updating of line item prices within a quote? If so, could you guide me on how to use it, including the necessary property names for making such updates?
I am unable to do it with PATCH on https://api.hubapi.com/crm/v3/objects/quotes/{quote_id}

I aim to streamline our sales process by ensuring that quote amounts and line item prices are dynamically updated in response to changes in Product prices, enhancing accuracy and efficiency. Is none of the options are viable is there any other way to do it?

I appreciate your time and assistance in addressing these queries.
Thank you

Hi, @GPeradze :waving_hand: Welcome to our community! To your question about updating a specific line item, have you tried using the Patch option from the Line Item endpoints?

PATCH PATCH /crm/v3/objects/line_items/{lineItemId}

I give a specific example in this post https://community.hubspot.com/t5/APIs-Integrations/How-to-PATCH-a-line-item/m-p/941147#M71785

Best,

Jaycee

Hi Jaycee,
Thank you for the reply. Can you please explain how can I use this to update the quote price?

The solution is to:

1. Set quote hs_status state to DRAFT

2. Update line item prices that are associated with Quote. Note that line items associated with the Quote are not the same as line items that the Quote is made from.

3. Set Quote hs_status status to APPROVED
Last step automatically calculates new price as the price is calculated value and can not be set manually.