#pallsmenis_api

1 messages · Page 1 of 1 (latest)

jaunty tinselBOT
#

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

onyx prairie
#

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

dry lava
#

These were made by the platform "Arly"

onyx prairie
#

okay so it was us

dry lava
#

I assume that's your platform?

#

Yup

onyx prairie
#

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

dry lava
#

I do not see a request to pay the invoice on this specific invoice.

onyx prairie
#

what is the call that returned a 400

#

it was a POST to invoices, is that to change it from draft to open?

dry lava
#

Can you share it's request ID? req_xxx

onyx prairie
#

req_MvOMmLTDPNdb52

dry lava
#

That seems like an invoice creation request

onyx prairie
#

okay, so the invoice was never created then

dry lava
#

Correct

onyx prairie
#

im confused because the other invoice creation calls don't have the same request body

#

vs this one that failed

dry lava
#

Yeah your integration is likely mixing up API endpoints

onyx prairie
#

well now im very confused, because this user was able to get all the way though our checkout process successfully without an invoice 🤯

jaunty tinselBOT
onyx prairie
#

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

#

how was it deleted if it never existed

cosmic rivet
#

Hi, taking over as my teammate needs to step away.

onyx prairie
#

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

cosmic rivet
#

Wait you keep sharing different request IDs and adding more to it. Let's step back

#

What did you expect to happen?

onyx prairie
#

I would expect it to still exist. So what happened in this request? req_MvOMmLTDPNdb52

cosmic rivet
onyx prairie
#

it returned a 400, the previous person said it was a failure to create

cosmic rivet
#

You got 400 so it did not create an invoice

onyx prairie
#

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

cosmic rivet
#

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",

onyx prairie
#

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

cosmic rivet
#

You can test this end to end, and can reproduce this in test mode as well.

onyx prairie
#

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?

cosmic rivet
onyx prairie
#

when I filter by delete I see nothing

cosmic rivet
#

Can you take off the rest of the filters from the UI please?

onyx prairie
cosmic rivet
#

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.

onyx prairie
#

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

cosmic rivet
#

Glad you see them now, I'm unsure on the reasoning

onyx prairie
#

how would I find this delete event for this specific person?

cosmic rivet
#

I typically go to the Invoice page and find the request id

onyx prairie
#

thats the thing I see no delete events/logs there either

#

but okay, don't worry about it

#

thanks for trying to help

cosmic rivet
#

Oh, you're right that is because the object is deleted. Sorry for the confusion