#ben-clum_api

1 messages ยท Page 1 of 1 (latest)

analog kettleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300446500547072004

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

brave crest
#

I ran out of characters, but to summarize:

how do i get a discount to apply to a prorated invoice with the upcoming_invoice endpoint?

zenith badge
brave crest
zenith badge
brave crest
#

the invoice was created via a subscription. I'm pretty sure the invoice was created by Stripe as a result of the creating of the subscription

zenith badge
#

It wasn't. It was created by the request that you made that I linked to above. It is associated with a Subscription, but it wasn't created automatically by our Subscription logic.

brave crest
#

oh you're right, let me check

#

okay I see we were manually creating the invoice so it wasn't considered a "proration" at that point.

I'm confused though why you can't apply a discount to a proration invoice item. that's pretty wild.

zenith badge
#

Because the proration is based on what the customer already paid. So the discounts on proration items are inherited from the discounts applied when the customer initially paid the amount being prorated in the update.

brave crest
#

sure that makes sense for existing customers with existing payments/subscriptions, but it's a brand new subscription. they've never been charged for anything before.