#klappyz_invoice-items-quantity

1 messages ยท Page 1 of 1 (latest)

novel flareBOT
#

๐Ÿ‘‹ 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/1390436041919299694

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

agile palm
#

Hi there!

#

sorry for the wait

digital zinc
#

no worries

agile palm
#

when you say " I only see 50 on the invoice", do you mean the pdf?

digital zinc
#

Couple places. We verified the in the logs where we can see the http post request, the body there only shows the 50 that made it onto the invoice. We also only see 50 line items on the invoice. Wondering how to look deeper into this issue. Going to try curl manually in prod but requires more setup and access developers don't have so was hoping for some documentation that gives us more concrete answers as to what happened

agile palm
#

also do you have the request where you hit the 400?

digital zinc
#

one second, let me check

#

req_opT093tYLAiy3y

agile palm
#

thank you!

#

it seems like that maybe isn't a valid request id - is there a chance you clipped off a character or something like that? Otherwise, what is the account id for the account that that request exists on? You can get the account id in the dashboard at https://dashboard.stripe.com/settings/account

digital zinc
#

oh maybe, req_opTO93tYLAiy3y

#

it was a capital O not a 0, sorry

agile palm
#

okay the main difference I see in these two requests, req_opTO93tYLAiy3y and req_uoqKFCyTNyt6j1 are that in the request body in req_opTO93tYLAiy3y there are 51 invoice items (keys 0 -> 51) and while in req_uoqKFCyTNyt6j1 there are exactly 50 (keys 0-49)

digital zinc
#

Yes, we should have submitted 54 items in the one that only shows 50. We are wondering if that log in the dashboard is accurate or if it is truncated.

agile palm
#

I don't think so - it looks like 50 items are what we received in your API request on req_uoqKFCyTNyt6j1. You're using the exact same SDK version & api version on both requests

digital zinc
#

okay, thanks for checking. Maybe it is a bug on our side. So then if we are to submit over 50 items we should be receiving the same 400 error in production right? We are putting together a test right now to verify just taking time to get api keys and stuff together for a dev test

agile palm
#

Does the total on req_uoqKFCyTNyt6j1 that Stripe comes up with match or differ from your total for the 54 items you intended to send?

digital zinc
#

the total in the response is different than from what we intended to send

agile palm
#

Which makes sense

#

I'd be worried if the total was right but the number of items was wrong ๐Ÿ˜„

digital zinc
#

true, than we would definitely have a problem haha

#

Cool, well let me run this test locally to see if I can replicate it against the prod account using curl directly to at least rule out some options. Will update when I have results from that. Might take some time

agile palm
#

Sure thing ๐Ÿ‘

#

If it takes a long time we may close the thread for inactivity, but you can always just open a new thread and we'll have a reference to the previous one that whoever you're talking to will be able to reference

digital zinc
#

sounds good.

novel flareBOT
digital zinc
#

we were unable to reproduce on our side. Did end up getting a 400 when testing with curl so something else must be wrong on our side. Thanks for the time. Can close this.

proud furnace
#

Hi there, I took over for my colleague who had to step away. Sorry to hear that you couldn't reproduce it. I will close this thread as you asked. Feel free to reach out anytime when you need assistance again. We will also have reference to this thread then.