#plasmatiger

1 messages · Page 1 of 1 (latest)

thorn mulchBOT
wide totem
#

hi! if you have two subscriptions you have two invoices, that's it really.

I can't have both of these in one subscription as one is per seat and one is metered
I'm not 100% sure that's true, I'd have to test it quickly

dense lily
#

Thanks karllekko!
Yes! I am also having doubts myself. Maybe I read or implemented in wrong way. If you can direct me to some blog with this use case, tiered with per-seat (quantity) and metered quantity in one subscription, it will make my day

wide totem
#

I don't know of a blog or anything, but you can just try it in your dashboard or the test mode API

#

I can create a single subscription like this that use a tiered price, a metered price, and a per-seat price together

#

or like this :

#

overall I'd suggest playing around with the Dashboard/test mode API to set up your exact scenario and trying it out to create a subscription that does what you're looking for.

dense lily
#

Thanks a lot! Let me try

#

Will API work in the same way if we add these two different things in items in same subscription

#

Also, how can I trigger create_usage as it takes subscription ID and not priceID or itemID???

lost mortar
#

Hi! I'm taking over this thread.

#

Will API work in the same way if we add these two different things in items in same subscription
How are you creating the subscription? With Checkout Sessions or directly with the Subscription endpoint?
Also, how can I trigger create_usage as it takes subscription ID and not priceID or itemID???
This is how you create a usage record: https://stripe.com/docs/api/usage_records/create, which needs a subscription_item ID (si_xxx)

dense lily
#

I tried! I might have figured the way out! Thanks a lot

#

I will ask if I am stuck somewhere

#

For now, it's all good

#

For yearly subscription and monthly metered billing it will not work as interval are different

#

That is what prompted me to this conclusion. Actually, I wanted to have the first tiered one as monthly and yearly billing both and the another metered one to have monthly billing

#

Thanks anyways! I understood the concept now