#psarojanand-payout
1 messages ยท Page 1 of 1 (latest)
yes through API
I'd suggest using BalanceTransactions API to retrieve the list of transactions in a payout: https://stripe.com/docs/expand/use-cases#charges-in-payout
I tried this but not getting the desired result Transfers have two columns one is ID that starts with tr_ and other is py_. On the dashboard the Payout id is linked with py_
but in API using expand options for mentioned column doesn't give neither py_ nor tr_ details or any common element as expand gives only one object of balance transaction while Payout has multiple Transfer Transaction.
Are you using manual or automatic payout?
For manual payout, there won't be any transaction details since it's a lump sum that you request to pay out to the bank
For automatic payout, the response should contain the py_ in data.source
Let me try and get back to you
what is the possible reason for this
as Payout out object did exist
What I am missing
usually means you're using the wrong API key, or that's a payout on a Connected account and you didn't use the Stripe-Account option; or the opposite and it's a payout on the platform and you did use the Stripe-Account option
API key is correct what is Stripe-Account option can you give me some insight yes this is Connected Account Payout.
what is Stripe-Account option can you give me some insight
https://stripe.com/docs/connect/authentication
still getting same error
yep, doesn't look like you changed anything to use stripe_account so that doesn't seem surprising
sorry
I connected the account first and then I tried to retrieve the connected account PO details
if the Payout is on a connected account it's \Stripe\Payout::retrieve("po_xxx", ['expand'=>[...]], ['stripe_account'=>"acct_xxx"]);
oh sorry my mistake
no worries. You need to make sure you 100% understand how to use this header and what those errors mean and on which accounts the various objects live on, to build such an integration with Connect
ok I am trying if got any error will connect Thanks you
๐ taking over for my colleague. Let me catch up.
circling back to previous question I haven't received py details for automatic payouts
Hey tarzan
share your code.
you probably are not doing \Stripe\BalanceTransaction::all passing the ID of the payout, like in the docs my colleague shared 2 hours ago, and instead you're just retrieving the Payout directly.
I am just retrieving Payout directly
$payout_detail = $stripe->payouts->retrieve('po_1LPgmvPQPjWNrsSJsQU9ctup',['expand'=>['balance_transaction','balance_transaction.source']],['stripe_account'=>"acct_xxxxx"]);
@verbal plaza did you take a look at this guide https://stripe.com/docs/expand/use-cases#charges-in-payout ?
sorry for the trouble mate I got the required information
thanks for your help
let me know if you need any more help
sure will do. Thanks once again