# Update deal amount automatically

**URL:** <https://community.hubspot.com/t/update-deal-amount-automatically/80471>\
**Category:** CRM\
**Tags:** free\
**Created:** [May 3, 2023, 9:28am UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471 "2023-05-03T09:28:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes-m](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johannes-m/32/63860_2.png) [@johannes-m](https://community.hubspot.com/u/johannes-m)\
**Post date:** [May 3, 2023, 9:28am UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471/1 "2023-05-03T09:28:06Z")

</div>

Hi there,

Upon line item creation(plus associate with Deal), update, delete I want to automatically update the deal amount as well.

I can see this functionality in the UI as shown below. Is it possible through API call?

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/3/0/3024b3d136986e83e6d4144d8579a60c02ad6f26.png)

Notes: Looking for a solution except updating the deal amount which was calculated from outside Hubspot via deal PATCH request.

Thank you!

---

<div class="post-metadata">

**Author:** ![ChrisoKlepke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrisoklepke/32/11213_2.png) [@ChrisoKlepke](https://community.hubspot.com/u/ChrisoKlepke)\
**Post date:** [May 3, 2023, 12:45pm UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471/2 "2023-05-03T12:45:21Z")

</div>

Hey @johannes-m,

the amount that gets updated is dependent on what you chose in the [settings](https://community.hubspot.com/t5/CRM/Deal-Amount-Default/m-p/371186). But all the different types like TCV, MRR etc. get calculated automatically and saved in the respective default Deal properties.

You can simply copy the amount type (e.g. total contract value) to your amount property. You can do that over the API or just a workflow even.

Cheers,

Chriso

---

<div class="post-metadata">

**Author:** ![johannes-m](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johannes-m/32/63860_2.png) [@johannes-m](https://community.hubspot.com/u/johannes-m)\
**Post date:** [June 7, 2023, 7:57pm UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471/3 "2023-06-07T19:57:26Z")

</div>

@ChrisoKlepke Thank you for your reply.

Can you please guild me on how to get ‘Deal amount calculation preference’ from the settings? I guess it’s a global setting for the entire account.

I noticed that there is a deal field called ‘hs\_deal\_amount\_calculation\_preference’. But always gets null for that property in the get deal by id API call regardless of the [setting](https://knowledge.hubspot.com/products/edit-products-and-terms-in-the-line-items-editor).

Thank you!

---

<div class="post-metadata">

**Author:** ![HubDoPete](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hubdopete/32/106153_2.png) [@HubDoPete](https://community.hubspot.com/u/HubDoPete)\
**Post date:** [August 20, 2023, 5:57pm UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471/4 "2023-08-20T17:57:48Z")

</div>

Hi Johannes,

Did you get this set up? This help article explains how to create a deal-based workflow to update the deal amount each time ACV, TCV, ARR or MRR changes.

> **[How to automatically update HubSpot deal amount when DoPricer edits new line...](https://help.hubdo.com/dopricer/set-deal-amount)**
>
> Stop manual deal amount errors. Learn how to create a HubSpot workflow that automatically syncs your Deal Amount with DoPricer’s discounted line item prices.

We wrote the article because our DoPricer app updates HubSpot line items with the discounts or prices each company is entitled to. So we update the deal amount after discount or price changes are applied to new line items.

So whether you use DoPricer or not, this is a simple way to update the deal amount without having to interrupt sales reps in the UI. Using a workflow also gives you control to choose different methods per sales pipeline.

Is this an appropriate solution for your original request?

best

Pete

best

Pete

---

<div class="post-metadata">

**Author:** ![redcondor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/redcondor/32/203408_2.png) [@redcondor](https://community.hubspot.com/u/redcondor)\
**Post date:** [July 31, 2024, 4:31pm UTC](https://community.hubspot.com/t/update-deal-amount-automatically/80471/5 "2024-07-31T16:31:38Z")

</div>

Absolute life saver
