#doug_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1225582561355501599
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
In order to know for certain I would recommend going through this scenario in Test and carefully reviewing the webhook events that are emitted.
I guess that really is the next step... was hoping to validate my approach before investing significantly more time building out test scenarios.
Running through the whole process in Test mode is really the best option here. I don't think a new transfer is created automatically when a transfer is reversed but if you are building application logic based on the answers to these questions I would recommend plenty of testing before implementing anything in production
Agreed. Thanks for the feedback... I will make some assumptions about the behavior and then proceed with testing to validate those assumptions. I am also assuming no new transfer is created with a reversal... that the reversla is only recorded in the context of the original transfer... which means my internal ledger wont have a unique id the the reversal activity. I can work with that... but would rather have a unique id for the reversal transaction
A Transfer Reversal is it's own distinct object in Stripe: https://docs.stripe.com/api/transfer_reversals/object
It will have a unique ID associated with it
Ah... that is very helpful!
For further reference you can also retrieve the associated Balance Transaction for both the Transfer and the Transfer Reversal. This will provide you with more details on the movement of funds into and out of the Connected Accounts Stripe balance
Both objects have a balance_transaction property https://docs.stripe.com/api/transfers/object#transfer_object-balance_transaction
You can use the ID stored there to look up each Balance Transaction https://docs.stripe.com/api/balance_transactions if you need more details
Each BT will also have unique IDs
Interesting... I wonder if my internal ledger more accurately reflects the balance transactions vs the transfer objects. I will dig into that side of things.
Here is a bit more information that we have on what Balance Transactions represent: https://docs.stripe.com/reports/balance-transaction-types
We don't thoroughly document those Objects but they can be quite useful for keep track of money movement.
Awesome.... I appreciate your help! I have some reading to do, but it looks like I may have a path forward, at least until the next step :). WIth the transfer.reversed webhook I get a trasfer object which may have a list of reversals... which one is the reversal that triggered this webhook event?
We return all our lists in reverse chronological order so the first one in the list is the most recent. So if you have multiple partial reversals on a single Transfer, the first item in the reversals list will be the most recent one that triggered the webhook.
Excellent! Thx again for your help!