#lightningspirit_api

1 messages ¡ Page 1 of 1 (latest)

ruby timberBOT
#

👋 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/1400400692916523148

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

acoustic musk
#

hi there!

#

looking into this

sullen loom
#

Can anyone help me solve this I have not verified everything why not

acoustic musk
#

so I'm a bit confused. is your question about this failed request, or something else?

dusty cipher
#

It's about this failing request, yes. The problem is not the issue about tax, the question is: why does Stripe chooses a price for this particular line item POST request, when we don't add any price_id in the request at all?

#

The issue about tax is just a colateral, a consequence of attaching a price that I didn't ask for

sullen loom
#

Can you please help me how to do it?

dusty cipher
#

@sullen loom is this to me, or are you in the wrong thread?

acoustic musk
#

why does Stripe chooses a price for this particular line item POST request, when we don't add any price_id in the request at all?
I see. I agree it's a bit confusing. but when you create a Invoice Item while passing an amount, Stripe will actually automatically create a Price for this. so the Price ID mentioned in the error message is the Price that was just created.

dusty cipher
#

Does it mean, for every request a new price will be created? What about the product? Why is it archived?

#

I agree, it's a bit confusing, maybe a note in the documentation would help understanding this behavior

acoustic musk
#

Does it mean, for every request a new price will be created? What about the product?
pretty much yes. but as you saw, they get automatically archived, so you won't see them in your Stripe Dashboard.