#mymodian_code

1 messages ¡ Page 1 of 1 (latest)

echo mantleBOT
#

👋 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/1262731126200471585

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

obtuse pivotBOT
#

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.

woven willow
#

Oh, you're passing status: 'all'. Can you share the req_xxx?

tiny rivet
#

the first query is success, but the second query with StartingAfter returns empty.

#

is the StartingAfter field wrong?

woven willow
#

If you can share the req_xxx IDs of the GET /v1/subscription requests I can check

tiny rivet
#

how can i get the request id without login to the dashboard?

woven willow
#

It'll be in the headers of the request response

#

Headers[Original-Request]

tiny rivet
#

"req_DF1koEmSv5oKU4" you can help check this request

woven willow
#

Do you have the ID for the first request?

tiny rivet
#

i didn't specify the request id.

#

"req_8kfAtJ7tyzMZ3E" you can see this too.

woven willow
#

That's a request with the same parameters as the other. I need to see the initial request in your pagination (without starting_after) and the JSON that is returned

tiny rivet
#

"req_SB4eKnfsG4zaQJ" here's the 1st request

hushed cove
#

hi! I'm taking over this thread.

#

give me a few minutes to catchup.

tiny rivet
#

OK

hushed cove
#

the last subscription returned by this request (req_SB4eKnfsG4zaQJ) is sub_1PXROZ06MwLWnujJZRan62kK. so could you try making a new request with starting_after: sub_1PXROZ06MwLWnujJZRan62kK and see if it works?

tiny rivet
#

ok

#

sub_1PXROZ06MwLWnujJZRan62kK
why i didn't find this subscription id in the 1st page?

hushed cove
#

can you share the JSON response of the original request req_SB4eKnfsG4zaQJ? because it should be in there.

tiny rivet
#

which field will contain this?

hushed cove
#

when you list subscriptions, you get back an array with multiple subscriptions. you would take the ID of the last subscription of the array, and use that for the starting_after parameter.

tiny rivet
hushed cove
tiny rivet
#

yes, i use the last id of the array, but it just return empty

hushed cove
tiny rivet
#

i didn't see the subscription id in the 1st page, even it work, it still can't tell me why

#

do you have a sample code?

hushed cove
#

let's move step by step please. okay, so my suggestions worked, that's good! now can you answer my other question? #1262731126200471585 message

tiny rivet
#

i can't see that now, i am not logged in the dashboard

#

can you see it?

hushed cove
#

Stripe doesn't store the API response for get requests. so you'll need to make a new request, and copy/past the JSON returned here.

tiny rivet
#

if single is false, can't set limit?

hushed cove
#

what do you mean by "if single is false"?

tiny rivet
#

the ListParams field "single"

hushed cove
echo mantleBOT
tiny rivet
#

in go, here's a common parameters: ListParams

#

because Auto-pagination is default enable, so after the 1st list, there's no data more.

earnest estuary
#

That param sounds like it is meant to prevent auto pagination and just request a single page, but i'm not deeply familiar with it

#

Can we take a step back and understand where you're seeing unexpected behaviour?

#

My colleagues have shared that you need to provide the last subscription ID of the first List results with starting_after to manually page. When you do that, does it return the second page like you expect?