#Marroco-subscriptions

1 messages · Page 1 of 1 (latest)

candid mural
#

Hi 👋 I've created a thread for this, could you tell me more about your concern?

grizzled lava
#

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

candid mural
#

How many of those Subscriptions are still active? That endpoint only returns non-canceled Subscriptions unless a status filter is passed in.

grizzled lava
#

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

candid mural
#

Can you share the ID of the request that you're using to list your Subscriptions? (should start with req_)

grizzled lava
#

i have a problem

#

in register it only show the post not the get

candid mural
#

It filters to POSTs by defaults, but you should be able to turn off the method filter or have it include GET requests also.

grizzled lava
#

yeah I tried to do that

candid mural
#

Can you share your account ID instead then?

grizzled lava
#

but get I change the filter it says that there is no results

#

where can i get that

candid mural
grizzled lava
#

acct_1L31bHBHYS6r19T0

#

thanks

candid mural
#

Based on what I'm seeing, is it correct that you're trying to list all of your Subscriptions from livemode?

grizzled lava
#

yes

candid mural
#

Hm, can you provide the full output from one of those requests?

grizzled lava
#

sure

candid mural
#

That looks like the output from listing all Connected Accounts.

grizzled lava
#

Shouldn’t be

#

im just printing from this request

#

$activesubs=$stripe->subscriptions->all();

#

print_r($activesubs);

#

and thats the output that I just paste

candid mural
#

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?

grizzled lava
#

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'

candid mural
#

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

grizzled lava
#

oh thanks

#

I didnt get the autopagination

#

thing

#

so I run the autopagination and I used as a normal value?