#taviksha-akar_api

1 messages · Page 1 of 1 (latest)

unkempt peakBOT
hybrid abyssBOT
#

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.

unkempt peakBOT
#

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

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

novel heath
inland pier
#

req_8zd1iPsZ0Gd87t

#

and how can i get subscription id of the subscription scheduled for future date

novel heath
#

It returned successful status code, 200

inland pier
#

Yes there is no error. After creating subscription, I need to retrieve the invoices of this subscription. So when i pass subscription scheduled id it gave me error

request id - req_gViCTyZ4IvFgXF

novel heath
#

Subscription ID will only be created when the phase 0 actually starts. It's not possible to the invoices of future dates when phase 0 is not started since subscription is not created yet

inland pier
#

So when the subscripion will start, does the subscription scheduled Id will also be removed or may change later ?? Actually I am storing it in my database and afterwards I will get the the data based on that Id only. So is there any chance that the subscription schedule id will be update after subscription starts.?

#

?

novel heath
#

Subscription schedule ID associated to a subscription will not change unless the subscription schedule is released

inland pier
#

means if subscription started then will it be removed?

novel heath
#

No. Subscription schedule will only be removed after all the phases in the subscription complete, i.e. until the end of the last phase

inland pier
#

Ok and if the subscription starts then if I want to get details of the subscription and I use the scheduled Id only to retrieve the started subscriptiom, will it get the latest details of the subscription or it will get the previously scheduled details of the subscription and not latest details?

novel heath
#

Subscription retrieval will always get the latest data at the time of retrieval

inland pier
#

if I use scheduled Id then also?

#

?

#

And there is no way to get the invoices created on future subscription scheduled for future date?

novel heath
#

if I use scheduled Id then also?
Yes

And there is no way to get the invoices created on future subscription scheduled for future date?
If the subscription schedule is not started yet, there is no way to get invoice for future subscription

inland pier
#

OK thanks.

#

And when future subscription is created using subscription scheduled and the subscription gets started afterwards, then how can we get the subscription id so that we can update it in our database for future purposes like to get invoices and all. Using webhook or something like that ? Please advice.

novel heath
#

Once the subscription starts, customer.subscription.created event will be sent and it will include subscription schedule ID in schedule property: https://docs.stripe.com/api/subscriptions/object#subscription_object-schedule, which you can then update the subscription ID to your database that associated to the subscription schedule

unkempt peakBOT