#adrian.1437

1 messages · Page 1 of 1 (latest)

quasi emberBOT
red bobcat
#

Hi! Let me help you with this.

#

Could you please share the Transfer ID?

odd flare
#

tr_1NhWf54UrptCXjPXsSI8fFHq

red bobcat
odd flare
#

so I'm trying to do reversal but it says transfer doesnt exist

#

so what I did was to create transfer from connected account to our platform account

#

is it possible to retreive the transfer just to make transfer reversal?

#

req_y6PgybyBfEFZkk

red bobcat
#

This GET request is made on the Platform, that's why it doesn't work. The Transaction lives on the Connected account, so you should make a request with Stripe-Account header.

odd flare
#

may I know how to do it?

red bobcat
#

How did you create the Transaction in the first place?

odd flare
#

transfer = stripe.Transfer.create(
amount=total_dispute_amount,
currency=dispute.currency,
destination=platform_id,
stripe_account=connected_account_id,
description="charge dispute amount by the platform",
transfer_group=f"dispute_{dispute.id}"
)

#

so im transfering an amount to my platform account from the connected account

#

so i want to reverse it

#

im using python

red bobcat
#

stripe_account=connected_account_id,
This parameter is responsible for making calls on behalf of your connected account.
You can use it on the GET request as well

odd flare
#

stripe.Transfer.retrieve(transfer.id, stripe_account=connected_account_id)
I get it now wooo thank you so much ❤️

red bobcat
#

Happy to help!

odd flare
#

but i got an error when doing transfer reversal

red bobcat
#

What's the error?

odd flare
#

req_Zq3NpwZ6RLgGKK:

red bobcat
#

You provided the Transaction ID in the amount field.

odd flare
#

oh im sorry

#

it works now
reversal = stripe.Transfer.create_reversal(str(transfer.id), amount=transfer.amount, stripe_account=connected_account_id)

#

thank you so much ❤️

red bobcat
#

👍