#nova-astramentis_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/1372015091603738705
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey, some more follow-up. I see here that there is a discountable flag on each invoice item (https://docs.stripe.com/api/invoiceitems/update). Its imperative for my customer that upgrades keep the existing discount, is there a way to do this properly through stripe?
Hi, could you try https://docs.stripe.com/api/invoices/create_preview#create_create_preview-discounts on the previewing?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi! Thats what tipped us off to this problem
So this is a DTO projection of your response, but the gist is there. No discount applied on the new items added to the plan, even though there was a promo code applied
We are reapplying the coupon in this manner:
Um can you specify discounts on the item level: https://docs.stripe.com/api/invoices/create_preview#create_create_preview-invoice_items-discounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am trying now, please hold.
Okay. I managed to get the discounts working with prorations, but now I have an issue where its charging full price for the subscription items even though im trying to create prorations for an upgrade mid cycle