#tim_invoice-template
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/1304164088875581510
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I essentially don't want this to show up when we add to the subscription using proration, i want the net number not both:
Hi ๐ I'm not aware of a way to do that offhand, but will take a closer look at Invoice templates to see if they could be leveraged here.
Right now it looks like setting an Invoice Template for a Subscription is only available via the Stripe dashboard, and can't be done with our API.
If the template allows you to group items as you're hoping, I'd suggest trying to set that template on the Customer object level, which should impact subscription-related invoices as well as one-off invoices:
https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-rendering_options-template
Thanks Toby! There is no programatical way to do this, though, correct?
and if we did at the customer level, would it impact existing subscriptions for any new invoices?
There isn't a programmatic way to do it for specific Subscriptions, no. But you can make requests to update the Customer object's invoice_settings.rendering_options.template field from code.
And yes, that should impact all Invoices for the Customer once you update that value.
ah sweet! thank you! I'll go test it now
tim_invoice-template
Hey Toby - doesn't seem to work
I aded the invoice template, then charged on a subcription again, and still showed up
Pulling those things up. Can you help me understand what isn't working here, so I know what to focus on looking at? Is it the grouping of proration items?
Oh, I do see this limitation listed when taking a closer look at how to group invoice line items:
You can only apply CEL expressions to invoices created from the Dashboard.
https://docs.stripe.com/invoicing/group-line-items#:~:text=You can only apply CEL expressions to invoices created from the Dashboard
So I'm not certain the grouping behavior will work for Subscription-based invoices.
hmmm - i def need it on subscriptions.
any other ideas or approaches to get the effect? customers are just confused as this proration doesn't make sense for our business, the net does tho
No, not that comes to mind, unless you take the Subscription and proration logic to your side of the flow and create Invoice Items/Invoices directly with your desired details.
bummer - sounds good, thanks Toby!