#Yashish
1 messages · Page 1 of 1 (latest)
you'll need to listen for customer.subscription.deleted event and void all open invoices
how to void all open and failed invoice?
here but I want the user can not do any transaction for all failed transactions associated with that subscription.
subscription based
Voiding the invoices to prevent payments after Subscription cancellation is the only way to achieve that
What @graceful bane recommended is the right approach
but is there any way we can void all the invoice for the subscription through subscription id
There is not. You'd need to find all open Invoices for the Subscription via this API: https://stripe.com/docs/api/invoices/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.