Cancel subscription on connected account

63 views
Skip to first unread message

Konner

unread,
Oct 4, 2019, 12:17:13 PM10/4/19
to api-d...@lists.stripe.com
Hello,

how can i cancel subscription in a connected account, i know how to cancel on the platform,
but didn't find anything to cancel on the connected account

Fred Alger

unread,
Oct 4, 2019, 12:27:12 PM10/4/19
to Stripe API Discussion
Hi Konner,

Great question! In order to cancel the subscription on the connected account, you'll need to pass the Stripe-Account header when making the request:


As a complete example in Ruby:

require 'stripe'
Stripe.api_key = 'sk_test_2QU8LhXVI9YA4wgabTJt6tWt'

Stripe::Subscription.delete('sub_9JI57aqO8kNkSO', {stripe_account: 'acct_1234xxx'})


acct_1234xxx in the above example is the ID of the account where the subscription exists. Hope that clears things up!

- Fred.


--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Konner

unread,
Oct 4, 2019, 4:11:15 PM10/4/19
to api-d...@lists.stripe.com
That work perfectly.

thank you !!
Reply all
Reply to author
Forward
0 new messages