plaid/plaid-python

income_verification_summary_get issue with verified_transaction date

rajeshsachin10 opened this issue · 5 comments

We are using below code to get income verification response.

        request = IncomeVerificationSummaryGetRequest(income_verification_id=income_verification_id)
        response = client.income_verification_summary_get(request)

The income_verification_summary_get call throwning below exception.


Error : If you need your parameter to have a fallback string value, please set its type as type: {} in your spec. That allows the value to be any type. Failed to parse '' as date at ['received_data']['income_summaries'][0]['verified_transaction']['date']
Traceback (most recent call last):
File "/Users/rrprabha/Rajesh/john/venv/lib/python3.9/site-packages/plaid/model_utils.py", line 1092, in deserialize_primitive
raise ValueError("This is not a date")
ValueError: This is not a date

Thanks for the report! The team is working on a fix.

The fix has been merged and will be released with the next version of the client libraries.

Please let me know the version to be used for this (once its available). Thanks

We are using the version 8.4.0 and got the response back, but we are still seeing the JSON issue where the Objects cannot be encoded. Same issue happening on the asset endpoint too and we filed a ticket for asset too.


Error : cannot encode object: {'employee_name': {'value': 'Philip Sherman',
'verification_status': 'VERIFIED'},
'employer_name': {'value': 'Pixar LLC', 'verification_status': 'VERIFIED'},
'pay_frequency': {'value': 'semimonthly', 'verification_status': 'VERIFIED'},
'projected_wage': {'value': 242424.24, 'verification_status': 'VERIFIED'},
'verified_transaction': None,
'ytd_gross_income': {'value': 10101.01, 'verification_status': 'VERIFIED'},
'ytd_net_income': {'value': 0.0, 'verification_status': 'VERIFIED'}}, of type: <class 'plaid.model.income_summary.IncomeSummary'>
Traceback (most recent call last):


The solution provided in https://stackoverflow.com/questions/69621991/how-can-i-load-a-plaid-banking-api-response-to-a-pandas-dataframe-in-python thread works for income verification now. But if any datetime field added similar to asset will break this flow. Below is the ticket details for asset.

#375