#ben-clum_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- ben-clum_api, 4 days ago, 7 messages
- ben_tax-pricing, 5 days ago, 6 messages
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?
Hi ๐ you can't. Discounts can't be applied to prorations:
https://docs.stripe.com/billing/subscriptions/prorations#prorations-and-discounts
but when I create the actual invoice, it does apply: https://dashboard.stripe.com/test/invoices/in_0QErz0250JCmBXjUIULzOvW3
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you help me understand what you did for that Invoice? I don't see a coupon being applied in the creation request?
https://dashboard.stripe.com/test/logs/req_6JAQeWOAyT2COh
I also don't see a proration item in that Invoice.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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.
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.
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.
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.