#Hi Dodo team, I would like to know how change plan preview works when calculating proration while ad

1 messages · Page 1 of 1 (latest)

tribal cragBOT
#

Hi Dodo team, I would like to know how change plan preview works when calculating proration while adding new seats or users to an existing subscription. I tried it but it seems to me that the calculation is not working as expected. Can you route me to someone technical to help me out understand how the engine calculates the proration?

— posted by @rancid citrus

#

Short answer: proration is time-based and depends on the remaining billing period + unit price of the plan.

When you add seats mid-cycle, the preview should:

  • Calculate remaining time in the current billing period
  • Multiply that fraction by the per-seat price
  • Add that as a prorated charge in the upcoming invoice (or immediate charge depending on config)

Common reasons it looks “off”:

  • Billing cycle anchor mismatch (e.g. reset vs fixed)
  • Quantity changes applied with delay or at next cycle
  • Taxes or discounts applied after proration
  • Rounding at invoice level vs line-item level

Since this is calculation-specific, best to have the team inspect your exact case.

👉 Please share:

  • Subscription ID
  • Plan + price per seat
  • Quantity before/after
  • Timestamp of change

And reach out here:

If you want, paste your preview response here and I can help break it down.

rancid citrus
#

HI team , first of all it is in test mode, details are: subscription ID sub_0Nf1h5gBpCr6xWCbQ1ORG , plan pdt_0NcAosFHzvZbn9WYKth2c , price 12 * 12 which is 144 Euros, quantity before is 30 and after is 32, price shown by change plan review endpoint is 325.57 Euros, and period is less than 1 year which I expect to be 2 users * 144 users * period which is less than a year therefore the amount should be less than 288 Euros not 325.27 Euros

#

Now I moved to difference_immediately option till I found a solution for the proration issue

stray tartan
#

@lost obsidian please help here