#prerak-theCirqle
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
You can create Invoice items with just an amount: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-amount
If you want more details, you can use price_data: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-price_data
You can still use an existing product for price_data
Okay, inline price does make sense. But it is still tied to one product. So, if I create 3 invoice items with different amounts, in the invoice I will see
- ProductName amount1
- ProductName amount2
- ProductName amount3
But what I want is something like:
ProductName:
- PriceItem1 amount1
- PriceItem2 amount2
- PriceItem3 amount3
I am not sure I'm following.
If you give Product a generic name, you can put all the useful info in the price_data
Or do you want different sections for different products?
As the name property only exists on a product, I want to add different sections for different products.
Can this be inline/one time item though? Similar to this option in the dashboard.
So the actual product does not get created in the dashboard.
Sorry, I meant the description on the InvoiceItem: https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-description
Got it, so creating an invoice item with customerId, amount and description should do the trick.
I will try to implement it and see how it goes.
One more question, do you guys have a public Postman collection to test the API endpoints?
๐ taking over for my colleague. Let me catch up.
yes
Awesome, thanks for this and all the other help ๐