dmlerner / ynab-api

Generated Python API for YNAB
32 stars 10 forks source link

Transaction Data Incomplete #4

Closed russellgeoff closed 2 years ago

russellgeoff commented 4 years ago

After calling get_transactions_by_account, the response appears to omit many data fields. The response I get looks like this:

{'account_name': 'Credit Card',
 'category_name': 'Groceries ',
 'payee_name': 'Grocery Store',
 'subtransactions': []}

Where as previously, it would have the following:

{'account_id': 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
 'account_name': 'Credit Card',
 'amount': -123456,
 'approved': False,
 'category_id': 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
 'category_name': 'Groceries ',
 'cleared': 'cleared',
 'date': datetime.date(2020, 3, 1),
 'deleted': False,
 'flag_color': None,
 'id': 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
 'import_id': 'YNAB:-XXXXX:2020-03-01:1',
 'matched_transaction_id': None,
 'memo': None,
 'payee_id': 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
 'payee_name': 'Grocery Store',
 'subtransactions': [],
 'transfer_account_id': None,
 'transfer_transaction_id': None}

I've tried looking at the diff of the transaction_api but am not sure what may be causing this issue.

Thanks!

PS: Thanks for updating the API to include the updates regarding subtransactions!

dmlerner commented 2 years ago

Do you still have the issue under the newly (just now) generated API?

dmlerner commented 2 years ago

Closing as inactive