Workflow to update line-item price and discount?

Hi everyone,

We’re implementing Revenue Hub for a SaaS client that sells annual subscriptions on 1-, 2- and 3-year terms. Before we fall back on custom code, we want to confirm whether the following can be done natively.

Our setup

  • Marketing, Sales, Service, Revenue, Data and Content Hub, all Professional (no Enterprise, no sandbox)
  • Every deal has three line items from the product library: a one-time setup fee and two annual recurring products
  • The main subscription product is priced by tier, based on a population number held on the deal

What we need to happen automatically when a deal is created or its line items are added

  1. Apply a discount or waiver to specific line items, using discount values the rep enters on the deal (e.g. setup fee waived, 10% off the main product)
  2. Set the price based on the tier, plus a prorated amount when the first year is shorter than 12 months
  3. Set each recurring line item’s billing start date and term (e.g. billing starts 90 days before Year 2 for a 3-year agreement)

What we’ve found so far

  • The “Add line item to deal” workflow action adds a product and quantity, but we can’t see a way to set its price, discount, billing start date or term.
  • The “Edit record” action doesn’t seem to let us choose line items as the associated record to update.
  • There’s no line-item workflow object type. We found the long-standing ideas “Line Item-Based Workflows” and “Set line item property in workflows”, both still open.

Our questions

  1. In Revenue Hub Professional, is there any native way (workflow action, product setting, pricing rule or quote setting) to set price, discount, billing start date or term on a deal’s line items automatically?
  2. Is the quote rules engine Enterprise-only, and could it apply discounts like these?
  3. Are line-item workflows, or line items in “Edit record”, on the roadmap?
  4. If custom code is the only option, is a custom code action in a deal workflow, using the associations and line-items APIs, the approach you’d recommend? Are there any limits or pitfalls?

Any confirmation, especially from the HubSpot team, would help a lot. Thanks!

Me too! I’d especially like HubSpot to support line-item-based workflows in Revenue Hub Professional, with actions to update unit prices, apply percentage or fixed discounts, set billing start dates, and adjust recurring billing terms. Being able to edit associated line items directly in deal workflows would reduce the need for custom code and make subscription automation much easier.

Hi @deanpramod and a big warm welcome to the HubSpot Community! :orange_heart:

Thanks for sharing your use case and for the great questions, thanks also @playhop for your contribution!

Revenue Hub Professional supports features such as tiered pricing, discounts, billing terms, and future billing start dates. However, automatically calculating and updating existing line-item prices based on deal properties isn’t currently supported through standard workflow actions alone.

One question: Do you need the pricing to update automatically whenever deal properties change, or only when a quote is being created?

Here is the documentation that can help: Custom code actions - HubSpot docs

I’d love to also hear from our Top Experts: Hi @danmoyle, @Anton and @HFisher7 do you have suggestions, please?

Thanks so much and have a wonderful day!

Bérangère

@deanpramod

I’ve run into this on Revenue Hub builds. The community manager is right that there’s no native action that recalculates existing line-item prices from deal properties. The usual workaround is a custom code action. Here’s how I’d set it up:

  • Build a deal-based workflow, triggered when your tier, term or discount property changes
  • Add a Custom code action (Node.js or Python)
  • Pass the deal ID and the driving properties into the code as inputs
  • In the code, get the deal’s line items through the associations API, then PATCH each line item’s price, discount, hs_recurring_billing_start_date and term
  • Store your tier price table in the code or a secret so it’s easy to change

Custom code actions need Data Hub Professional or Enterprise, and they time out at 20 seconds, so keep it light. Please check on your portal that deal-based workflows offer the action. If you only need prices set at quote time, the quote template is a simpler place to do it.

Help article: Custom code actions - HubSpot docs

Welcome to the Community @deanpramod. So far you’ve got the same answer I’m confirming here, The short answer is no, not natively in Revenue Hub Professional for the full automation you describe. Workflows can add a product/quantity, but they cannot set a line item’s price, discount, billing start date, or term; quote rules can govern discounts but are Enterprise-only and are guardrails rather than an automatic line-item pricing engine.

There are two posts in the Community Ideas forum where you can add your use case for a request.

Right now the ideas remain open and HubSpot staff feedback in the Community indicates line-item workflow support is not currently on the roadmap. So I wouldn’t wait for it to happen soon. I’d build for the current API/custom-code path, but keep the logic isolated and configurable so it can be replaced if HubSpot ships native line-item actions.

@CGrove5 has a good idea for the workaround. It’s not something I’ve built for clients yet, but seems logical!