#tymm
1 messages · Page 1 of 1 (latest)
Can you share its response? We can't see the GET request's response ourself
this is the response/ event/ invoice object im getting https://pastebin.com/DL8ftyp6
hmmm, seems like it is returning some info from the existing subscription of this customer
is there a way to make stripe not do that?
there isn't, no (see the parameters at https://stripe.com/docs/api/invoices/upcoming).
is there an upcoming invoice equivalent for invoice with one off items?
i want to be able to create preview invoice so that customers can apply and remove coupon to their order without actually creating an invoice. and once they are happy, we create and finalize the invoice
there isn't an equivalent no, the endpoint was designed mainly for Subscription use cases
I suppose you could use the endpoint but with a 'dummy' customer instead, but then it might not be accurate because for example the Customer might have some existing balance from previous proration on one of their subscription, and that impacts one off invoices.
Or you could look at https://stripe.com/docs/quotes , but that's a really complicated product I don't really recommend using