#jkt - multiple invoices
1 messages ยท Page 1 of 1 (latest)
Hi ๐
You would need to create the invoice items and invoice from one of the vendors first, and then create the second set afterwards.
There isn't a way to do this in a single API call
Hi. thank you for your response. I tried to create the invoices from different API calls but it seems that stripe combining those invoices and making it as a single transaction.
The 2nd API call returns an exception > Nothing to invoice for customer;
To be clear, you must first create InvoiceItems that represent the items the customer is going to purchase for a specific vendor, then create the invoice for that customer.
You can adjust this by changing the pending_inoice_items_behavior if you want to design your process differently: https://stripe.com/docs/api/invoices/create#create_invoice-pending_invoice_items_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks. I'll check it out.
Feel free to ask if you have any further questions. It's why we're here