#adontz_best-practices

1 messages ¡ Page 1 of 1 (latest)

drifting sluiceBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1253348437655687189

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

exotic fjord
#

Hello

cosmic nova
#

Hi

tired moth
#

Hello, you should be able to make a Subscription that has a standard per-seat price as well as a usage-based one at the same time. Have you already considered that approach?
For the Discounts, that is how Coupons work. If you create a coupon with a duration and then add the coupon to your subscription, we will apply the discount for any new subscription cycle that starts while the duration is active. https://docs.stripe.com/api/coupons/object#coupon_object-duration

cosmic nova
#

I've tried to create such subscription, but I'm not sure about details. How to say that price is usage based, but it does not start from zero. So if allowance is 50, then 40 is not billed at all, and 60 is billed as 10? Also, that allowance is different for trial period, 10 for example.

#

Subscription just allows setting end of trial date, but not alternative settings for trial period.

tired moth
#

How to say that price is usage based, but it does not start from zero.
Can you tell me more about what you mean by this?

#

Also what do you mean by "allowance"? Can you maybe give an example of how you want the numbers to work out here

cosmic nova
#

So I say that I charge a customer by unit used, but "50 units per month are included".
If, within a month, a customer actually used 40, they will not be charged at all.
If, within a month, a customer actually used 65, they will be charged 65 actual - 50 included = 15 billable units.

#

Does that make sense to you?

tired moth
#

Yep yep, finding the doc for that

cosmic nova
#

Great!

drifting sluiceBOT
cosmic nova
#

Can I define a separate tier for trial?

tired moth
#

Not quite sure what you mean there. Can you tell me more about how you want your trials to work?

cosmic nova
#

Same logic, just if it was 50 included for regular mode, for trial exactly same logic, but 10 included.

#

After trial ends, it automatically switches to 50.

tired moth
#

Ah so the first 10 are free and then paid after that?

cosmic nova
#

Yes. But only for trial period. Then it's 50.

tired moth
#

You would want to create a separate Price object for that and could swap between the two by updating the subscription

cosmic nova
#

Great. You are extremely helpful!

#

I have different product features corresponding to different lines in subscription. For example fixed monthly is for feature AA and usage based is for another feature BB. Is there any way to know status of that payments separately? So that if usage went high and customer failed to pay usage invoice in the middle of billing cycle, then I keep feature AA enabled and disable feature BB only. Do I need two separate subscriptions for that?

#

Also, I did not find in documentation how monthly billing cycles work. For example, if a customer signed up on January 30, what are next two billing dates?

tired moth
#

Yes you would need two separate subscriptions for that. Our subscriptions charge for all of their items at the same time and the subscription only has one status, so there isn't a way to differentiate what items the status applies to.

#

Looking for the doc on that. The next two billing dates would be Feb 28 (or Feb 29 on a leap year) and Mar 30, basically we "anchor" the cycle to the day of the month that the subscription started. We bill on that day of the month if it exists and the last day of the month if the month does not have enough days

cosmic nova
#

So everyone subscribed on January 28, 29, 30, 31 will be billed on February 28 and then spread out back?

tired moth
#

Correct, though you can specify a different billing cycle anchor when creating your subscriptions if you want them to all be on the same day

cosmic nova
#

One more question

#

What is the way to specify what is paid and what is free for trial?

runic bone
#

HI there

#

What do you mean by that?

cosmic nova
#

During the trial period of subscription, I have a few items in subscription

#

Which of these items will be free during trial period?

runic bone
#

If it's a free trial, then all items would be free