#crenon-Connect
1 messages · Page 1 of 1 (latest)
Hi there, you can use this API https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout to get a list of transactions that were paid out on the specified payout ID.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah perfect, thank you!
When I make that api call i'm getting an error:
No such payout: 'po_1LTGLT2EXjcz3JghotIhxN6N'
But I'm looking at the payout in the stripe dashboard and that's the correct ID
Any idea what I'm doing wrong
?
thanks again for any help you can provide
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_UadDZMIFkHYxYT
thanks!
that's the request id i get in the php error
weirdly, i can't find it in the logs from the stripe developer dashboard
Thanks. This Payout was created in connected account, that's why it can't be found in platform.
You should specify the account ID in Stripe-Account header to make API calls for connected account https://stripe.com/docs/connect/authentication
oh i see, i need to make the api call on behalf of the connected account
ok let me see if i can figure that out
thank you!
One other thing - I see in the API doc you sent for balance transaction list - payout that it specifies it's only for automatic payouts. I'm using a manual payout schedule. Is it possible to pull the transactions that were included in the payout if the payout was manual?
I'm still getting "no such payout" when I'm structuring my request like this:
$transactions = $stripe->balanceTransactions->all(['payout' => $_POST['payout_id']], ["stripe_account" => $stripe_account]);
any ideas? thanks again!
request ID please?
You should pass correct connected account ID, from my end I can see this payout was created in a different account
oh ok, thanks
i'm passing acct_1KwYaO2EOCvAyMQO, is that the one you're seeing?
I'm thinking I'm not passing it correctly
My string is this:
$stripe->balanceTransactions->all(['payout' => 'po_1LTGLT2EXjcz3JghotIhxN6N'], ["stripe_account" => 'acct_1KwYaO2EOCvAyMQO']);
is that how you pass the stripe account?
po_1LTGLT2EXjcz3JghotIhxN6N was created in a different account.
oh interesting
ok
i think it was created on the platform account then
is there any way i can see what account it was created on?
In the stripe portal maybe?
I can see the payout there.
Is it this one?
acct_1KiIuA2EXjcz3Jgh
ah ok, i see that is the correct account, thank you
When I pass that account, i get this error:
"Balance transaction history can only be filtered on automatic transfers, not manual."
req_K6rhHHZ9tHXsCG
any idea how i can get around that error?
thanks so much for helping me troubleshoot