#simon_api

1 messages ยท Page 1 of 1 (latest)

marsh arrowBOT
#

๐Ÿ‘‹ 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/1290892680469151785

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

neon grove
#

Checking how your integration works

waxen briar
#

I tried it few times, the latest transaction on the platform account pi_3Q5JlLApMkaZmFOd0uqfri6f illustrates the case

marsh arrowBOT
#

@jade echo looks like you're in the wrong place, this thread is for someone else's question.

Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.

neon grove
#

Based on the my investigations:

  1. Your integration used Destination Charge - https://dashboard.stripe.com/test/logs/req_uB9EEu5xEKoRYV
  2. The refund was done in https://admin.corp.stripe.com/request-log/req_B5KDyJkFUfjInX. In this step the transfer was reversed from the connected account to the platform, i.e. the refund amount was taken from the connected account and returned to the customer (not platform)
  3. For the refund cancellation in https://dashboard.stripe.com/test/logs/req_TuUSxcaeWFOiQ6, the fund has been reversed to the platform in Step (2), so the fund will remain in the platform

I'm checking why the balance was insufficient for transfer to connected account in https://dashboard.stripe.com/test/logs/req_KxR4Jaxj00WrGK when the fund should be available at Step (3)

waxen briar
#

I see it available in Balances -> all activity on the platform dashboard though

#

but it is not available for me to use to make a transfer

neon grove
waxen briar
#

Will there be any event that I can handle once that fund becomes available?

neon grove
#

Not really. In https://dashboard.stripe.com/test/events/evt_3Q5JlLApMkaZmFOd0FW2ZXBU of the refund cancelation, there was failure_balance_transaction for the balance transaction: txn_1Q5Jo4ApMkaZmFOdB0LJuKFN

Your system can then use Balance Transaction Retrieval API to retrieve the available_on timestamp: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-available_on

Once the available_on timestamp is reached, a transfer can then be made

#

charge.refund.updated event will be sent when the refund is canceled, but not when the fund becomes available

waxen briar
#

Ok. Sounds doable. Is there a way to cancel the refund and target the fund to the connected account? I didn't see such option in the UI but maybe it exists via API?

neon grove
#

Is there a way to cancel the refund and target the fund to the connected account?
I'm afraid this is not supported in API as well.

Alternatively, you can check the balance on the platform account: https://docs.stripe.com/api/balance/balance_retrieve and transfer to the connected account as soon as the balance is more than the transfer amount.

waxen briar
#

Thank you for confirming my assumptions and pointing to the possible solution.

neon grove
#

No problem! Happy to help ๐Ÿ˜„