#slowgen-payouts

1 messages ยท Page 1 of 1 (latest)

sturdy plover
opal heart
#

Checking of the specifics listing them for Connected accounts

forest bison
#

cheers

#

I normally do this $stripe->payouts->all(['limit' => 3], ['stripe_account' => 'acct_xxxx'])

#

How would I get that between two dates

opal heart
#

Yes there we go that should work

#

One sec

forest bison
#

๐Ÿ‘

opal heart
#

It should look something like $stripe->payouts->all(['limit' => 3], ['created' => ['gte' => start_date_stamp, 'lte' => end_date_stamp]]);

#

With the stripe_account param too, forgot to include it

forest bison
#

unix timestamp?

opal heart
forest bison
#

Thank you Pompey more than enough help! I'll see how I go

forest bison
#

So I passed 1630450800 as gte and 1633042799 as lte and the limit to 10 but I still see July and August payouts

jade steppe
#

there's an issue in the code example

#

the params should be in the same array

#
  'limit' => 3,
  'created' => [
    'gte' => start_date_stamp,
    'lte' => end_date_stamp,
  ],
]);``` Try this instead
forest bison
#

Bowsers! ๐Ÿ™‚ Thank you Koopajah

#

Sorted