#falsesoap-upcoming-invoice
1 messages · Page 1 of 1 (latest)
@prisma yoke Can you share exactly what you see/do and then I can help understand whether it's a bug or not
example: I call the endpoint with the discounts array containing a coupon that applies 50% of to everything
for subscriptions that are metered monthly it works as expected
Did you read https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-discounts
[...] To preview the upcoming invoice for a subscription that hasn’t been created, use coupon instead.
does that explain why it works for monthly?
I have been using that endpoint without issue for monthly subs
when I change the price id to a yearly price id it will return the discount in the invoice obj but the total will not reflect the price change
for your reference the yearly subscriptions are also pro-rated so they might be 1/2 a year or 2/3 a year etc
Can I ask you to be extremely crisp about the issue? Sorry it's just really hard to parse, what does the proration have to do with it? Do you do proration with monthly too? I don't follow what you are describing unfortunately
sorry, I just tried the coupon parameter now and it seems to be working
I think the real issue is the discounts array is working for monthly price ids, and not for yearly price ids
I'm still curious how discounts works on monthly prices, it should not
lol
so I still think there's something else that we're misunderstanding
that is exactly why I was confused
If you're willing I'd love to debug this (though I'm also deep in a strange ACSS issue for someone else so will be slow)