#yaroslav_25808
1 messages · Page 1 of 1 (latest)
It looks like the subscription cancel API endpoint does not have a parameter specifically for this. So it looks like you will need to make another API call to delete the invoice https://stripe.com/docs/api/invoices/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
unfortunately it declines request with message: "You can't delete invoices created by subscriptions."
Gotcha, testing something out and will get back to you
thanks
Still not finding a way to delete the invoice but it does look like the invoice will stay in draft indefinitely
ok, could you please check it? we would like to avoid charging if we resume payment collection for customer and draft invoice if the canceled subscription will be open again