#akashpatil7596_api

1 messages ยท Page 1 of 1 (latest)

wispy sparrowBOT
#

๐Ÿ‘‹ 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.

restive sentinelBOT
#

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.

finite barn
#

No assign me someone

restive sentinelBOT
subtle matrix
#

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.

finite barn
#

This will give me a list of subscription, I only want an active subscription

subtle matrix
#

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?

finite barn
#

No only one active subscription at a time

subtle matrix
#

Then my suggestion should only return a single Subscription.

#

Well, techincally a list with a single Subscription in it.

finite barn
#

Okay, you mean this list only returns active subscriptions, right?

subtle matrix
#

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.

finite barn
#

Thanks

#

Can you help me with one last thing please

#

I want to retrieve customer's default payment method

#

How to do that?