#ian-goldberg_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/1220439554755006617
đ 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.
- ian-goldberg_api, 21 hours ago, 12 messages
YOu can create one-off line items for Subscription invoices as well, but yes, generally there are a number of things that are one-time Invoice only because of the added complexity that Subscriptions brings in
I really need to add one-off line items to our subscriptions that include a specified date, and dynamic product description.
It seems like I can easily do this on one-time invoices, but is there any way to replicate this type of functionality on a subscription invoice?
If you want to do this on Subscription creation you can use the add_invoice_items parameter (https://docs.stripe.com/api/subscriptions/create#create_subscription-add_invoice_items)
But I cant do something like this on a subscription
or really something like...
The "Pre-Sold Membership" product has many prices, and we want a dynamic description each time it shows up on an invoice. For example...
Pre-Sold Membership
price = $1200
Description = 123 Main Street
Dates Mar 21 2024 - March 21 2025
Pre-Sold Membership
price = $2200
Description = 234 Second Street
Dates Mar 21 2024 - March 21 2025
we want or need this data for reconciliation purposes.
Yeah the problem is that add_invoice_items doesn't support the custom period like you want.
This is something you definitely want on subscription creation, right?
Yes because we only want to bill the customer once per month
and we have other items on the subscription invoice that are prorated
We provide software + service, so some things are subscription like, and others are more like one-off. But sending multiple invoices per month is tough on the customer.
If it's not subscription creation you can create the invoice item and set subscription (https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-subscription) and I believe they'd automatically get pulled in to the next subscription invoice
The problem is that it doesn't work nicely for subscription creation
Hmm can you explain this a bit more? We don't need those line items on subscription creation... The subscription is already created and every month we need to periodically add a line item if they use a service.
and this line item needs a period set, and need a description so that it can be reconciled.
When Subscription invoices are created, they should automatically pull in any invoice items that have subscription set to the specific subscription ID. If you were creating Invoice Items through the Invoice Items API (https://docs.stripe.com/api/invoiceitems) you could set period, description, etc and as long as you also set subscription they should get added to your invoice
I'd suggest trying it out in test mode to see how it works