#Anonymous_DY-transfers
1 messages · Page 1 of 1 (latest)
po_1K4xTOPnX0Q1fKMSZkgmcv3n
also could you check how I can make a mapping/relationship between transfers and payouts?
When you create a Transfer, the Transfer object exists on the Platform
the Transfer creates a Charge obj (i.e. py_) object on the connected account
to retrieve a list of all transactions in a payout, you can just specific the payout id when listing the balance transactions : https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout
I have tried that, that would then return the charge object? would that be all the charges that related to the payout?
it will list all transactions in the payout
okay so not the transfers but the transactions.
then I can map the transactions back to transfers using the charge object?
can I get the transfer in relation to the change obj (ie. py_)? Like can I see this object and try find the transfer id?
you can expand [0] the source parameter when listing the balance transactions and you should be able to see source_transfer
I will try that.
so I can get the Payout Object and expand on the balance_trnasaction and get source??
to clarify, it's to list all balance_transactions for a particular payout and expand the source parameter
okay sorry be unclear, but should I query the payout or the balance_transactions list
it'll probably look something like this in php
$transactions = $stripe->balanceTransactions->all([
'payout' => 'po_...',
'expand' => ['data.source'],
'limit'=>3],
["stripe_account" => "acct_..."]);
query the balance transactions
i can't test it for you
all good.
I think I got it.
is there a way to get the payout id when the payout is done? Like is there a webhook response for it?