#akashpatil7596_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/1231950960629121104
๐ 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.
- akashpatil7596_api, 4 days ago, 29 messages
- akashpatil7596_api, 4 days ago, 33 messages
No assign me someone
Hi ๐ when making a request to list Subscriptions, you can provide the ID of a Customer to the customer field to filter the results. Doing so will cause only Subscriptions belonging to that Customer to be returned.
https://docs.stripe.com/api/subscriptions/list#list_subscriptions-customer
If you only want to see active Subscriptions, you can also pass active to the status field that is available for that endpoint.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This will give me a list of subscription, I only want an active subscription
Can you elaborate a bit more? Do you want to find a specific Subscription, or do you want to do a list like I'm describing but have only one result returned? Do your flows allow your Customers to have more than one active Subscription at a time?
No only one active subscription at a time
Then my suggestion should only return a single Subscription.
Well, techincally a list with a single Subscription in it.
Okay, you mean this list only returns active subscriptions, right?
Not by default. You have to pass active to the status field as I mentioned if you want to filter the results to only active Subscriptions.