#meisei81_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247760433415192606
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hello! can you explain why you need to create a product with price less than 0?
We want to implement a zero amount invoice. The invoice can contain several products with different price.
You can only add a negative invoice item, but can't create a Price object with amount < 0
When you create the Invoice Item, simply specify the negative amount
Got it.
I'll try this
I want to know that how to add customized text in an invoice. Is it possible?
Yeah there are custom fields here https://docs.stripe.com/invoicing/customize#custom-fields
Can I show custom fields below the total amount line?
I'm curious that why the negative amount display in two lines?
Hmm that could be the width of the PDF, but it is not incorrect
Sorry don't think it's possible to move the custom fields positions
You can look at default footer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is it possible to specify the width of PDF?
I just found the fields rendering.pdf.page_size with enum a4, letter, or auto
No more parameters
Yeah that's all. We explain here https://docs.stripe.com/api/invoices/update#update_invoice-rendering-pdf
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.