#wangtao - connect transfers
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
Hey there, you'd need to use expansion to traverse backwards to that Transfer object where the metadata resides
https://stripe.com/docs/api/expanding_objects
expand=data.source.source_transfer to get the transfer object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
or without data. if retrieving a single BT instead of a list
NP!
What do you suggest then, do I need to listen to balance.available event, and then expand something related to that balance notice?
Are you just trying to see that metadata for a specific single BT?
When processing the data from a webhook event?
If so, yes, you can retrieve that single BT and use expand=source.source_transfer
and the source_transfer will be the transfer object with the metadata you set
May I ask if BT = balance transaction?
I'm a bit confsued actually, I'm listening to balance.available, but I don't know where I can get balance transaction
Ah sorry, yes, Balance Transaction
balance.availalbe {
object: 'balance',
available: [ { amount: 402890, currency: 'eur', source_types: [Object] } ],
connect_reserved: [ { amount: 0, currency: 'eur' } ],
livemode: false,
pending: [ { amount: 1590203, currency: 'eur', source_types: [Object] } ]
}
Here is the response from balance.available webhook, where can I get balance transaction?
Ah that's not a specific balance transaction then, no, that's just your overall account balance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So is there any specific event I'll have to listen to, other than blance.available? I just need to know the order number, attached to the transfer from the platform to the seller, when it's available in seller's own Connect account
Hello, catching up here.
So you are looking to explain each balance change to your connected account basically? Not sure if we have an event for that
Yes
The reason is that sellers may have more than one bank account, depending on which item they sell, they should be paid to different bank accounts. So that's why I can't use automatic payout
So there's no way to get it from webhook?
Not directly as far as I am aware. Trying to think of how our API could help you figure this out.
Thank you very much!
So as synthrider was saying, you will want to look at these balance transactions for this data one way or another.
What is immediately coming to mind is that you can check the last Balance Transaction you saw and then you can list all Balance Transactions since that last one whenever you get that balance.availible event.
I will consult my colleagues on whether there is a more straightforward way to do this.
I appreciate your help! Will also do some research on it