#awais_api
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/1242394727295352883
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Error reactivating subscription: StripeInvalidRequestError: A canceled subscription can only update its cancellation_details.
0|quizwiz | at Function.generate (/home/bbb/QuizWizBackend/node_modules/stripe/cjs/Error.js:10:20)
0|quizwiz | at res.toJSON.then.Error_js_1.StripeAPIError.message (/home/bbb/QuizWizBackend/node_modules/stripe/cjs/RequestSender.js:105:54)
0|quizwiz | at processTicksAndRejections (node:internal/process/task_queues:95:5) {
0|quizwiz | type: 'StripeInvalidRequestError',
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks for sharing, checking..
ok thanks
The subscirpiton was canceled already at 2024-05-20 08:37:59 UTC while you are making this request today 2024-05-21 08:34:25 UTC
, I would like to cancel this cancellation or resume the subscription
You can cancel the cancelation schedule
i know it was cancled but i want to cancel the canclation
i want to resume that subscription
No you can't. You need to create a new one.
there is no way that we can resume a cancelation subscription?
thank you
it is marked as canceled but in real it will cancel at the end of the billing cycle
I am working on a app with a feature that if user has canceled the subscription he/she can resume that subscription but when user canceled the subscription it will mark as cancel at period end, what is the work around for this type of feature? what stripe suggest in this scenario?
The Subscription that you've shared with me, it was already canceled
You can use Subscription Schedulers :
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases
You set the end_behavior of schedule to cancel
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-end_behavior
If the customer want to cancel the cancelation, then you update the phases with more iterations
ok let me check if something is wrong on my side i am fetching the subscription list from stripe with active status i think there is mistake i should fetch mark as canceled to resume