#adrian.1437
1 messages · Page 1 of 1 (latest)
You created it on your Connected account, so it should be retrievable from there. Could you please share the Request ID that fails req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
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.
may I know how to do it?
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
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
stripe.Transfer.retrieve(transfer.id, stripe_account=connected_account_id)
I get it now wooo thank you so much ❤️
Happy to help!
reversal = stripe.Transfer.create_reversal(transfer.id, amount=transfer.id, stripe_account=connected_account_id)
but i got an error when doing transfer reversal
What's the error?
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_Zq3NpwZ6RLgGKK:
You provided the Transaction ID in the amount field.
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 ❤️
👍