#mayuri_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/1386969285984911400
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hello, will you be able to share with the the request ID that return the error?
Here’s how you can find the request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
i don't have rightt now.
I see, if you don’t mind, could you share your account id so that I can take a closer look at how your integration works? You can find your account id by logging in to  https://dashboard.stripe.com/settings/account  . It'll have the prefix acct_Â
Okay
thank you! I checked our system and I'm not seeing an existing subscription or subscription schedule with the given IDs
my subbscripttion wass scheduled
and i am trying to cancel same
so my api is corrrect for cancel the scheduled subscripttion?
please note myy subscriptionn is active.
the correct method to use to cancel a subscription is .subscriptions.cancel as stated in our code sample here: https://docs.stripe.com/api/subscriptions/cancel?lang=node— this method expects a subscription id (sub_xxxxxxxx)
but if you are cancelling a subscription schedule, then you will need to use .subscriptionSchedules.cancel: https://docs.stripe.com/api/subscription_schedules/cancel?lang=node
neither should be expecting an invoice.
thhe 2nd method will canncel the subbscriptiion which mmeans the subbscrition will not activate
but in my sccenariio subscription was schedule and now iit is activve and i am trying to cancle same.
to cancel an already active subscription, please use .subscriptions.cancel [0]. You can follow the sample
const subscription = await stripe.subscriptions.cancel(
'sub_xxxxxxxxx' // your subscription ID
);
[0] https://docs.stripe.com/api/subscriptions/cancel?lang=node
I'm sorry but I do not understand what that means. It might help if you could share with me your Stripe account id so that I check if there are errors similar to what you described