Line item billing start date not set

Hello,
I am working on integrating HubSpot data into our application. I am mostly working on deals and licenses and using another portal for it (our test portal): 5699493. We would like to utilize two fields from line item - namely:
`hs_billing_period_start_date` and `hs_billing_period_end_date` however they are not being set.
This can be seen here where I have overridden the StartDate on the UI: Line Items
Also on another one where it’s set to “At Payment”: Line Items
On production I checked an existing deal that we have: Line Items
And it also does not have either of those two properties set when I make a call to the API.
Why are those two fields not set?
Is there something specific that needs to be done in order to have them populated?

Hi @MarcinPec

The hs_billing_period_start_date and hs_billing_period_end_date fields are not being set because they are likely not configured to be automatically populated. Here are the steps to address this:

1. Check Field Configuration: Ensure that these fields are properly configured in your HubSpot settings.
- Go to your HubSpot account settings.
- Navigate to Properties under Data Management.
- Ensure that hs_billing_period_start_date and hs_billing_period_end_date are listed and correctly set up.
2. Review Workflows: If these fields should be populated automatically, verify or create the necessary workflows.
- Check existing workflows that might set these fields.
- If none exist, create a workflow to set these fields based on relevant triggers (e.g., deal stage, payment).

3. Manual Entry: If these fields require manual entry, ensure the data is being input and saved correctly in the UI.

“I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!”

Hi, thanks for all the info. However I cannot find a line item anywhere in the settings:

neither here:

nor in the properties tab:

how can I manage line items?

Hi @MarcinPec

  • The hs_billing_period_start_date and hs_billing_period_end_date properties on line items are not directly configurable through settings or workflows.
  • In its place, these dates are system-generated based on the chosen billing schedule for a line item. By default,
  • HubSpot billing starts at the time of payment, which is why you may see this default setting in some line items. However, when recurring billing is enabled for a line item, such as a monthly subscription, the system calculates the billing period start and end dates based on the chosen billing cycle and initial payment date.
  • Check the “Billing Start Date” field within a deal’s line item details to see if a custom start date was chosen. In addition, to verify if recurring billing is enabled, look for a field like hs_recurring_billing_frequency or hs_recurring_billing_cycle within the line item details. One-time purchases won’t have these dates set

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

So, this does not seem to work as described.

Example here: Line Items

I have overriden the start date, set the line item to be annual, and the term for 36 months:

When I do a call for this line item: https://api.hubapi.com/crm/v3/objects/line_items/9845514163?properties=hs_billing_period_end_date,hs_billing_period_start_date

this is my response:

{
 "id": "9845514163",
 "properties": {
 "createdate": "2024-06-27T10:49:29.051Z",
 "hs_billing_period_end_date": null,
 "hs_billing_period_start_date": null,
 "hs_lastmodifieddate": "2024-07-01T06:08:33.040Z",
 "hs_object_id": "9845514163"
 },
 "createdAt": "2024-06-27T10:49:29.051Z",
 "updatedAt": "2024-07-01T06:08:33.040Z",
 "archived": false
}

Can you have a look at this particular case and tell me why it’s not set?

@MarcinPec did you ever get to the bottom of this. I have the same problem