#cavint9510
1 messages · Page 1 of 1 (latest)
Hi there, you mean you want to apply a discount to the new invoice?
yes
OK, then you should listen to invoice.created event, and apply a coupon on the new invoice (https://stripe.com/docs/api/invoices/update?lang=curl#update_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.
First,i want to show the order detail to user
so i must use upcoming invoice api to query invoice when plan change.
OK
i want to imitation customer portal.
but i find different operation show different price detail at customer portal.like this.
OK, then you can use the upcoming invoice API to show the preview to your customers