#isurika_api

1 messages ยท Page 1 of 1 (latest)

marsh wyvernBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1259900423523799051

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

pale musk
#

Do you have an ID for the refund that I can look at?

lusty laurel
#

yes

pale musk
#

Yeah, so the refund should have been a success. There's not going to be a charge.refunded event for these, since there's no Charge involved, which means that customer_cash_balance_transaction.created is all you get

lusty laurel
#

Alright
So what happens if the refund failed ?

#

"type": "return_initiated". means the refund is success
So any other type that will recive on failure ?

pale musk
#

No. It's just that event.

lusty laurel
#

Do you have idea how we can identify failure on these kind of refunds ?

pale musk
#

Let me check with a colleague

lusty laurel
#

Sure
Thank you.
And other thing is this customer_cash_balance_transaction.created does not have refund Id included also.
Is there a way that I can retrieve the corresponding refund Id for the cash balance refund that I have done?

pale musk
#

No Refund object is created, so there wouldn't be one as far as I can tell.

lusty laurel
#

Ok that means this flow does not behave as a refund

lusty laurel
#

Let me know if you get update from your colleague regarding failures

pale musk
#

Will do. We're a bit puzzled about this to be honest.

lusty laurel
#

I am currently working on API migration from credit transfer source to bank transfers.
So It will be great if you can check on this and get back to me

pale musk
#

Okay, so we're moving this over to the product eng team to look into. As far as we can tell, your customer will get several emails to enter their bank account details. So if they enter incorrect bank info, then we'll keep prompting them to reenter info until it's correct, but it doesn't seem like we give you any visibility into that process.

Like, no webhook events when the refund fails or when we prompt for bank account details.

#

So that being said, if you want updates about how we're doing, can you write into support and mention that we spoke here? From there, you can be updated as the conversation keeps rolling with our product team.

https://support.stripe.com/contact/email

#

Also, please DM me the email you used so I can attach your support thread

lusty laurel
#

Alright I will start support thread

#

Thank you

pale musk
#

Just a quick update, so it looks like we only create refund.created events for cash balance refunds when they're initiated from the API. If you create them from the Dashboard, there will be no webhook event to indicated that a Refund was created.

#

Other Refund events would come through when the customer added bank details too (e.g. refund.updated)

lusty laurel
#

But the customer I shared created using API

pale musk
#

Ah, fair point. Ugh.

#

You did get refund.created

marsh wyvernBOT
lusty laurel
#

Unfortunately there is no such event

#

Is it correct event ?

#

Ah yes I can see it when I query using workBench

#

I am wandering why it doesnt list in the dashboard events

molten mantle
#

Hey @lusty laurel apologies I missed this for a bit. Where exactly in the dashboard is this event not showing up?

lusty laurel
#

Hello

#

No worries

#

I cannot see this event listed

molten mantle
#

Yeah, I am not sure why. That is pretty relevant to the Customer. Unfortunately some of our surfaces can be weird with which events they consider related or not related to a certain object. If you reach out to our support team, they can file feedback about this so that we can hopfully surface refund.created events on customer pages in future.

#

I am surprised that we also don't have the customer's ID in that event. I am guessing we do that because the refund has to be created manually, but that would be hard to track if you created this refund from the dashboard

lusty laurel
#

I have created this using API and I am also thing why we dont have customerId here

#

And also do you know why the balance_transaction is null here ?

molten mantle
#

You did pass the customer ID to create the refund. This doesn't have a balance transaction because it effects the customer's balance rather than your account balance.
https://dashboard.stripe.com/test/logs/req_ytGoPVOsMcwDXH
If you list customer balance transactions, one about this may show up
https://docs.stripe.com/api/customer_balance_transactions/list

lusty laurel
#

Thanks yes that make sense

#

Do you have idea how your colleague found this refund.created event ?
Since this event is hidden from the customer page I am wandering how I can find for these kind of hidden events in the future.

molten mantle
#

Yeah for a typical refund with a PaymentIntent or Charge, those objects would have a customer ID so I think the expectation is that you would expand them to get that info.

#

We have an internal tool that lets us look up events by their type for your account. You don't have access to that specific tool but workbench can do the same thing:

lusty laurel
#

Ok Thanks for the info.
I think I understood the concept now.

molten mantle
#

Glad we could help clarify, apologies this flow doesn't have certain information where it would be very helpful. I will file something about the customer ID in that event, that is very important info to include

lusty laurel
#

Thats true and one last question
Do you know how to get customerId with the response that we get as of now

#

I have meta data that can derive customerId.
So as of now I am good

#

But as you said it will be great if you suggest them to add customerId to object as well

#

Thanks

#

Have a great day ๐Ÿ™‚

molten mantle
#

That may be the workaround that you need at the moment. I will experiment to see if there is another way, but there may not be right now