#Sarim
1 messages · Page 1 of 1 (latest)
Hi! 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.
ok let me see
I couldn't unfortunately
@dusk mason did you see my thread with @errant wing
Do you have the payout ID?
Yes
Also share with me the relevant code
this is the link river send me for the reporting
OK, so you are retrieving balance transactions with a payout ID.
yes
$balanceTransactions = \Stripe\BalanceTransaction::all([
'payout' => 'po_****',
'type' => 'payout',
'expand' => ['data.source.source_transfer.source_transaction'],
], [
'stripe_account' => $this->data['row']->stripe_connect_account_id,
]);
pr($balanceTransactions);
this is my code
payout id also mentioned in the code
OK, can you check if you specify the correct stripe_account ?
Don't worry about it!
There's a List all payouts API that you can use https://stripe.com/docs/api/payouts/list?lang=dotnet#list_payouts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Actually I want the list for specific connected account
Hey! Taking over for my colleague. Let me catch up.
There isn't a filter on the endpoint for payouts listing but you can list the payouts of each connected account using the header authentication I think that could fit your need:
https://stripe.com/docs/connect/authentication
Can you see
yes something like that you need to set stripe_account with the conencted account you want to fetch its payouts
will it work?
It depends on what data you have, but I invite you to try it.
$balanceTransactions = \Stripe\Payout::all([
'limit' => 100
], [
'stripe_account' => $this->data['row']->stripe_connect_account_id,
]);
pr($balanceTransactions);
like this?
its not working actually I am trying
it is giving me
An uncaught Exception was encountered
Type: Error
Message: Call to private method Stripe\ApiResource::_validateParams() from context 'Stripe\Payout'
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
You are using php right ?
yes
I just did a test using this code snippets and it worked for me:
$stripe = new \Stripe\StripeClient(
'sk_test_123'
);
echo($stripe->payouts->all(['limit' => 3],['stripe_account'=>'acct_123']));
'limit' => 100
], [
'stripe_account' => $this->data['row']->stripe_connect_account_id,
]);
pr($balanceTransactions);```
isn't that same?
'payout' => 'po_xxxx',
'type' => 'charge',
'expand' => ['data.source.source_transfer.source_transaction'],
'limit' => 100
], [
'stripe_account' => $this->data['row']->stripe_connect_account_id,
]); ```
I did same for the balancetransaction api it worked
thank you
@undone marten I found the solution
Glad to hear that you managed to solve the issue by your self!