#ilyeselb_unexpected

1 messages ¡ Page 1 of 1 (latest)

wispy voidBOT
#

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

errant gorgeBOT
#

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.

austere meteor
#

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?

warped pike
#

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

austere meteor
#

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

warped pike
#

thats why im asking why i have this error only with this customer

warped pike
#

?

#

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

wispy voidBOT
austere meteor
#

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

warped pike
#

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 ?

austere meteor
#

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

warped pike
#

ah yes

#

okay

#

i understand

#

i have invoice id for the invoices that didnt pull

#

the invoice item

#

if you want

austere meteor
#

Yes, please share the invoice ID

warped pike
#

in_1OyFyjGyOBDbEOMCLzcVRZvk

#

this one for exemple

austere meteor
#

Still looking!

warped pike
#

thanks

#

im here

austere meteor
#

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

warped pike
#

nice waw , you are amazing

#

thank you very much

austere meteor
#

Sure thing!

warped pike
#

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 ?

austere meteor
#

It looks like one of the first invoices that was created for this customer was in eur

warped pike
#

oh okay i need to find it then