{"id":290,"date":"2025-04-26T14:02:11","date_gmt":"2025-04-26T14:02:11","guid":{"rendered":"http:\/\/www.soapandseife.com\/?p=290"},"modified":"2025-04-26T23:25:07","modified_gmt":"2025-04-26T23:25:07","slug":"deal-amount-not-automatically-updated-when-a-line-item-price-is-updated-through-an-api-call","status":"publish","type":"post","link":"http:\/\/www.soapandseife.com\/index.php\/2025\/04\/26\/deal-amount-not-automatically-updated-when-a-line-item-price-is-updated-through-an-api-call\/","title":{"rendered":"Deal amount not automatically updated when a line-item price is updated through an api call."},"content":{"rendered":"

https:\/\/api.hubapi.com\/crm\/v3\/objects\/line_items\/XXXXXX<\/a><\/SPAN><\/DIV>
DATA<\/SPAN>: <\/SPAN><\/DIV>
{<\/SPAN>“properties”<\/SPAN>:{<\/SPAN>“net_initial_license_fee”<\/SPAN>:<\/SPAN>“”<\/SPAN>,<\/SPAN>“price”<\/SPAN>:<\/SPAN>“20000.0000”<\/SPAN>}}<\/SPAN><\/DIV>
REPLY:<\/SPAN><\/DIV>
{<\/SPAN><\/DIV>
    <\/SPAN>“id”<\/SPAN>: <\/SPAN>“XXXXXX”<\/SPAN>,<\/SPAN><\/DIV>
    <\/SPAN>“properties”<\/SPAN>: {<\/SPAN><\/DIV>
        <\/SPAN>“amount”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“createdate”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_acv”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_arr”<\/SPAN>: <\/SPAN>“0.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_lastmodifieddate”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_line_item_currency_code”<\/SPAN>: <\/SPAN>“USD”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_margin”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_margin_acv”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_margin_arr”<\/SPAN>: <\/SPAN>“0.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_margin_mrr”<\/SPAN>: <\/SPAN>“0.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_margin_tcv”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_mrr”<\/SPAN>: <\/SPAN>“0.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_object_id”<\/SPAN>: <\/SPAN>“XXXXXX”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_object_source”<\/SPAN>: <\/SPAN>“INTEGRATION”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_object_source_id”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_object_source_label”<\/SPAN>: <\/SPAN>“INTEGRATION”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_post_tax_amount”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_pre_discount_amount”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_tcv”<\/SPAN>: <\/SPAN>“20000.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_total_discount”<\/SPAN>: <\/SPAN>“0.00”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“hs_updated_by_user_id”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“net_initial_license_fee”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“price”<\/SPAN>: <\/SPAN>“20000.0000”<\/SPAN>,<\/SPAN><\/DIV>
        <\/SPAN>“quantity”<\/SPAN>: <\/SPAN>“1”<\/SPAN><\/DIV>
    },<\/SPAN><\/DIV>
    <\/SPAN>“createdAt”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
    <\/SPAN>“updatedAt”<\/SPAN>: <\/SPAN>“”<\/SPAN>,<\/SPAN><\/DIV>
    <\/SPAN>“archived”<\/SPAN>: <\/SPAN>false<\/SPAN><\/DIV>
}

ACV and TCV seem to be updated but not the amount.
It does change the text display by adding (Manual).
“Deal amount (Manual):<\/SPAN>$37,000.00″
But the dollars is wrong.

<\/SPAN><\/DIV><\/DIV><\/DIV><\/DIV><\/DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"

https:\/\/api.hubapi.com\/crm\/v3\/objects\/line_items\/XXXXXXDATA: {“properties”:{“net_initial_license_fee”:“”,“price”:“20000.0000”}}REPLY:{    “id”: “XXXXXX”,    “properties”: {        “amount”: “20000.00”,        “createdate”: “”,        “hs_acv”: “20000.00”,        “hs_arr”: “0.00”,        “hs_lastmodifieddate”: “”,        “hs_line_item_currency_code”: “USD”,        “hs_margin”: “20000.00”,        “hs_margin_acv”: “20000.00”,        “hs_margin_arr”: “0.00”,     …<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/posts\/290"}],"collection":[{"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":1,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/posts\/290\/revisions"}],"predecessor-version":[{"id":291,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/posts\/290\/revisions\/291"}],"wp:attachment":[{"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/media?parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/categories?post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.soapandseife.com\/index.php\/wp-json\/wp\/v2\/tags?post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}