#joel-subscription-update

1 messages · Page 1 of 1 (latest)

steep wind
#

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?

ivory mesa
#

application_fee_percent

#

Change the procentage for all subscriptions

steep wind
#

Got it, thanks for sharing. Yea, that would need to be done individually per sub.

ivory mesa
#

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?

steep wind
#

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

ivory mesa
#

Ok thanks, i'll check the video out