#vinkesh

1 messages · Page 1 of 1 (latest)

boreal cipherBOT
midnight wharf
#

Hi there!

waxen escarp
#

yes

midnight wharf
#

Pasting your messages here:

I am facing an issue when trying to get subscription list
from stripe
I am able get list of subscription using autopaging method
But not able to find a subscription in that list
not sure why

waxen escarp
#

okay

midnight wharf
waxen escarp
#

No using c#

#

I am able to get 319 records from that list

#

But not seeing this subscription sub_1LSLkJHVHEtGIdCyQv43RvTu

#

in that list

#

although i am able to get it by sibscription Id

waxen escarp
midnight wharf
#

Interesting. Give me a few minutes to look into this.

waxen escarp
#

ok

midnight wharf
#

And can you share the code you are using to list the subscriptions?

waxen escarp
#

public static async Task<List<Subscription>> GetSubscriptions(string apiKey)
{
SubscriptionService service = new();
List<Subscription> subscriptions = new List<Subscription>();
await foreach (var subsscription in service.ListAutoPagingAsync(null, new RequestOptions { ApiKey = apiKey }))
{
subscriptions.Add(subsscription);
}
return subscriptions.ToList();
}

midnight wharf
#

This subscriptions has status:canceled. and as mentioned in the list endpoint:

In order to list canceled subscriptions, specify status=canceled.

waxen escarp
#

can you paste link here

#

where i can research little bit more

midnight wharf
waxen escarp
#

thanks

midnight wharf
#

By default this exclude all cancelled subscriptions, uless you pass status: canceled