#Rogers-multiple-invoice-times
1 messages · Page 1 of 1 (latest)
Yes. You can have multiple Invoice Items per Invoice
Are you running into an error?
No i am not but i am trying to do it how can i do it ?
i am going to explain the current flow as well,
first of all i am getting the products and prices of the products based of he price id i am creating an invoice.Item , then invoice, after that i am finilizing the invoice
invoice_item = stripe.InvoiceItem.create(
stripe_account=account.id,
quantity=1,
customer=customer.id,
price=product_price_data.id, <------ { Do i have to pass a list of multple price id's? }
)
What are you trying to do? Do you just want each invoice to have multiple items?
i just want to add multiple items in to the invoice if you could share the link with me that would help
sorry for late replay i was away for a while
You create an Invoice Item like this: https://stripe.com/docs/api/invoiceitems/create
Just make sure you and the Invoice's ID to the invoice field in order for it to get added to the relevant Invoice as a line_item
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.