#RosaMTS-listcharges
1 messages · Page 1 of 1 (latest)
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"))
}
Just checking charges created after the date passed right?
'after' in the sense that it's dates closer to the present than the date passed yep
so... which details you need to further check this out? 😅
what do you see exactly instead when you try it? do you have a request ID req_xxx from your request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_C74fRsiAIPQ3Mk
I see a charged with created 1666189445 (Wed Oct 19 2022 14:24:05 GMT+0000)
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!
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
probably best for your developer to ask here and share exact code and details of what they do.