#peter_40675
1 messages · Page 1 of 1 (latest)
i mean how to refund from partilcular connected accounts? (bank accounts)
using apis
You create a refund with this endpoint: https://stripe.com/docs/api/refunds/create
And make sure you use the Stripe-Account header https://stripe.com/docs/connect/authentication
thanks but i haven't charge id
i'm creating bank for connect accounts, and now we payout users., than now how can refund from this payout user
Wait. Do you want to refund a payment, reverse a transfer, or cancel a payout?
i want to refund
Then I already answered that question:
You create a refund with this endpoint: https://stripe.com/docs/api/refunds/create
And make sure you use the Stripe-Account header https://stripe.com/docs/connect/authentication
yes but i haven't charge id
What do you have?
account id
What are you trying to do? I still don't understand.
first thing i have some balance in connected accounts, now i want to refund from this account
Like this assume some balance and want to refund from DishantTest user
Again, what are you trying to do?
- Do you want to refund a payment? Meaning a end user send you money, but you want to send them back their money?
- Do you want to reverse a transfer? Meaning you sent money to a connected account, but now you want the money back in the platform account?
- Do you want to cancel a payout? Meaning a connected account got money from their Stripe balance to their bank account, and you want to move back that money in the connected account or platform account?
- Something else?
Each think I listed above is very different, so you have to clearly explain which one you are trying to do.
yes this one
Do you want to refund a payment? Meaning a end user send you money, but you want to send them back their money?
In this case you have a Charge ID or a PaymentIntent ID. Can you share it here?
okay but its working for connected accounts?
only payout user which amount go into connected accounts
const paymentIntent = await stripe.paymentIntents.create({
amount: '37',
currency: request.currency,
application_fee_amount: request.application_fee_amount,
transfer_data: {
destination: request.account_id,
},
confirm: true,
payment_method: method_id,
customer: request.customer_id,
capture_method: 'manual',
description: 'Ineed',
statement_descriptor: 'Ineed',
statement_descriptor_suffix: 'Ineed',
setup_future_usage: 'off_session',
confirmation_method: 'automatic',
use_stripe_sdk: 'true',
});
okay but its working for connected accounts?
Yes you can refund a PaymentIntent on a connected account. I explaind to you at the very beginning how to do this.
yes please
Can you share the PaymentIntent ID you want to refund (pi_xxx)? or Charge ID (ch_xxx)?
pi_3NlUgLGcbCus1tTb0eYVjmAZ -- this one
Then can you follow the instructions I listed at the very beginning?
You create a refund with this endpoint: https://stripe.com/docs/api/refunds/create
And make sure you use the Stripe-Account header https://stripe.com/docs/connect/authentication
okay thanks