#axel_listsubs-by-product
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252294272926089328
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi ๐
We do include price as a filter option for the Subscription List API: https://docs.stripe.com/api/subscriptions/list#list_subscriptions-price
You could provide the ID of the Price object associated with the Product you are interested to only receive Subscriptions that include that Price in the line items.
hi ๐
Yeah, but it's limited to one price only right ?
My product has different prices due to price updates along the years
You are correct, it is limited to one price. In that case you would need to make multiple API calls, one for each price.
Okay, let's do that then. Regarding the API, what is the best in terms of pagination on your side (i.e performance) ?
Multiple small queries or set at the max limit everytime (100 if I recall correctly) ?
Honestly it would depend on your code. Smaller payloads return faster so if you wanted to kick off some longer running process on your end then you might consider a lower limit. But if you want to collect all records and do bulk processing, then using the max limit is advised.