#joel-subscription-update
1 messages · Page 1 of 1 (latest)
No, that's not possible. You'd need to make an update request per subscription.
What are you trying to change for all of them?
Got it, thanks for sharing. Yea, that would need to be done individually per sub.
Damn ok
subs = stripe.Subscription.list(stripe_account='acct_xxxx')
for x in subs:
sub_id = x['id']
stripe.Subscription.modify(
sub_id,
application_fee_percent=1,
stripe_account='acct_xxxx'
)
@steep wind would this be the right way to do it?
Yes, though be aware of auto-paginating and rate limits as applicable, you may want to add some handling to rate limit those requests so you don't hit that
An example approach to this: https://www.youtube.com/watch?v=gx1xxGv2Ljs
In this edition of Stripe Developer Office Hours, follow along as Suz Hinton walks through how to handle batch processing and deal with rate limits.
Resources
Ok thanks, i'll check the video out