#isurika_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Do you have an ID for the refund that I can look at?
yes
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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 ?
No. It's just that event.
Do you have idea how we can identify failure on these kind of refunds ?
Let me check with a colleague
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?
No Refund object is created, so there wouldn't be one as far as I can tell.
Ok that means this flow does not behave as a refund
Let me know if you get update from your colleague regarding failures
Will do. We're a bit puzzled about this to be honest.
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
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.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Also, please DM me the email you used so I can attach your support thread
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)
But the customer I shared created using API
https://dashboard.stripe.com/test/customers/cus_QR9LOtGZBEtNFo
If you refer this customer I have executed the API
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah, fair point. Ugh.
Wait... it's right here: https://dashboard.stripe.com/test/workbench/events/evt_1PaJ6yCwXI9yfnGaWYUTl1Sv
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You did get refund.created
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
Hey @lusty laurel apologies I missed this for a bit. Where exactly in the dashboard is this event not showing up?
Hello
No worries
In the customer page events section
https://dashboard.stripe.com/test/customers/cus_QR9LOtGZBEtNFo
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I cannot see this event listed
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
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 ?
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think refund object does not have customerId
https://docs.stripe.com/api/refunds/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
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:
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok Thanks for the info.
I think I understood the concept now.
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
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 ๐
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