#crenon
1 messages · Page 1 of 1 (latest)
One example is payout po_1N4w6ZFoGC47QYznni3ZupGN
when i pull the balance transactions like we normally do, i only get the one transaction back, though i get the correct total:
'payout' => $_POST['payout_id'],
'type' => 'payment',
'expand' => ['data.source.source_transfer.source_transaction'],
], [
'stripe_account' => $stripe_account,
]); ```
the transaction that's messing this up (and the only transaction that's getting returned) is one that was made on the stripe dashboard as a payment from the platform to the connect account for a refund of some fees
if that helps at all
thanks for any help, we've been banging our heads against this all afternoon :~|
req_tYbCvxnBFYUGiF is an example of a request where this happened
Hi sorry I am a bit swamped and juggling between threads for now. Could you list up transactions inside this Payout by Ids?
no worries, thanks for your help whenever you're able! Yes, lemme grab those ids
these are the charge ids that are in the payout, but only the one is coming back in the balance transaction call:
ch_3N2KKoFoGC47QYzn0rch69rL
ch_3N2KKqFoGC47QYzn1KI4BVLq
ch_3N2Xz7FoGC47QYzn1ExVvuCG
ch_3N2Xz9FoGC47QYzn0t5fvrHn
ch_3N2uSeFoGC47QYzn0wpUy6Lq
ch_3N2uShFoGC47QYzn1LCUnFWB
ch_3N3GwBFoGC47QYzn1dSfFDFq
ch_3N3GwDFoGC47QYzn0mnr7Rsg
ch_3N3dPjFoGC47QYzn0GMfIvCP
ch_3N3dPnFoGC47QYzn0BidpqhY
ch_3N3ztFFoGC47QYzn03Y0y04b
py_1N330XFoGC47QYznyv3PKpQj
ch_3N2Xz9FoGC47QYzn0t5fvrHn
ch_3N2Xz7FoGC47QYzn1ExVvuCG
ch_3N2uSeFoGC47QYzn0wpUy6Lq
ch_3N2uShFoGC47QYzn1LCUnFWB
the py_ one is the only one
Okie, and which Balance Transaction Id you have got back?
txn_1N330YFoGC47QYzniCcj6I3o
i think that's the one that relates to py_1N330XFoGC47QYznyv3PKpQj
i'm just hoping to pull a full list of the underlying transactions that contribute to a payout, no matter their type
Yep so this Balance Transaction is $4.56 so it only has the py_ transaction. Do you have any other Balance Transaction from the call to GET /v1/balance_transactions which specified the Payout Id?
one sec
ok, when I pull payout po_1N4w6ZFoGC47QYznni3ZupGN, i get a payout object with the balance transaction txn_1N4w6aFoGC47QYznOCrayYbm
Yep that one seems to have many more charges, doesn't it?
it has a lot but the call we make (below) only returns the one
'payout' => $_POST['payout_id'],
'type' => 'payment',
'expand' => ['data.source.source_transfer.source_transaction'],
], [
'stripe_account' => $stripe_account,
]);```
maybe the problem is specifying 'type' => 'payment'
but that works on all our other calls, it only messes things up when there's a py_ type transaction in the mix
txn_1N4w6aFoGC47QYznOCrayYbm looks like a payout type Balance Transaction. If you change the type = payout would you see all the charges?
is there a way to pass more than one option to 'type'? payout produces one record, the whole amount of the payout
i'm trying to pull a list of the transactions included in the payout
seems like it'd work if i pulled all of the balancetransactions of types 'charge', 'refund' and 'payment' but it's not taking an array
tried this 'type' => ['charge', 'refund', 'payment'], and got an error:
PHP Fatal error: Uncaught (Status 400) (Request req_XVETdGqbdeNaVD) Invalid string: {:"0"=>"charge", :"1"=>"refund", :"2"=>"payment"}
Yeah it's a known limitation. Sorry. It means you would need to send 3 requests