#Rizvane

1 messages · Page 1 of 1 (latest)

spare thicketBOT
blissful mural
#

Hi @trim estuary

trim estuary
#

Hi! Let me help you with this.

#

Not sure what are you trying to do exactly. Could you please give more context?

blissful mural
#

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.

trim estuary
#

By account_id you mean Stripe Accounts, or bank accounts?

blissful mural
#

stripe acount (started by acct_XXXX)

trim estuary
#

Are you using Connect?

blissful mural
#

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 ?

trim estuary
#

get all payouts
What API endpoint are you using for this?

blissful mural
#

$stripe->payouts->all()

trim estuary
blissful mural
#

but I have multiples account_id managed in my account

trim estuary
#

Each account has an individual secret key

blissful mural
#

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

trim estuary
blissful mural
#

ok so I will have something like this :

$stripe->payouts-all([filters], ['stripe_account' => '{{CONNECTED_ACCOUNT_ID}}']);

#

is it correct ?

trim estuary
#

Looks fine. Does it work?

blissful mural
#

yes seems to work. thanks for your help