#dominik_api

1 messages ¡ Page 1 of 1 (latest)

teal mangoBOT
#

👋 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/1418588155673710692

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

finite scarab
#

I am trying to build a system where the user has only 1 subscription with multiple products he can purchase, upgrade to or downgrade from. Since the subscription status (active, trialing etc.) is on the heighest level (subscription level), there is currently no chance to let the user create a subscription with Product A (status: active) and then adjust his subscription to have also Product B (status: 14 day trial) inside the subscription.

Is there any way through the stripe API to get something like this working with a single subscription? Giving the user a trial to Product B while having him pay for Product A in the first place, everything in one single subscription?

nova cliff
#

There's no official/formal support for this kind of functionality, but depending on the detailed needs you might be able to achieve the results/outcome you want

#

At the highest level, you're correct: the subscription has a single status thats active or trialing for all the items

finite scarab
#

Yeah I thought so, but I couldnt find anything that could help me achieve it

nova cliff
#

But, for an active subscription for an existing customer, you could represent a trial phase for a new product by using a $0 price for a "trial" variant of the underlying product

#

ie, you could add a new "TRIAL - Cool add on, $0/mo" subscription item while the customer is trialing

#

then when that trial ends you replace that free/$0 price with the actual price for a non-zero amount

#

This would not be a stripe-facilitated trial, but you'd be implementing the business logic of a trial on your end

finite scarab
#

Okay gotcha but there is the following scenario:

User has a monthly Product A subscription and then after 2 weeks the user want to test the second Product B, we would need to adjust the users subscription to have the second product B inside as well. How would you then give the user access to 14 days trial to product B while keeping the product A still in his subscription? Would it be like a flexible billing mode and then also a schedule created for a subscription update after 14 days?

#

Like directly add the users a free tier to it and then automatically schedule a subscription update with an exchange of the free tier to a paid one after 14 days? Question is, is this going to work with flexible mode because the tiers will get charged at different times then

nova cliff
#

Yea I'd use subscription schedules to plan out those changes to replace the trial with the paid version

#

The transitions can be at arbitrary times, but its up to you to decide how the prorations are handled for the misaligned first period post-trial

#

After that prorated period the items with the same cadence will have the same cycle

#

If you mean to have two monthly prices with different/offset cycle, you have no choice but to use separate subscriptions

#

Our recent upgrades now allow mixed cadence items, but items with the same cadence will be invoiced together

finite scarab
nova cliff
#

Correct, if you want to do that when adding/changing items you can use proration_behavior=always_invoice to invoice for the proration immediately

#

the default is to create_prorations but charging for them is deferred until the renewal

#

so you can either invoice for the ~0.5 month when you make the change, to get to the renewal, then the renewal is for 1mo of the new item, or you can invoice nothing right awya and the renewal would include payment for ~1.5mo of the new item

#

Up to you and your business model to decide which way to go