#nicolas_refund-cashbalance

1 messages · Page 1 of 1 (latest)

wanton cargoBOT
#

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

pastel oxide
#

nicolas_refund-cashbalance

#

👋 nice to see you again (even if it's always for a CashBalance related question 😂 )

patent crag
#

hahaha

#

nice to see you again also!

#

Let me know if I explain my concern correctly

pastel oxide
#

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

patent crag
#

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

pastel oxide
patent crag
#

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

pastel oxide
patent crag
#

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 😦

pastel oxide
#

yeah I think that doc is wrong (it's a beta maybe?). Next step is to ask our support team

patent crag
#

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?

pastel oxide
#

yes I confirmed with 2 people on my team!

patent crag
#

Okay! Cool! Thanks for the help!