Using the Stripe API, I’d like to be able to query for date ranges or, failing that, dates that are greater than or less than some arbitrary date.
I know that I can query for something based on an exact date, e.g.,:
https://api.stripe.com/v1/events?created=1336503409
But I want something along the lines of…
# Search for events where `created` is greater than the epoch time: 1336503400
https://api.stripe.com/v1/events?created__gt=1336503400
Yes. From https://stripe.com/docs/api?lang=curl#list_events
So with curl, you can build a request like this:
The unescaped query parameter is
created[lt]=1337923293.