'Is there a way to add dates in queries in quickbooks api using Python?
I want to make queries for accounts for a specific time, for example, for their values in 2022-31-01. I have the following code using the documentation (specified here:https://pypi.org/project/python-quickbooks/):
Instantiating client
auth_client = AuthClient(
client_id = client_id_texto,
client_secret = client_secret_texto,
redirect_uri = redirect_uri_texto,
environment = 'sandbox',
)
auth_client.refresh(refresh_token = refresh_token_texto)
client = QuickBooks(
auth_client=auth_client,
refresh_token = refresh_token_texto,
company_id = company_id_texto,
)
from quickbooks.objects import Account
from datetime import datetime
account = Account.all(str(datetime(2022, 1, 31, 0, 0, 0)),qb=client)
However, the last line of the code returns error. What I want is to get the value of the different accountability accounts for a specific date.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
