How to update line item Term value in API - it shows as reserved for Hubspot

Line Items V3 API
Im trying to update the Term (months) field for line items and also to make the interval to be Annually.
I do have a start and end date for the contract time frame and it is not recurring exactly, but is Total Amount / Term. The goal is to get ARR and such fields to show accurately.
These are not products or quotes, but are ad hoc individual line items typed in manually.
Anyone had this issue?

@frederic_Marken , @kaleemmolani can you all help out here?

I am seeing that API requires like P12M as value for Annual frequency. I have this figured out mostly, but do not see any docs on P or M mean. When I do P3M (three months term), the TCV does not change to proper amount for some reason.
How do I envoke TCV to recalculate based on line items total? Per other forum suggestions, I do update the deal amount value which is the same as the TCV total, but TCV is not updating to match line items total/deal amount for some reason. Is there something in the API to force revenue analytics to recalculate?

Hi @thecoolcoder ,

Follwed this documentation regarding conversation api :
https://legacydocs.hubspot.com/docs/methods/conversations_api/hsconversationssettings
Example usage:
window.hsConversationsSettings = {
loadImmediately: false, // Allows you to manually load the widget using .load()
inlineEmbedSelector: ‘#my-chat-div’,
enableWidgetCookieBanner: true,
disableAttachment: true
};
/* … */
window.HubSpotConversations.widget.load();
Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

I had a similar problem as well. Here is what I did to solve it:

First, to update the “Term Months” field on the Line Item using API, make your URL call to:

https://api.hubapi.com/crm/v3/objects/line_item​

Your payload should be structured something along the following lines:

{ “properties”:

{ “hs_product_id”: obj.hs_product_id,

“name”: obj.name,

“quantity”: obj.quantity,

“hs_recurring_billing_period”: “P”+obj.term+“M”,

“recurringbillingfrequency”: obj.recurringbillingfrequency,

“price”: obj.price,

“hs_discount_percentage”: obj.hs_discount_percentage},

“associations”: [

{ “to”:{ “id”: dealId }, “types”:[ { “associationCategory”: “HUBSPOT_DEFINED”, “associationTypeId”: 20 } ]

} ]

}

The variable needed to update the Term Months is hs_recurring_billing_period. You can see how I’ve set this to be “P”+term_length_in_months+“M”.

This allows you to set it to 12, 24, 36, etc.

However, unfortunately I’ve learned that HubSpot does not accept any Term Months length that is not a multiple of 12 if you are doing any of the “Annually” billing frequencies. You can change the billing frequency to “Monthly”, though, and then your Term Months length of 3 (in your example) should not have issues.