lunarway / openbanking

Repository for keeping track of issues related to Lunar's Open Banking APIs
https://developer.openbanking.prod.lunar.app/
1 stars 0 forks source link

Question about pagination #88

Closed DTeivens closed 5 days ago

DTeivens commented 2 weeks ago

Hello! Is there a way to see how many transactions will be returned in specific time period? Or is there any other way to distinguish how many request i need to make until i receive all transactions for specific time period ? If there is no such thing , what happens at that point were i request transactions an there is nothing to return, is there an empty response body?

mathies1988 commented 5 days ago

Hi there.

  1. The only way to figure how many transactions is returned in a specific time period is to page through the transactions in the period and count them.
  2. There is no way to determine this, other than paging through the time period.
  3. You should be able to test this by querying for a time period that you know do not have any transactions. When looking at the code it should simple return an empty response.