#srujan
1 messages · Page 1 of 1 (latest)
If the invoice is finalised and in open status, payment can still be made even if the subscription is cancelled.
can we restrict this behaviour
Do you mean you wish to void the unpaid invoices when a subscription is cancelled?
yes
You may find the invoices of a subscription with status: open and subscription: {subscription_id} using List Invoices API: https://stripe.com/docs/api/invoices/list
Then mark the invoice as uncollectible or void for each open invoice:
- Uncollectible: https://stripe.com/docs/api/invoices/mark_uncollectible
- Void: https://stripe.com/docs/api/invoices/void
Invoice statuses: https://stripe.com/docs/invoicing/overview#invoice-statuses