diff --git a/sageintacctsdk/apis/api_base.py b/sageintacctsdk/apis/api_base.py index 9e92ef8..aa9a177 100644 --- a/sageintacctsdk/apis/api_base.py +++ b/sageintacctsdk/apis/api_base.py @@ -201,6 +201,7 @@ def __post_request(self, dict_body: dict, api_url: str): if parsed_response['response']['control']['status'] == 'failure': exception_msg = self.__decode_support_id(parsed_response['response']['errormessage']) + raise WrongParamsError('Some of the parameters are wrong', exception_msg) if api_response['authentication']['status'] == 'failure': @@ -358,6 +359,9 @@ def count(self): 'select': { 'field': 'RECORDNO' }, + 'filter': { + 'equalto': {'field': 'STATUS', 'value': 'active'} + }, 'pagesize': '1' } } diff --git a/setup.py b/setup.py index f4dfdc0..7b3f4c1 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='sageintacctsdk', - version='1.22.5', + version='1.23.0', author='Ashwin T', author_email='ashwin.t@fyle.in', description='Python SDK for accessing Sage Intacct APIs',