#lightningspirit_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/1400400692916523148
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can anyone help me solve this I have not verified everything why not
looking the request you shared (https://dashboard.stripe.com/test/logs/req_NGtga1Idkzz9NF), I see an error about tax. but your question doesn't mention tax at all.
so I'm a bit confused. is your question about this failed request, or something else?
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
Can you please help me how to do it?
@sullen loom is this to me, or are you in the wrong thread?
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 anamount, 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.
so you would need to set a tax_behavior in your API request to fix that error: https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-tax_behavior
Ok, so this is the price that was created, correct? https://dashboard.stripe.com/test/prices/price_1RqWngEqDIZfA797mslUywuC
It was attached to an archived product https://dashboard.stripe.com/test/products/prod_SlnQmyZtmWUXd0
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
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.