#dizerss-dev_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1292911622628835460
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi
Hello
I don't think our APIs support resetting monthly usage on a yearly subscription.
The better apporach here would be to control this in your integration instead.
there is a parameter here that looks like it works but i am not sure what it is refering to here.
https://docs.stripe.com/api/subscriptions/create#create_subscription-billing_cycle_anchor
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Or is possible can we do soemthing like a installments plan. so eg they buy the product for 1200$/year instaed of 1600$/year.
With 1200$ plan they which was yearly they also pay monthly but they can be tied to the plan somehow and upon disregarding or removing themselves they have to pay up the remainder amount ?
Billing cycle anchor decides when to invoice the customer i.e. it is usually set to the renewal date.
if you move the billing cycle anchor, it changes the renewal date.
Instalment plans are basically "monthly" subscriptions that run for a specific interval - https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#installment-plans
Taking a step back, based on what you've described so far - I feel like you should create a monthly subscription for the usage based billing portion and manually add a one-time charge on yearly by calling the API - https://docs.stripe.com/billing/invoices/subscription#adding-upcoming-invoice-items
So instead of modeling usage on your integration, you'd model "annual subscription" part in your integration.
Where the "annual renewal" amount is added as one time charge but the underlying subscription is really a monthly recurring subscription
thanks for this and regarding the first question we have no way of doing that with stripe. so just as a newbie question how do big companies manage their 20$/year subscriptions and update your stuff monthly ?
Pretty sure they also use the workaround I mentioned above where underlying subscription is just a monthly subscription in cases where annual subscription needs to update monthly and issue invoices based on that.. This is one of the only ways to charge a customer monthly.
Thankyou this should do it then. Great talk.