Unanswered
Hello Ethan,
There are some doc improvements to be made here, but for the most part even though it says optional. In almost all cases AccountsIds are required. The list of AccountIds is expecting something like: account_ids=AccountIds(1, 2, 3) so in your case: account_ids=AccountIds(account_models)
Hopefully this helps,
-Trey
77 Views
0
Answers
4 years ago
4 years ago
Thank you for the response. I tried using
— Ethan Pittman 4 years agoaccount_ids=AccountIds(account_models)like you said and importedAccountIdswithfrom q2_sdk.hq.hq_api.wedge_online_banking.AddChangeOfAddress import AccountIds. I am now getting an error message saying "Logon Failure" and nothing more.My mistake, from q2_sdk.hq.hq_api.q2_api.AddChangeOfAddress import AccountIds instead of q2_sdk.hq.hq_api.wedge_online_banking.AddChangeOfAddress import AccountIds is being used and causing a Logon Failure. @Trey Teter
— Ethan Pittman 4 years agoWhat is your full import list?
— Trey Teter 4 years ago
— Ethan Pittman 4 years agofrom datetime import datefrom q2_sdk.hq.hq_api.q2_api.AddChangeOfAddress import AccountIdsfrom q2_sdk.core.web import ajaxfrom q2_sdk.models.tecton import Successfrom q2_sdk.core.http_handlers.tecton_server_handler import Q2TectonServerRequestHandlerfrom q2_sdk.hq.hq_api.q2_api import AddChangeOfAddressfrom q2_sdk.hq.db.customer import GetCustomerParamsfrom .install.db_plan import DbPlanWe've identified a bug in Q2API AddChangeOfAddress that causes this error. It will need to be resolved in an HQ fix. Recommendation is to try the WedgeOnlineBanking version of AddChangeOfAddress:
https://docs.q2developer.com/api_references/hq_api/wedge_online_banking/AddChangeOfAddress.html
— Ryan Hollister 4 years ago