How to get charges(transactions) details in Stripe based on date range

Chirag B picture Chirag B · Feb 18, 2013 · Viewed 16.3k times · Source

I wanted to get list of charges(Transactions) based on date range I specify, ie all transactions between my specified Start date and End date.

But in CHARGES API, I can not see any Start date nor End Date arguments.

How can i get this ?

Thanks in advance.

Answer

Chirag B picture Chirag B · Mar 5, 2013

Had a chat with Stripe staffs through online chat, and found that there is a way to get list of charges based on date range.

Stripe Charges API actually has some argument that are not yet listed in their documentation.

Arguments like created[lte] and created[gte] with Unix timestamp can be used, just like Events API call.

EG: https://api.stripe.com/v1/charges?created[gte]=1362171974&created[lte]=1362517574