Pending transactions filter does not work
under review
C
Cristian
The
pending
flag in the GET https://dev.lunchmoney.app/v1/transactions
endpoint does not work. I am trying to get a list of pending transactions, and it returns transactions that are not pending:http 'https://dev.lunchmoney.app/v1/transactions?pending=true&access_token=<REDACTED>&limit=1' | jq '.transactions[].is_pending'
prints false
Log In
J
JP Shipherd
under review
A
Anthony Chapligin
I have the same issue where pending transactions are returned regardless of the pending param.
Making a request to
https://dev.lunchmoney.app/v1/transactions?limit=2000&debit_as_negative=true
I get a response of the current months transactions with pending transactions present. Appending
&pending=false
to the URL still returns pending transactions.J
JP Shipherd
I wasn't able to replicate this. Could you let me know if you are certain that there are pending transactions?
Is there any reason that you are setting
limit
to 1? It isn't guaranteed that the pending transactions will be the first in the list.