#ilyeselb_unexpected
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/1221935776967819385
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ilyeselb_unexpected, 8 hours ago, 27 messages
- ilyeselb_unexpected, 12 hours ago, 18 messages
Hi there! I don't quite follow your question. If you're referencing a guide/doc, could you link it here and let me know during which step you're blocked/stuck?
no its an uunexpected behaviour
for only one user this error is happening
while creating a oneTime invoice
the invoice is empty with 0 dollar
but when you check the logs it create an invoice item then the invoice then it finlize it
cus_PURdoUHZuPTond
this is the customer id
Hm, I see you made some follow up requests to create an invoice item > create an invoice with pending_invoice_items_behavior > finalize the invoice with a different customer (cus_PnrTYiIZKNCbby) and these requests worked as expected
If you create a new invoice for cus_PURdoUHZuPTond and use pending_invoice_items_behavior, does the newly-created invoice pull in the pending invoice items?
Also note that the requests you're making are not in test mode, they're in live mode. Not sure if that was your intent
thats why im asking why i have this error only with this customer
what do you mean by this
?
you mean its creating with a customer and finlizing it with another customer?
?
cus_PnrTYiIZKNCbby who is this user ?
my flow is like that creating a pending invoice item of customer and then create an invoice and finilize it
No, sorry. I don't mean finalizing it with another customer. I was looking through your logs and noticed you were able to create invoice items and pull those invoice items into an invoice for a different customer altogether
thats what is causing the issue ?
but sorry normaly when its pending , its pending and related to one customer ?
when we create an invoice for that customer it pull the pending invoice item
why another customer is pulling them then ?
No, I think I confused you. When I was looking through your logs, I wanted to find other examples of requests you were making. The reason I found that other customer is because I noticed you were making similar calls for this customer but that invoice items for this customer were being pulled into the invoice as expected
ah yes
okay
i understand
i have invoice id for the invoices that didnt pull
the invoice item
if you want
Yes, please share the invoice ID
Still looking!
Okay, had to get an assist from some teammates but we figured it out!
The customer in question has a default currency of eur. This means that, if you create an invoice for them without specifying a currency, that invoice will be created in their default currency (eur). The pending invoice items are all in usd so these invoice items are not pulled into the invoice
If your goal is to pull in the usd items into the invoice, you will need to pass currency: usd when creating the Invoice: https://docs.stripe.com/invoicing/multi-currency-customers#create-invoice-code
Sure thing!
if i update customer currency it will work right ?
and last question , is when i create a customer by api , by default normally its usd ?
why this user had eur ?
I recommend referencing this: https://support.stripe.com/questions/set-or-change-currency-for-an-invoice-or-customer-in-stripe-billing
and this for when a customer default currency is set: https://support.stripe.com/questions/setting-a-customers-default-currency
It looks like one of the first invoices that was created for this customer was in eur
oh okay i need to find it then
thank you for this