#jeffnv-metered-sub

1 messages ยท Page 1 of 1 (latest)

marble scaffold
#

hello, one sec

vestal plover
#

or would I just need to make a recurring non-metered produce/price

#

and make the bottom tier free?

marble scaffold
#

a flat fee for the first tier and per unit pricing above that
you add custom flat fees using add_invoice_items when you create the metered Subscription. That charges the first Invoice for any up front flat fees

vestal plover
#

so here's my situation

#

i want to have two "plans"

#

$50 for 250 credits, $0.50 for each unit after 250

#

$100 for 500 credits, $0.50 for each unit after 500

#

and beginning of every month you pay either $50 or $100 + the overage from the previous month

#

BUT you can upgrade plans mid month

#

so if you start the month on $50 plan, and use 500 credits, then upgrade mid month to the $100 plan, you don't have any overage

#

is add_invoice_items my best practice?

#

i would want the base price to be charged every monht

polar moth
#

Sorry to barge in but my flow is quite similar to this.

Create a product A
Add price X, licensed price, at whatever your flat fee is
Add price Y, metered price, at whatever the rate is for overages

When you first create the subscription, the licensed price will bill immediately
Throughout the month, you report usage to price Y for any overages

At the end of the month (ie, beginning of the next month) your flat fee licensed price X will be billed, along with any accrued usage from Price Y from the previous month

#

In your case you'd have

Product A
Price X = $50
Price Y = $0.50
Price XX = $100
Price YY = $0.50 (you could just re-use Price Y as well)

X and XX are licensed prices, Y and YY are metered prices

vestal plover
#

Thanks Luigi! Normally you're my sworn enemy in Mario Kart

#

but today, we're friends

polar moth
#

I believe the add_invoice_items would need to be done each month

#

๐Ÿ™‚ happy to help

vestal plover
#

and Y/YY i'd have a tier 0 for 0-250/500 be free?

#

and then the unit price, right?

polar moth
#

If you wanted a free tier you'd just have the X price be a licensed one @ $0

vestal plover
#

well i mean

#

if I'm on X + Y

#

wouldn't i get charged $0.50 for each unit?

#

i want the first 250 to be covered by the $50 base price

#

so if you use <= 250 you only pay $50 total

#

ah you're saying ONLY report usage when you get to overage

#

OK that would work too

polar moth
#

ah you're saying ONLY report usage when you get to overage

Correct ๐Ÿ™‚

vestal plover
#

gotcha, I think I could use graduated pricing and set the first tier to flat fee of 0 and report all usage

polar moth
#

Moves some of the work onto your side but I think this is the cleanest way you'll be able to do it

#

I think graduated/tiered pricing could work (not very familiar with it) but generally Stripe doesn't like mixing metered and licensed prices

#

You'd have to play around with it

vestal plover
#

well, either way we're mixing right?

polar moth
#

Sorry should have clarified, generally Stripe doesn't like mixing metered and licensed prices in graduated/tiered pricing

vestal plover
#

huh is there an intuitive explanation for that?

polar moth
#

Not that I've seen. If I had to speculate, it'd be a nightmare to juggle both in the Stripe backend