#RosaMTS-listcharges

1 messages · Page 1 of 1 (latest)

wild crystal
#

hi! let me have a look

#

could you share a few more details? I tried this on my account and it does do as expected(return charges created sooner than the date passed)

let res = await stripe.charges.list({created:{gt:"1666607498"}})
for(let ch of res.data){
    console.log(moment.unix(ch.created).format("MM/DD/YYYY HH:mm:ss"))
}
supple harness
#

Just checking charges created after the date passed right?

wild crystal
#

'after' in the sense that it's dates closer to the present than the date passed yep

supple harness
#

so... which details you need to further check this out? 😅

wild crystal
supple harness
#

req_C74fRsiAIPQ3Mk

#

I see a charged with created 1666189445 (Wed Oct 19 2022 14:24:05 GMT+0000)

wild crystal
#

you're not passing any created[gt] filter at all in that request so it would just return all charges

#

also you seem to be making the request from a web browser with your secret key which is not normal. I'd suggest writing some code or using stripe-cli to make your requests really!

supple harness
#

I was asking on behalf of my developer. I just run a test using the browser to get an example. We will check this out. I really appreciate your input

wild crystal
#

probably best for your developer to ask here and share exact code and details of what they do.