简体   繁体   English

如何取消 Stripe 计划中的所有订阅?

[英]How to cancel All subscriptions on a plan in Stripe?

I read on Stripe docs:我阅读了 Stripe 文档:

Deleting a plan does not affect any existing subscribers of that plan, but new customers cannot be subscribed to it删除计划不会影响该计划的任何现有订阅者,但无法订阅新客户

I want to delete a plan and Cancel all subscriptions on it on Stripe.我想删除一个计划并取消 Stripe 上的所有订阅。 Is there anyway do it?反正有做吗?

You can use the List Subscriptions API and pass the plan parameter to find all subscriptions on that plan.您可以使用 List Subscriptions API并传递plan 参数来查找该计划中的所有订阅。 For each one, you can then call the Cancel Subscription API .对于每一个,您都可以调用 Cancel Subscription API

There is no call or automated way to cancel all those subscriptions and you need to write a script to cancel them sequentially in the API.没有调用或自动取消所有这些订阅的方法,您需要编写脚本在 API 中按顺序取消它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM