To make sure I'm only fetching new transactions when updating a bank account, I would like to only fetch transactions that occured after the last time they were fetched.

How do I pass a "from date" parameter to the Payment listing endpoint? Or can I accomplish this using pagination parameters? I only see count, newer_id and older_id. Are these the same as transaction ids?

    @Wouter-Red-Falcon#133293 Je moet gebruik maken van de id's. Ik meen dat de API ook zelf een future_url geeft die je kan gebruiken. Op deze pagina staat het uitgelegd onder "pagination" https://doc.bunq.com/

      @JeroenE (Ik weet niet of jij van bunq bent, maar hopelijk kan iemand van bunq hierop reageren)

      Thanks, I've gotten that to work for this use-case, but it would be great if there was a cleaner way to fetch all transactions within a certain timeframe.

      For example, I would like to fetch transactions for the past 6 months initially. The only way to do this would be by sending multple paginated requests until a transaction pops up that's older than 6 months. This would require extensive loops and checking to achieve and would also likely overshoot the oldest transaction needed (say I'm using count: 200, then I would on average receive 100 more transactions than I needed on the last request). Things get even more complicated if I would want to fetch transactions from a period in the past such as 01/04/2018 to 01/06/2018.

        @Wouter-Red-Falcon#133302 Ik ben niet van bunq, mensen die dat wel zijn hebben een blauw bolletje bij hun icoon.

        Voor zover ik weet kan je geen datum range opgeven. Het idee is (wederom voor zover ik weet) dat je 1 keer alle gegevens ophaalt en daarna alleen de nieuwe gegevens. Je kan daarna in je eigen database queries maken zoals je wil.

          a year later
          2 months later
          Write a Reply...