#logan-sub-intervals

1 messages ยท Page 1 of 1 (latest)

frosty geyserBOT
violet idol
#

๐Ÿ‘‹ give me a minute to check on one thing - I think you would be able to model it with a single subscription that has a one-time item added in the first invoice, but I want to double check

earnest flax
#

Thank you! I should note that this would be a recurring yearly subscription. So every year we would re-charge them the base fee

violet idol
#

Ah, right I forgot that the fixed fee is annual

earnest flax
#

Ya so basically we charge them annually for 5000 events, and anything they use over that during the year, we would charge them monthly for

violet idol
#

Yeah using two subscriptions certainly works (but it's tricky since you have to keep them in sync). The only other way I can think of doing this is:

  • create the subscription w/ the monthly price + a one-off invoice item for the annual fee
  • when you create the subscription add metadata that tells you when the annual fee should be charged next
  • have a webhook listener that listens for customer.subscription.updated to get the renewal events and check the metadata. If it's time to charge for the annual fee again, add the invoice item
earnest flax
#

Ya that's in line with what we were thinking too

#

Things like cancellations get a bit tricky because if they cancel, we would want the subscription to end at the end of the year and not the end of the month

violet idol
#

Yeah you'll have issues with both of these options really (for 2 subscription you need the logic to keep the two subs synced together and canceled at the same time, and with metadata you need extra logic to process it)

earnest flax
#

I'm going to try and convince stakeholders to use a threshold based approach instead. I think that would solve our problems

#

Thanks for the help!

violet idol
#

๐Ÿ‘