#nikita-saboo_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/1417212589179404380
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
correction : When applying discount from the subscription the invoice ignores the discounts since the promo_codes has applies_to product not matching the prorated price's product id.
The documentation says otherwise
I see what you're trying to do.
how to get the discount applied in this case?
You mentioned products were archived. Which product are you referring to?
On the invoice we create after in_1S7gnDD0bv9uRYHwvY2kggee
the products associated with the prices are archived
and ofcourse since they are different products the promo_code is not applied
Gotcha, I'm trying to follow the flow here. Give me a sec.
Hello
Can you share an example of
We use this prices to create invoice with prorated prices. When applying discount from the subscription the invoice ignores the discounts since the promo_codes has applies_to product not matching the prorated price's promo_codes.
Like how exactly are you using the prorated prices? Do you create the new price object or something else?
No, we use the prices returned by the Stripe's stripe.Invoice.upcoming
if you have an example of that, that'd be useful to be on the same page.
ok so the invoice created in_1S7gnDD0bv9uRYHwvY2kggee with prorated prices price_1Pg6tUD0bv9uRYHwgG1yt4n0 and price_1RLUiOD0bv9uRYHw36SWLi2a and the discount is not applied
this is in the test mode
Ah you're creating an Invoice Item
protated proces were created using stripe.Invoice.upcoming . Let em search if there is a request_id
Ah you're creating an Invoice Item
Yes, sorry missed this
So price price_1Pg6tUD0bv9uRYHwgG1yt4n0 was created via this request. - https://dashboard.stripe.com/test/logs/req_DU3ifaKJapm1qk
Can you try passing discountable to true ?
https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-discountable
did that work?