Skip to content

Required transfer_account_id when fetching budgets #7

@maheffa

Description

@maheffa

Why is it that I'm getting the following error when calling get_budget_by_id

...
~/.virtualenvs/ynab/lib/python3.6/site-packages/ynab/models/payee.py in transfer_account_id(self, transfer_account_id)
    122         """
    123         if transfer_account_id is None:
--> 124             raise ValueError("Invalid value for `transfer_account_id`, must not be `None`")  # noqa: E501
    125
    126         self._transfer_account_id = transfer_account_id
ValueError: Invalid value for `transfer_account_id`, must not be `None`

Looking into the source, it seems to be a strong requirement. However, when curL-ing the endpoint, I see that the majority of my transactions have transfer_account_id: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions