#oboxodo-coupon-invoice
1 messages · Page 1 of 1 (latest)
Well... I'm creating an InvoiceItem first, and then creating an Invoice. It's "upcoming" in the sense that it's the invoice I'm creating in the next secont 🙂
not like next month
basically... I need to sell one product. For that, I create the InvoiceItem, and then the Invoice. At this point the Invoice collects any previously created InvoiceItem(s). All that works. But I now want to be able to apply a coupon discount o nthat invoice.
You can set this within the discounts parameter. Eg: discounts[0][coupon]=coupon123
https://stripe.com/docs/api/invoices/create#create_invoice-discounts-coupon
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.