#mecha-chocobo_invoice-item-currency
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/1347242281136291951
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
Hi
You need to specify pending_invoice_items_behavior: 'include' here (https://docs.stripe.com/api/invoices/create#create_invoice-pending_invoice_items_behavior) otherwise the Invoice Item won't be picked up.
As I mentioned, we use this process to generate every other invoice we build in the system, why is this one different?
If it's not picking up the placeholder invoice item, then I would expect the invoice to not expect an invoice item to already exist, since the default behavior is exclude
Ah yes sorry, the reason is you are on an old API version here
This behavior changed starting with the 2022-08-01 version: https://docs.stripe.com/upgrades#2022-08-01
ok, I get there was an API update 3 years ago, but I'm still unclear as to why this is only a problem for this one customer right now.
I'm looking through the dashboard, but the only error I see is the "Nothing to invoice" message
Do you have a different example that didn't run into that error?
Hmm also it looks like the unit amount of those Invoice Items is 0, is that expected here?
req_GoN9irFIHei4BH
that's for their previous invoice
the unit amount is 0 for the placeholder, yeah
Okay yeah that does look the same, give me a few minutes to investigate.
The customer is changing their billed currency from USD to AUD, though that's the only difference I am aware of
Can you try again and specify AUD explicitly in the Invoice creation request via currency: https://docs.stripe.com/api/invoices/create#create_invoice-currency ?
Pretty sure Invoices only pick up items that match the Customer's default currency if you don't specify that
I see. I'll try that, though it'll be a while
running some test charges, that appears to resolve the issue. Thanks!