#nstripe0_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/1283214736238055446
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nstripe0_api, 3 hours ago, 11 messages
hello! Is this an invoice for as a result of creating a new Subscription or the Subscription renewing for a new cycle?
Hi Alex
This is a one-off invoice to represent an upgrade on the subcription.
But would be applicable for the renewal payment flow as well, where we might have updated tax rates to apply to the invoice.
hmm, so i'm not certain this will work, but have you tried updating the generated invoice when it's still in draft mode? https://docs.stripe.com/api/invoices/update
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'm confident that updating the invoice after creation would work, but I guess I was just surprised that I couldn't do this at invoice creation time.
If you're telling me there's no way to do it at invoice creation, then I'll take the other approach.
if by invoice creation time you mean when you update the Subscription - this would apply to all subsequent invoices as well since you're making this change on the Subscription. To make one off changes only applicable to the invoice, you would do so to the invoice. When the invoice is created i.e. invoice.created event, it's in draft mode - this is when you can make one off changes to the invoice
This is being done as a one-off invoice to an existing subscription, so I'm issuing a Create Invoice call (https://docs.stripe.com/api/invoices/create).
maybe you can share a bit more on why you're creating a one-off invoice to an existing subscription? in most cases, the relevant invoice is already generated when you update the subscription
Sure, we haven't yet utilize Stripe's Invoicing for prorated upgrades.
So the upgrade proration calculation is being performed by our application. And I'm issuing a one-off invoice to represent the payment for the upgrade for the subscription.
i see, let me try out an idea i have to see if it works, gimme a while to get back to you
Sure, thanks
i think this is a bit of a hack, but how about applying a 0% default tax rate when creating the invoice?
Interesting idea, would a 0% tax rate show up on the invoice?