#kryptopaul
1 messages · Page 1 of 1 (latest)
Hi 👋 there isn't a way to get this data with Stripe JS, as it will require a secret key, our Node library would be the JS-based approach for that.
If you want to list all Subscriptions that are subscribed to a specific Price, then you can pass the ID of that Price as a filter while making the list request:
https://stripe.com/docs/api/subscriptions/list#list_subscriptions-price
that will reduce the results to only Subscriptions using that Price so you don't have to do that filtering.
You should be prepared to handle more than 100 Subscriptions if there is any possibility your flow may create that many. If so, you will need to either build pagination functionality, or incorporate our prebuilt pagination functionality:
https://stripe.com/docs/api/pagination/auto
Thank you!