#wangtao - connect transfers

1 messages ยท Page 1 of 1 (latest)

tawdry vault
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

or without data. if retrieving a single BT instead of a list

raven basalt
#

Thanks for your reply!

#

I'll take a look

tawdry vault
#

NP!

raven basalt
#

What do you suggest then, do I need to listen to balance.available event, and then expand something related to that balance notice?

tawdry vault
#

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

raven basalt
#

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

tawdry vault
#

Ah sorry, yes, Balance Transaction

raven basalt
#
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?

tawdry vault
#

Ah that's not a specific balance transaction then, no, that's just your overall account balance

raven basalt
#

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

jolly coyote
#

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

raven basalt
#

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?

jolly coyote
#

Not directly as far as I am aware. Trying to think of how our API could help you figure this out.

raven basalt
#

Thank you very much!

jolly coyote
#

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.

raven basalt
#

I appreciate your help! Will also do some research on it