-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Get All Transactions (/v1/transactions) endpoint does not have defined sorting and also does accept sorting parameter. Without defined sorting or sorting parameter it is impossible to build normal paging in the app or infinite scroll list. Infinite scroll list is list of all transactions sorted by date in descending order.
To reproduce the issue:
- Get a token for an account with a lot of transactions (1000+)
- Call /v1/transactions?limit=25&start_date=2023-01-01&end_date=2026-02-26
- Observe that the transaction page has 25 transactions in ascending date order, observe earliest transaction date
- Call /v1/transactions?limit=25&start_date=2023-01-01&end_date=2026-02-26&offset=25
EXPECTED: Call with offset parameter returns transactions with a date earlier or equal to the earliest date you observed in step 4. This way you can easily build an infinite list of transactions, transactions are loaded automatically when you scroll to the bottom.
ACTUAL: Call with offset the parameter may return transactions with a date greater than the date from step 4. It is not possible to build a paging of an infinite scroll list, because order or transactions will not make sense to the user.