#osamayawar_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220615015930003466
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
The invoice created in https://dashboard.stripe.com/logs/req_3Fpu88SPwrkEUJ was an one-time invoice.
For invoiced from subscription, you will need to create a subscription first and Stripe will create the invoices automatically: https://docs.stripe.com/billing/subscriptions/build-subscriptions
Right but lets say we manually created an invoice for an existing customer against the assigned subscription and never charged a customer for it, how do i delete it then?
Have you tried to delete such kind of invoice with https://docs.stripe.com/api/invoices/delete ? Did you face any error?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I did not through API but rather on dashboard, i do not see an option for deleting draft invoice that are connected to recurring subscriptions
Another case i just saw where auto collection is turned off for an invoice which was created by the subscriotion and was never paid. It has been almost months that the invoice is still in DRAFT status
Can you share example invoice IDs for both scenarios?
where do i create such example invoices?
@celest raft : Just to be clear you want Invoice ID for the invoices in question ?>
Yes! We will need the invoice ID in questions to investigate the issue
Ok let me get you one
in_1Mw9hpCDh0iRDKQBbcbW77rZ
Another example: in_1KoXKgCDh0iRDKQBNQ1igERd
What is your expectation on these invoices? With auto_advance being turned off, the invoice will not be finalised and available for payments. They look fine to me
Right but now in order to get rid of such invoices, what should we do?
What do you mean by get rid?
i mean we have alot of similar invoices that we want to delete
Deleting them
I see! An invoice created from subscription can't be deleted. You can either:
- Leave them in
draftstatus as long as auto advance is set to false; OR - Finalise (https://docs.stripe.com/api/invoices/finalize) and void (https://docs.stripe.com/invoicing/overview#void) the invoice
Perfect, thank you @celest raft. We'll take a look