#Marroco-subscriptions
1 messages · Page 1 of 1 (latest)
Hi toby
$stripe->subscriptions->all();
im runing this command
before I get all my current subscirptions
but now Im getting only like 1 or.2 subscirptions
but when I see stripe i have a lot more
How many of those Subscriptions are still active? That endpoint only returns non-canceled Subscriptions unless a status filter is passed in.
it only say 1 susbcription active
but in my dashboard I have 8 active subs
and there is no filter Im getting all subscriptions and then filtering in my backend
Can you share the ID of the request that you're using to list your Subscriptions? (should start with req_)
It filters to POSTs by defaults, but you should be able to turn off the method filter or have it include GET requests also.
yeah I tried to do that
Can you share your account ID instead then?
It's found near the top right of this dashboard page:
https://dashboard.stripe.com/settings/account
Based on what I'm seeing, is it correct that you're trying to list all of your Subscriptions from livemode?
yes
Hm, can you provide the full output from one of those requests?
That looks like the output from listing all Connected Accounts.
Shouldn’t be
im just printing from this request
$activesubs=$stripe->subscriptions->all();
print_r($activesubs);
and thats the output that I just paste
Sorry, that's not a list of Connected accounts, it's a list of capabilities for a single account. Either way it's not a list of Subscriptions, as can be seen by the url value included at the very end of that response.
Are you trying to run requests in parallel, or do you have anything else that is putting its results in activesubs?
the final url is [url] => /v1/subscriptions
I just want to retrieve all the subscritions in my account
then I will filtered by status in my backend'
Oh my goodness, apologies, I was looking at the wrong file on my end.
I'm seeing that there are 10 Subscriptions included in that response, which is the default limit for the number of objects returned by our list endpoints. If you'd like to return more you can increase the limit, or use pagination to retrieve the additional results.
This is the limit parameter that you can adjust:
https://stripe.com/docs/api/subscriptions/list#list_subscriptions-limit
And this is the auto-pagination functionality that our client-libraries provide:
https://stripe.com/docs/api/pagination/auto