#Anonymous_DY-transfers

1 messages · Page 1 of 1 (latest)

velvet moss
#

hello! can you share the payout object id? it'd look like po_123

tame spear
#

po_1K4xTOPnX0Q1fKMSZkgmcv3n

#

also could you check how I can make a mapping/relationship between transfers and payouts?

velvet moss
#

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

tame spear
#

I have tried that, that would then return the charge object? would that be all the charges that related to the payout?

velvet moss
#

it will list all transactions in the payout

tame spear
#

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?

velvet moss
tame spear
#

I will try that.

#

so I can get the Payout Object and expand on the balance_trnasaction and get source??

velvet moss
#

to clarify, it's to list all balance_transactions for a particular payout and expand the source parameter

tame spear
#

okay sorry be unclear, but should I query the payout or the balance_transactions list

velvet moss
#

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

tame spear
#

okay let me test that.

#

could you test that for this po? po_1LVQ87Jf1PjBiAE0DojRW2XL

velvet moss
#

i can't test it for you

tame spear
#

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?

tame spear
#

perfect thanks so much

#

is there a way to get only certain field of the expanded object?