#pallsmenis_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/1366858506673586186
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Specifically I'm trying to determine if it is our system that deleted the invoice somehow
I'm not aware of anything that would do that on my side
Hello
Looking at the invoice, it looks like there were a couple requests that came in that deleted the invoice item first and then the invoice itself.
https://dashboard.stripe.com/logs/req_yv8wVXLEGHqPk4
https://dashboard.stripe.com/logs/req_lyPb8PJQrORGOI
These were made by the platform "Arly"
okay so it was us
so is this what you see, the invoice was created (its in draft), a payment attempt is made and failed, then its immediately deleted?
btw how did you see the deleted call? i did not see that in the logs
when I put the invoice ID in to the log search it comes up with nothing
this is all I see
I do not see a request to pay the invoice on this specific invoice.
what is the call that returned a 400
it was a POST to invoices, is that to change it from draft to open?
Can you share it's request ID? req_xxx
req_MvOMmLTDPNdb52
That seems like an invoice creation request
To finalize a specific invoice, you'd need to specify it's ID when making the API call - https://docs.stripe.com/api/invoices/finalize
okay, so the invoice was never created then
Correct
im confused because the other invoice creation calls don't have the same request body
vs this one that failed
Yeah your integration is likely mixing up API endpoints
well now im very confused, because this user was able to get all the way though our checkout process successfully without an invoice 🤯
but okay, I don't think there is anything else you can do for me then
thanks
wait
you posted some requests that deleted the invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
how was it deleted if it never existed
sorry it was this one https://dashboard.stripe.com/logs/req_lyPb8PJQrORGOI
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hi, taking over as my teammate needs to step away.
ok ty
so we've been trying to figure out what happened with this invoice, they said it failed to create via this request req_MvOMmLTDPNdb52
but in this request it is deleted req_lyPb8PJQrORGOI
Wait you keep sharing different request IDs and adding more to it. Let's step back
You created, https://dashboard.stripe.com/logs/req_FVR7fTbxjxFclO this invoice, in_1RHEEmGgCPlrhTbaIVqyg0rQ at
2025-04-24 01:06:00 UTC
Then, you deleted it, https://dashboard.stripe.com/logs/req_lyPb8PJQrORGOI at 2025-04-24 01:06:01 UTC
What did you expect to happen?
I would expect it to still exist. So what happened in this request? req_MvOMmLTDPNdb52
This is your failed request, https://dashboard.stripe.com/logs/req_MvOMmLTDPNdb52 so that invoice was not created.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
it returned a 400, the previous person said it was a failure to create
You got 400 so it did not create an invoice
Can you pause and look at the invoice creation, https://dashboard.stripe.com/logs/req_FVR7fTbxjxFclO request? That succeeded which created that invoice which you later deleted: https://dashboard.stripe.com/logs/req_lyPb8PJQrORGOI
okay I think I'm mixing up invoices
so in this one you just linked, the request body is different than the one that failed, is a default payment method not required when creating an invoice?
because the one that failed was due to the fact that the payment method didn't exist
It was for a 0 amount, you can test this in test mode using your test key.
On the failed request, pm_1RHEEjGgCPlrhTbaBA49p6SJ has not been attached to that customer yet as the status https://dashboard.stripe.com/logs/req_KzJmdnrdEVS9sk in in status: "requires_action",
so payment method isn't required in the invoice create call when its free
okay well I won't take any more of your time, I'm not sure what else to ask, ill do some more digging
You can test this end to end, and can reproduce this in test mode as well.
one last thing, why dont I see any delete events in the workbench?
these invoices had to have been deleted because they aren't in stripe anymore
in_1RHEEmGgCPlrhTbaIVqyg0rQ for instance
it was created in this request req_FVR7fTbxjxFclO, I see no delete events yet it doesnt exist in stripe
it wasn't deleted via API calls maybe?
That was deleted via the API: https://dashboard.stripe.com/logs/req_lyPb8PJQrORGOI and it looks like you use Arly Payments Plugin. If you filter it by 'Delete' method, do you see it?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
when I filter by delete I see nothing
Can you take off the rest of the filters from the UI please?
Can you remove the customer please?
Also, we do not work with Workbench and the Dashboard so we do not have the expertise here. Just trying to debug this with you. We can help with API/ Integration related issues
On my test, I see mine.
I see delete events without customer filter, so it just that those events aren't tied to the customer the way the POST and GET ones are?
I would expect to see them along with the others
Glad you see them now, I'm unsure on the reasoning
how would I find this delete event for this specific person?
I typically go to the Invoice page and find the request id
thats the thing I see no delete events/logs there either
but okay, don't worry about it
thanks for trying to help
Oh, you're right that is because the object is deleted. Sorry for the confusion