#Lair Overseer
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) where you faced the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yee
req_q07GdEVCDHAh9V @median crystal
This is expected as explained in https://stripe.com/docs/api/invoices/delete:
Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be voided.
it used to work?
Since your invoice is finalised, you can only void it
Can you share the request ID that it used to work?
await stripe.Invoice.void_invoice(invoice_id)
so this?
idk i dont hjave it
that was my old code and i never got this issue before
but maube i didnt test it
If you use Node, then it will be:
const invoice = await stripe.invoices.voidInvoice(
'in_xxx'
);
Reference: https://stripe.com/docs/api/invoices/void?lang=node
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.