#Rizvane
1 messages · Page 1 of 1 (latest)
Hi @trim estuary
Hi! Let me help you with this.
Not sure what are you trying to do exactly. Could you please give more context?
yes sorry
I am trying to get all payouts in a specific date range for a specific account_id in order to generate my own custom file which will identify the corresponding payout to my order id in my own database.
By account_id you mean Stripe Accounts, or bank accounts?
stripe acount (started by acct_XXXX)
Are you using Connect?
no I use a stripe object like this :
$stripe = new StripeClient(SECRET_KEY);
and from this $stripe I try to get all payment for a specific account. Maybe I have to add stripe_account in headers ?
get all payouts
What API endpoint are you using for this?
$stripe->payouts->all()
If you're trying to list Payouts for your own account your Secret Key is enough.
but I have multiples account_id managed in my account
Each account has an individual secret key
unless you are using Stripe Connect? https://stripe.com/en-de/connect
I think we are using Stripe connect because each shops we manage have their own account_id. And with my Secret key I can have access to all oh them
Okay, then you need to provide the Stripe-Account header: https://stripe.com/docs/connect/authentication
ok so I will have something like this :
$stripe->payouts-all([filters], ['stripe_account' => '{{CONNECTED_ACCOUNT_ID}}']);
is it correct ?
Looks fine. Does it work?
yes seems to work. thanks for your help