#stealth_api

1 messages ¡ Page 1 of 1 (latest)

hasty scarabBOT
#

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

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

primal mango
crude shell
#

This one fails: req_7rrKeqzZ82lMe6, this one is successful: req_ktVTvxPM5DdMRL. The only difference between the two is that I did not set ProrationBehavior on the second one. Looks like Stripe does not actually set ProrationBehavior if subscription is "paused".

primal mango
#

OK, I believe the error message already explained why it failed "You cannot set proration_behavior while a subscription is paused. Resume the subscription first before setting proration_behavior."

crude shell
#

I would expect default behavior to be "create_prorations" if ProrationBehavior is not set. However, it looks like that is not the case when subscription is "paused". I have not found that detail anywhere in the documentation.

primal mango
#

As the message explained, you can't change the proration_behavior when the subscription is paused.

#

You should resume it, and change the proration_behavior

crude shell
#

I understand that. What I am saying is, documentation should state somewhere that subscription will be intact that is, not prorated, if it's in a "paused" status. If I update "active" subscription without setting ProrationBehavior, then subscription will be prorated. If I update "paused" subscription without setting "ProrationBehavior" subscription will not be prorated. I had to find that out by myself, since nowhere in the documentation does it say that subscription prorations will remain intact for "paused" sub.

primal mango
#

The only way to transation a subscription into "pause" state is ending a free trial subscription without a payment method. Since there's no paid invoice during trial, there's nothing to prorate.

crude shell
#

Makes sense. Thanks.

#

Can prorations be done on a "trialing" subscription?

primal mango
#

Since there's no paid invoice during trial, there's nothing to prorate.