#jacob_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/1240040233093959691
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
~~You can use list all disputes API and increase the limit to 100 or use timestamps
https://docs.stripe.com/api/issuing/disputes/list ~~
I should mention, I am currently using charge.metadata.restaurant_id to filter. Ideally, I could filter using a query param
Yes, even bumping the limit to 100 would still take about 60 seconds to get just the last 1.5 months of disputes for a client.
@hallow fable Is it not possible to filter the results at all?
filtering by what parameters exactly?
I'm not sure I fully understand the question. Specifically the part about what field you want to use to filter the disputes?
@hallow fable I would like to filter disputes by charge.metadata.restaurant_id
Ideally, something similar to /v1/disputes?limit=100&expand[]=data.charge&data.charge.metadata.restaurant_id=650c9c43d73592bc0e0bd537
~~I think the only way it works is,
1/ Search for the charges using metadata in Search Charges API
https://docs.stripe.com/api/charges/search
2/ Iterate on the list and use the charge ID to find the dispute
https://docs.stripe.com/api/disputes/list ~~
Ah actually