#kyle-heat-engineer_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/1230503044408410274
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
hey
Where do you want this description shown exactly? On the Invoice?
Let me get you a photo
In the invoice its just stating the product nickname but I want to display teh product nickname + price nickname
Yeah the Price nickname won't be shown. That's just not how it works -- you want to rely on the Product name for whatever will be shown as a description on the Invoice for the line item.
How do I display the different price names on the invoice?
The products have different price names based on different tierd of the product
example if a user pays for 50 CAD or 10 CAD I need it needs to show on the invoice
With theses prices are assocated to one product
If you want that then you would create different Products for those Prices
Sounds like a really large refactor and we are already live
Is there a way I can programatically set the description of an item on invoice?
Not of the line item, no.
Im kind of confused by what we ment to use the price objects for if they not ment to be different values for the products?
Haven't been able to test it yet but gpt is suggesting this
invoice_item = stripe.InvoiceItem.create(
customer='cus_XXXXXXXXXXXXXX', # Replace with your customer ID
price='price_XXXXXXXXXXXXXX', # Replace with your price ID
description='Subscription for Basic Plan' # Custom description including the nickname
)
Yeah you don't use Invoice Items with Subscriptions
Those are you used for one-time Invoices
Ok, could explain how I should use the price object?
I was under the impression that they are to represent a different price for a product
Yes that is correct. They just show the Price though, if something different is being purchased from the Customer then it would be a different Product. The point of the Price object is only to indicate the amount
Which is what I am doing with CAD 50 being 50 cad and CAD 10 being 10 cad however, its unclear from the descriptoion the quanilty of cad being purchased
its the same product just different amounts being givin in our saas
Yeah unfortunately that is a different Product then... otherwise you would use quantity to represent that
So the same product would be 10 CAD per quantity... one line item would have 1x10 and the other 5x10
That is how the API is designed
The issue is that with the prices its not linear. We apply discounts on the purchase of different prices
e.g. 10 cad could cost £10 with each cad being £1 but 100 cad could cost £90
Does stripe offer a invoicing service that is more custimisable?
Yeah I hear you, I'm just telling you how the API is designed. It doesn't really fit that use-case without using a coupon for that. Really the only path forward for exactly what you want is to refactor to use different Products if you are going to use Subscriptions. The Invoice line items descriptions for Subscriptions are dictated by the Product. There is no way around that.