#nikita-saboo_api

1 messages ¡ Page 1 of 1 (latest)

static shardBOT
#

👋 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.

brazen forge
#

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

digital mural
#

I see what you're trying to do.

brazen forge
#

how to get the discount applied in this case?

digital mural
#

You mentioned products were archived. Which product are you referring to?

brazen forge
#

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

digital mural
#

Gotcha, I'm trying to follow the flow here. Give me a sec.

static shardBOT
autumn pelican
#

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?

brazen forge
#

No, we use the prices returned by the Stripe's stripe.Invoice.upcoming

autumn pelican
#

if you have an example of that, that'd be useful to be on the same page.

brazen forge
#

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

autumn pelican
#

Ah you're creating an Invoice Item

brazen forge
#

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

autumn pelican
brazen forge
#

yes

#

let me try

#

give me a min

autumn pelican
#

did that work?

static shardBOT
static shardBOT