#nicolas_refund-cashbalance
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/1235626820204888178
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
nicolas_refund-cashbalance
👋 nice to see you again (even if it's always for a CashBalance related question 😂 )
I don't think we support a "send to CashBalance immediately" unfortunately. I think we always expect you to pass an email so we tell the end customer to provide their bank details to get their funds.
Let me confirm with my team though
That was what I thought since I didn't see any additional parameter in the refund endpoint. What makes a little noise to me it's that the customer had chosen cash balance as the payment method. So it makes sense to refund the money to the cash balance since the user uses that as the payment method. He would be able to apply that money in the future to another invocie
Yeah we have https://docs.stripe.com/payments/customer-balance/refunding#refund-customer-balance-payment-customer-balance but it's Dashboard only. Not sure why honestly, but likely no one asked for that yet.
I can't think of a good way that isn't a hack but if it's a one-off maybe the Dashboard flow works for you?
Yeap I was aware of that one. But the idea is to make it through a FE UI and us performing a request to Stripe API
yep totally get it, that'd be a feature request for our support team unfortunately: https://support.stripe.com/contact
I'll track it internally too though
Wait, in that doc you sent it's says "Refund a customer’s cash balance using the API"
And in the example it's adding an origin parameter "customer_balance" which doesn't exists or appear in the StripeAPI doc related to create a refund
That might work?
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameters: customer, origin",
"param": "customer",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_wnpsyro3lpy9bC?t=1714667832",
"type": "invalid_request_error"
}
I think the documentation it's incorrect then 😦
yeah I think that doc is wrong (it's a beta maybe?). Next step is to ask our support team
Okay! So the conclusion it's it's not supported yet that feature. And the only way to achieve that it's through the Dashboard right?
yes I confirmed with 2 people on my team!
Okay! Cool! Thanks for the help!