#_ravg
1 messages · Page 1 of 1 (latest)
It's a one-off invoice that is linked to a subscription
We're creating some new invoices to correct old ones
if it's linked to a subscription it wouldn't be a one-off invoice
oh I see what you mean
then you just need to specify from_invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if you're doing a revision
Would it be possible without using from_invoice? Because I already have a script that "duplicates" the invoice with the additional fix, the only thing missing is the period =/
Oh my bad 😦
You can’t revise invoices that are attached to subscriptions after finalization. For these types of invoices, the Edit invoice button is disabled.
the only other thing that I could think of is using https://stripe.com/docs/api/invoices/create#create_invoice-effective_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
other than that there's no way of passing "period" to an invoice
oh I see
I will try using field effective_at
Thanks for the help! 🙂
the effective_at could be set in the past but I'm not sure if you should do that
I mean based on your use-case
if you're giving a discount/revising an old invoice for a subscription the effective date of the invoice is when you finalize it and not when the first invoice was due
So it sounds like the only option is to use invoice_from...
I'll check invoice_from and see how easy it is to adjust my script
Thanks!
you might not be able to use it in subscriptions if the invoice is already finalized
as I mentioned
You can’t revise invoices that are attached to subscriptions after finalization. For these types of invoices, the Edit invoice button is disabled.
Oh :/
The invoices have been finalized and paid as well
yes so that's not applicable
why not just a negative line in the upcoming invoice?
or a positive one, depending on what you're trying to adjust
Some invoices from last year were missing the tax amount, and now we need to charge that amount. Some customers have multiple invoices (8 invoices in some cases), and we're creating one invoice for each old invoice to make it easier for customers to understand what they related to. And the only thing missing is the "period"
I think you can create one invoice with multiple line items and have a specific description for each line item explaining that this the tax for invoice x for the period y
Yeah I guess we'll need to change our approach for that. I'll talk to our finance dep. and check the possibilities.
Thanks once again!
sure thing, let me know if you need any more help