question

lenkrause avatar image
lenkrause asked lenkrause answered

Get charges timestamp range

I have a sandbox charge transaction with timestamp 1707867016000 which converts to 2024-02-13 18:30:16.0.

However these requests yields no results.

/v1/charges?created.gte=2024-02-13T182810&created.lte=2024-02-13T183210
/v1/charges?created.gte=2024-02-13%20182810&created.lte=2024-02-13%20183210

Are these query string options formatted correctly?
Do I need to adjust the query string to use UTC time zone? I tried that without success.

REST APIe-commerce apiecommerce
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

chrispetchey avatar image
chrispetchey answered
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lenkrause avatar image
lenkrause answered

When I try that format:

/v1/charges?created[gte]=2024-02-13T182810&created[lte]=2024-02-13T183210

I get transactions that are outside of the date and time range specified.
The documentation indicates the syntax is:

Format: {parameterName}.{comparisonOperator}==YYYY-MM-DDThhmmss

The == may be a typo because when I try that I get:

"Please provide valid search date"
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community