#jefskoa_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1440079549063757976
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello, can you pls be more specific?
1/ I want to understand what you're trying to do, as what you stated isn't clear to me
2/ can you share clear request IDs for what you're seeing, vs what you want to happen?
that will help me get oriented
Sure, here is my API request:
https://api.stripe.com/v1/events?type=reporting.report_run.succeeded&type=payout.paid&created[gte]=1763317913&created[lte]=1763404313
But I'm only getting the last event type, in this case, payout.paid.
Hi there ๐ jumping in as my teammate needs to step away soon. I don't think that's possible, but let me double check.
Hm, I was mistaken, that should be supported. Are you getting an error, or just not the results you're expecting?
Oh, you want types not type, I think
https://docs.stripe.com/api/events/list#list_events-types
It does not error. It only gives me the last event though. If I switch the type around ask have reporting.report_run.suceeded last, then I get those.
Ah, I thought types was only avail in v2
I think that'll work, but let me know if it doesn't, happy to keep looking.
You got an example of that being passed as &types= ?
Yes, I do need to build the URL call programmatically, so syntax will be important as I believe there are diff options.
So, what you imply above is ...v1/events/types[]= but then do you know if it is a comma separated string or special encoding required?
This is the example I did find for Stripe, I think: ?types[]=one.one&types[]=two.two
aha! That's it. You got me going and it works!
I'm pretty sure you pass types[]= with the type for each Event type you want to filter for. So two event types woul dhave two types[] params. I use the expand syntax as an example of passing arrays for cURL:
https://docs.stripe.com/api/expanding_objects
Woohoo, glad to hear that did the trick!
Super fast help and deeply appreciated!
Anytime, happy to help!