#vien
1 messages · Page 1 of 1 (latest)
Hi 👋
Okay so the user has 3 Invocies in Draft status? Are they for different subscriptions?
in the same subscription
my purpose to send billing for my user to pay one time, instead of 3 times
So how does the user wind up with 3 draft Invoices? And why do they even see draft invoices, since they can only interact with finalized invoices?
Essentially, the user has not paid for the subscription since April, and their subscription status is unpaid. When they recently made a payment through the billing portal on July 21st using Stripe::BillingPortal::Session.create, only one invoice (for May 15th - June 15th) was paid. After investigating, it was discovered that two more invoices for June 15th - July 15th and July 15th - August 15th are still pending payment. According to Stripe support, both invoices need to be paid to activate the subscription. This situation applies to several customers.
To resolve this, we want to create a checkout process that informs the user about the total amount owed to reactivate their subscription. This will allow them to make a single payment for all outstanding invoices.
and Im looking for the solution through stripe api now
Hello! I'm taking over and catching up...
Draft Invoices won't show up in the Portal. If you want them to make a single payment that covers all three outstanding Invoices you should void the three existing Invoices and create a new fourth Invoice with line items for all outstanding charges.
but which API i can use to pull the data for outstanding charge?
and do we have api to void all the invoice?
You can use the API to look at all of the draft Invoices and ther line items and create a single new Invoice based on that information. And, actually I misspoke. Draft Invoices can't be voided, but you can delete them: https://stripe.com/docs/api/invoices/delete