diff --git a/setup.py b/setup.py
index 4b7bda2..c1a54bb 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@
setup(
name='Avalara',
- version='23.11.0',
+ version='24.2.0',
url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK',
package_dir={'': 'src'},
packages=['avalara'],
diff --git a/src/avalara/client_methods.py b/src/avalara/client_methods.py
index e7d263c..181bf80 100644
--- a/src/avalara/client_methods.py
+++ b/src/avalara/client_methods.py
@@ -31,7 +31,7 @@ class Mixin:
"""
def account_reset_license_key(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -56,7 +56,7 @@ def account_reset_license_key(self, id_, model):
"""
def activate_account(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -87,7 +87,7 @@ def activate_account(self, id_, model):
"""
def audit_account(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -112,7 +112,7 @@ def audit_account(self, id_, include=None):
"""
def create_license_key(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -133,7 +133,7 @@ def create_license_key(self, id_, model):
"""
def delete_license_key(self, id_, licensekeyname):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -155,7 +155,7 @@ def delete_license_key(self, id_, licensekeyname):
"""
def get_account(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -181,7 +181,7 @@ def get_account(self, id_, include=None):
"""
def get_account_configuration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -199,7 +199,7 @@ def get_account_configuration(self, id_):
"""
def get_license_key(self, id_, licensekeyname):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -217,7 +217,7 @@ def get_license_key(self, id_, licensekeyname):
"""
def get_license_keys(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -235,7 +235,7 @@ def get_license_keys(self, id_):
"""
def list_mrs_accounts(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/mrs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -264,7 +264,7 @@ def list_mrs_accounts(self):
"""
def query_accounts(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -291,7 +291,7 @@ def query_accounts(self, include=None):
"""
def set_account_configuration(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -327,7 +327,7 @@ def set_account_configuration(self, id_, model):
"""
def resolve_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -352,7 +352,7 @@ def resolve_address(self, include=None):
"""
def resolve_address_post(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -370,7 +370,7 @@ def resolve_address_post(self, model):
"""
def create_company_lookup_file(self, accountId, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -387,7 +387,7 @@ def create_company_lookup_file(self, accountId, companyId, model):
"""
def delete_lookup_file(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -404,7 +404,7 @@ def delete_lookup_file(self, accountId, id_):
"""
def get_company_lookup_files(self, accountId, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -421,7 +421,7 @@ def get_company_lookup_files(self, accountId, companyId):
"""
def get_lookup_file(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -439,7 +439,7 @@ def get_lookup_file(self, accountId, id_):
"""
def update_lookup_file(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -456,7 +456,7 @@ def update_lookup_file(self, accountId, id_, model):
"""
def create_a_p_config_setting(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -477,7 +477,7 @@ def create_a_p_config_setting(self, companyid, model):
"""
def get_a_p_config_setting_by_company(self, companyid, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -497,7 +497,7 @@ def get_a_p_config_setting_by_company(self, companyid, include=None):
"""
def query_a_p_config_setting(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/apconfigsetting'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -514,7 +514,7 @@ def query_a_p_config_setting(self, include=None):
"""
def update_a_p_config_setting(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -534,7 +534,7 @@ def update_a_p_config_setting(self, companyid, model):
"""
def create_ava_file_forms(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -553,7 +553,7 @@ def create_ava_file_forms(self, model):
"""
def delete_ava_file_form(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -572,7 +572,7 @@ def delete_ava_file_form(self, id_):
"""
def get_ava_file_form(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -595,7 +595,7 @@ def get_ava_file_form(self, id_):
"""
def query_ava_file_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -616,7 +616,7 @@ def query_ava_file_forms(self, include=None):
"""
def update_ava_file_form(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -643,7 +643,7 @@ def update_ava_file_form(self, id_, model):
"""
def cancel_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -676,7 +676,7 @@ def cancel_batch(self, companyId, id_):
"""
def create_batches(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -708,7 +708,7 @@ def create_batches(self, companyId, model):
"""
def create_transaction_batch(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -734,7 +734,7 @@ def create_transaction_batch(self, companyId, model):
"""
def delete_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -754,7 +754,7 @@ def delete_batch(self, companyId, id_):
"""
def download_batch(self, companyId, batchId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -784,7 +784,7 @@ def download_batch(self, companyId, batchId, id_):
"""
def get_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -822,7 +822,7 @@ def get_batch(self, companyId, id_):
"""
def list_batches_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -857,7 +857,7 @@ def list_batches_by_company(self, companyId, include=None):
"""
def query_batches(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/batches'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -880,7 +880,7 @@ def query_batches(self, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that will record certificates
:param customerCode [string] The number of the customer where the request is sent to
@@ -889,7 +889,7 @@ def query_batches(self, include=None):
"""
def create_cert_express_invitation(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -912,7 +912,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that issued this invitation
:param customerCode [string] The number of the customer where the request is sent to
@@ -922,7 +922,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model):
"""
def get_cert_express_invitation(self, companyId, customerCode, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -945,7 +945,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that issued this invitation
:param include [string] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
@@ -957,7 +957,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None
"""
def list_cert_express_invitations(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -984,7 +984,7 @@ def list_cert_express_invitations(self, companyId, include=None):
If the users specified in the certificates do not exist, the API will create the user and link them to the certificate
### Security Policies
* This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company recording this certificate
:param preValidatedExemptionReason [boolean] If set to true, the certificate will bypass the human verification process.
@@ -993,7 +993,7 @@ def list_cert_express_invitations(self, companyId, include=None):
"""
def create_certificates(self, companyId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1014,7 +1014,7 @@ def create_certificates(self, companyId, model, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1022,7 +1022,7 @@ def create_certificates(self, companyId, model, include=None):
"""
def delete_certificate(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1044,7 +1044,7 @@ def delete_certificate(self, companyId, id_):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1054,7 +1054,7 @@ def delete_certificate(self, companyId, id_):
"""
def download_certificate_image(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1078,7 +1078,7 @@ def download_certificate_image(self, companyId, id_, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1087,7 +1087,7 @@ def download_certificate_image(self, companyId, id_, include=None):
"""
def get_certificate(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1104,14 +1104,14 @@ def get_certificate(self, companyId, id_, include=None):
be configured with data storage in the auditable certificate system.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The company ID to check
:return ProvisionStatusModel
"""
def get_certificate_setup(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1133,7 +1133,7 @@ def get_certificate_setup(self, companyId):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1142,7 +1142,7 @@ def get_certificate_setup(self, companyId):
"""
def link_attributes_to_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1165,7 +1165,7 @@ def link_attributes_to_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1174,7 +1174,7 @@ def link_attributes_to_certificate(self, companyId, id_, model):
"""
def link_customers_to_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1196,7 +1196,7 @@ def link_customers_to_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1204,7 +1204,7 @@ def link_customers_to_certificate(self, companyId, id_, model):
"""
def list_attributes_for_certificate(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1226,7 +1226,7 @@ def list_attributes_for_certificate(self, companyId, id_):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1235,7 +1235,7 @@ def list_attributes_for_certificate(self, companyId, id_):
"""
def list_customers_for_certificate(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1259,7 +1259,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company to search
:param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
@@ -1271,7 +1271,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None):
"""
def query_certificates(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1289,14 +1289,14 @@ def query_certificates(self, companyId, include=None):
This API will return the current status of exemption certificate setup for this company.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int]
:return ProvisionStatusModel
"""
def request_certificate_setup(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1318,7 +1318,7 @@ def request_certificate_setup(self, companyId):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1327,7 +1327,7 @@ def request_certificate_setup(self, companyId):
"""
def unlink_attributes_from_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1351,7 +1351,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1360,7 +1360,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model):
"""
def unlink_customers_from_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1380,7 +1380,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1389,7 +1389,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model):
"""
def update_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1411,7 +1411,7 @@ def update_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1420,7 +1420,7 @@ def update_certificate(self, companyId, id_, model):
"""
def upload_certificate_image(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1459,7 +1459,7 @@ def upload_certificate_image(self, companyId, id_):
"""
def certify_integration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1486,7 +1486,7 @@ def certify_integration(self, id_):
"""
def change_filing_status(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1513,7 +1513,7 @@ def change_filing_status(self, id_, model):
"""
def company_initialize(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/initialize'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1534,7 +1534,7 @@ def company_initialize(self, model):
"""
def create_companies(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1558,7 +1558,7 @@ def create_companies(self, model):
"""
def create_company_parameters(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1589,7 +1589,7 @@ def create_company_parameters(self, companyId, model):
"""
def create_funding_request(self, id_, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1607,7 +1607,7 @@ def create_funding_request(self, id_, model, include=None):
"""
def delete_company(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1629,7 +1629,7 @@ def delete_company(self, id_):
"""
def delete_company_parameter(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1651,7 +1651,7 @@ def delete_company_parameter(self, companyId, id_):
"""
def funding_configuration_by_company(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1674,7 +1674,7 @@ def funding_configuration_by_company(self, companyId):
"""
def funding_configurations_by_company_and_currency(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1704,7 +1704,7 @@ def funding_configurations_by_company_and_currency(self, companyId, include=None
"""
def get_company(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1730,7 +1730,7 @@ def get_company(self, id_, include=None):
"""
def get_company_configuration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1752,7 +1752,7 @@ def get_company_configuration(self, id_):
"""
def get_company_parameter_detail(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1780,7 +1780,7 @@ def get_company_parameter_detail(self, companyId, id_):
"""
def get_filing_status(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1804,7 +1804,7 @@ def get_filing_status(self, id_):
"""
def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1831,7 +1831,7 @@ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth):
"""
def list_company_parameter_details(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1853,7 +1853,7 @@ def list_company_parameter_details(self, companyId, include=None):
"""
def list_funding_requests_by_company(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1871,7 +1871,7 @@ def list_funding_requests_by_company(self, id_):
"""
def list_mrs_companies(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/mrs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1906,7 +1906,7 @@ def list_mrs_companies(self):
"""
def query_companies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1933,7 +1933,7 @@ def query_companies(self, include=None):
"""
def set_company_configuration(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1958,7 +1958,7 @@ def set_company_configuration(self, id_, model):
"""
def update_company(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1981,13 +1981,128 @@ def update_company(self, id_, model):
"""
def update_company_parameter_detail(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
r"""
Swagger Name: AvaTaxClient
+ Retrieve all unique jurisnames based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the jurisnames returned.
+ :param endDate [datetime] Used to limit the jurisnames returned.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_juris_names(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/jurisnames/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all RateOptions.
+
+ This API is available by invitation only.
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the jurisdictions or rates returned.
+ :param endDate [datetime] Used to limit the jurisdictions or rates returned.
+ :param aggregationOption [StackAggregationOption] Aggregation method used. (See StackAggregationOption::* for a list of allowable values)
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* taxRegionId, taxTypeCodeName, taxSubTypeCode, taxSubTypeCodeName, rateTypeCodeName, componentRate, taxAuthorityId, cityName, countyName, effDate, endDate
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_rate_options(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/rateOptions/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve StateConfig information
+
+ This API is available by invitation only.
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* effDate, endDate, hasBoundary, hasRates, isLocalAdmin, isLocalNexus, isSerState, minBoundaryLevelId, sstStatusId, state, stateFips, boundaryTableBaseName, stjCount, tsStateId, isJaasEnabled, hasSSTBoundary
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_state_config(self, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/stateconfig'.format(self.base_url),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all State Reporting Codes based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the StateReportingCodes or rates returned.
+ :param endDate [datetime] Used to limit the StateReportingCodes or rates returned.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* label
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_state_reporting_codes(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/stateReportingCodes/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all tax type mappings based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* taxTypeGroupIdSK, taxTypeIdSK, taxSubTypeIdSK, generalOrStandardRateTypeIdSK, taxTypeGroupId, taxTypeId, country, generalOrStandardRateTypeId
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_tax_type_mappings(self, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/taxtypemappings'.format(self.base_url),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
Create a new contact
Create one or more new contact objects.
@@ -2002,7 +2117,7 @@ def update_company_parameter_detail(self, companyId, id_, model):
"""
def create_contacts(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2021,7 +2136,7 @@ def create_contacts(self, companyId, model):
"""
def delete_contact(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2042,7 +2157,7 @@ def delete_contact(self, companyId, id_):
"""
def get_contact(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2066,7 +2181,7 @@ def get_contact(self, companyId, id_):
"""
def list_contacts_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2091,7 +2206,7 @@ def list_contacts_by_company(self, companyId, include=None):
"""
def query_contacts(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/contacts'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2115,7 +2230,7 @@ def query_contacts(self, include=None):
"""
def update_contact(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2132,7 +2247,7 @@ def update_contact(self, companyId, id_, model):
"""
def bulk_upload_cost_centers(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/costcenters/$upload'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2150,7 +2265,7 @@ def bulk_upload_cost_centers(self, companyid, model):
"""
def create_cost_center(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2167,7 +2282,7 @@ def create_cost_center(self, companyid, model):
"""
def delete_cost_center(self, companyid, costcenterid):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2184,7 +2299,7 @@ def delete_cost_center(self, companyid, costcenterid):
"""
def get_cost_center_by_id(self, companyid, costcenterid):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2205,7 +2320,7 @@ def get_cost_center_by_id(self, companyid, costcenterid):
"""
def list_cost_centers_by_company(self, companyid, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2225,7 +2340,7 @@ def list_cost_centers_by_company(self, companyid, include=None):
"""
def query_cost_centers(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/costcenters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2243,7 +2358,7 @@ def query_cost_centers(self, include=None):
"""
def update_cost_center(self, companyid, costcenterid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2266,7 +2381,7 @@ def update_cost_center(self, companyid, costcenterid, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param model [CustomerModel] The list of customer objects to be created
@@ -2274,7 +2389,7 @@ def update_cost_center(self, companyid, costcenterid, model):
"""
def create_customers(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2295,7 +2410,7 @@ def create_customers(self, companyId, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2303,7 +2418,7 @@ def create_customers(self, companyId, model):
"""
def delete_customer(self, companyId, customerCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2328,7 +2443,7 @@ def delete_customer(self, companyId, customerCode):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2337,7 +2452,7 @@ def delete_customer(self, companyId, customerCode):
"""
def get_customer(self, companyId, customerCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2360,7 +2475,7 @@ def get_customer(self, companyId, customerCode, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the provided customer
:param customerCode [string] The unique code representing the current customer
@@ -2369,7 +2484,7 @@ def get_customer(self, companyId, customerCode, include=None):
"""
def link_attributes_to_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2390,7 +2505,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2399,7 +2514,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model):
"""
def link_certificates_to_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2420,7 +2535,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model):
of the same kind together.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company defining customers.
:param code [string] The code of the bill-to customer to link.
@@ -2429,7 +2544,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model):
"""
def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2452,7 +2567,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the provided customer
:param customerCode [string] The unique code representing the current customer
@@ -2460,7 +2575,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
"""
def list_attributes_for_customer(self, companyId, customerCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2481,7 +2596,7 @@ def list_attributes_for_customer(self, companyId, customerCode):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2494,7 +2609,7 @@ def list_attributes_for_customer(self, companyId, customerCode):
"""
def list_certificates_for_customer(self, companyId, customerCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2517,7 +2632,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2527,7 +2642,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None):
"""
def list_valid_certificates_for_customer(self, companyId, customerCode, country, region):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2551,7 +2666,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country,
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param include [string] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
@@ -2563,7 +2678,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country,
"""
def query_customers(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2586,7 +2701,7 @@ def query_customers(self, companyId, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the customer
:param customerCode [string] The unique code representing the current customer
@@ -2595,7 +2710,7 @@ def query_customers(self, companyId, include=None):
"""
def unlink_attributes_from_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2616,7 +2731,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2625,7 +2740,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model):
"""
def unlink_certificates_from_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2646,7 +2761,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2655,7 +2770,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model):
"""
def update_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2675,7 +2790,7 @@ def update_customer(self, companyId, customerCode, model):
"""
def create_data_sources(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2695,7 +2810,7 @@ def create_data_sources(self, companyId, model):
"""
def delete_data_source(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2715,7 +2830,7 @@ def delete_data_source(self, companyId, id_):
"""
def get_data_source_by_id(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2738,7 +2853,7 @@ def get_data_source_by_id(self, companyId, id_):
"""
def list_data_sources(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2762,7 +2877,7 @@ def list_data_sources(self, companyId, include=None):
"""
def query_data_sources(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/datasources'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2783,7 +2898,7 @@ def query_data_sources(self, include=None):
"""
def update_data_source(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2808,7 +2923,7 @@ def update_data_source(self, companyId, id_, model):
"""
def get_cross_border_code(self, country, hsCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2829,7 +2944,7 @@ def get_cross_border_code(self, country, hsCode):
"""
def get_login_verifier_by_form(self, form, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2848,7 +2963,7 @@ def get_login_verifier_by_form(self, form, include=None):
"""
def list_all_marketplace_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2870,7 +2985,7 @@ def list_all_marketplace_locations(self, include=None):
"""
def list_ava_file_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2894,7 +3009,7 @@ def list_ava_file_forms(self, include=None):
"""
def list_certificate_attributes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2917,7 +3032,7 @@ def list_certificate_attributes(self, include=None):
"""
def list_certificate_exempt_reasons(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2940,7 +3055,7 @@ def list_certificate_exempt_reasons(self, include=None):
"""
def list_certificate_exposure_zones(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2961,7 +3076,7 @@ def list_certificate_exposure_zones(self, include=None):
"""
def list_classification_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2981,7 +3096,7 @@ def list_classification_parameters_usage(self, include=None):
"""
def list_communications_service_types(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3001,7 +3116,7 @@ def list_communications_service_types(self, id_, include=None):
"""
def list_communications_transaction_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3021,7 +3136,7 @@ def list_communications_transaction_types(self, include=None):
"""
def list_communications_t_s_pairs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3042,7 +3157,7 @@ def list_communications_t_s_pairs(self, include=None):
"""
def list_countries(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3066,7 +3181,7 @@ def list_countries(self, include=None):
"""
def list_cover_letters(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3094,7 +3209,7 @@ def list_cover_letters(self, include=None):
"""
def list_cross_border_codes(self, country, hsCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3115,7 +3230,7 @@ def list_cross_border_codes(self, country, hsCode, include=None):
"""
def list_cross_border_sections(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3136,7 +3251,7 @@ def list_cross_border_sections(self):
"""
def list_currencies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3159,7 +3274,7 @@ def list_currencies(self, include=None):
"""
def list_entity_use_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3179,7 +3294,7 @@ def list_entity_use_codes(self, include=None):
"""
def list_filing_frequencies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3193,7 +3308,7 @@ def list_filing_frequencies(self, include=None):
SQL-like query for fetching only the ones you concerned about. For example: effectiveDate > '2016-01-01'
The rate, salesRate, and useRate fields are not available on the JurisdictionModels returned by this API.
- :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* rate, salesRate, signatureCode, useRate, isAcm, isSst
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* rate, salesRate, signatureCode, useRate, isAcm, isSst, createDate, isLocalAdmin, taxAuthorityTypeId
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
:param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
:param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3201,7 +3316,7 @@ def list_filing_frequencies(self, include=None):
"""
def list_jurisdictions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3231,7 +3346,7 @@ def list_jurisdictions(self, include=None):
"""
def list_jurisdictions_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3259,7 +3374,7 @@ def list_jurisdictions_by_address(self, include=None):
"""
def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3272,7 +3387,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t
This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state.
The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API.
- :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst, createDate, isLocalAdmin, taxAuthorityTypeId
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
:param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
:param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3280,7 +3395,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t
"""
def list_jurisdictions_hierarchy(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions/hierarchy'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3299,7 +3414,7 @@ def list_jurisdictions_hierarchy(self, include=None):
"""
def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3332,7 +3447,7 @@ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxType
"""
def list_location_questions_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3353,7 +3468,7 @@ def list_location_questions_by_address(self, include=None):
"""
def list_login_verifiers(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3372,7 +3487,7 @@ def list_login_verifiers(self, include=None):
"""
def list_marketplace_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3392,7 +3507,7 @@ def list_marketplace_locations(self, include=None):
"""
def list_nexus(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3422,7 +3537,7 @@ def list_nexus(self, include=None):
"""
def list_nexus_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3443,7 +3558,7 @@ def list_nexus_by_address(self, include=None):
"""
def list_nexus_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3465,7 +3580,7 @@ def list_nexus_by_country(self, country, include=None):
"""
def list_nexus_by_country_and_region(self, country, region, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3490,7 +3605,7 @@ def list_nexus_by_country_and_region(self, country, region, include=None):
"""
def list_nexus_by_form_code(self, formCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3511,7 +3626,7 @@ def list_nexus_by_form_code(self, formCode):
"""
def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3531,7 +3646,7 @@ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None):
"""
def list_nexus_tax_type_groups(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3551,7 +3666,7 @@ def list_nexus_tax_type_groups(self, include=None):
"""
def list_notice_customer_funding_options(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3571,7 +3686,7 @@ def list_notice_customer_funding_options(self, include=None):
"""
def list_notice_customer_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3591,7 +3706,7 @@ def list_notice_customer_types(self, include=None):
"""
def list_notice_filingtypes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3611,7 +3726,7 @@ def list_notice_filingtypes(self, include=None):
"""
def list_notice_priorities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3631,7 +3746,7 @@ def list_notice_priorities(self, include=None):
"""
def list_notice_reasons(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3651,7 +3766,7 @@ def list_notice_reasons(self, include=None):
"""
def list_notice_responsibilities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3671,7 +3786,7 @@ def list_notice_responsibilities(self, include=None):
"""
def list_notice_root_causes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3691,7 +3806,7 @@ def list_notice_root_causes(self, include=None):
"""
def list_notice_statuses(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3711,7 +3826,7 @@ def list_notice_statuses(self, include=None):
"""
def list_notice_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3732,7 +3847,7 @@ def list_notice_types(self, include=None):
"""
def list_parameters(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3752,7 +3867,7 @@ def list_parameters(self, include=None):
"""
def list_parameters_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/accounts/{}/parameters'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3786,7 +3901,7 @@ def list_parameters_by_account(self, accountId, include=None):
"""
def list_parameters_by_item(self, companyCode, itemCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3807,7 +3922,7 @@ def list_parameters_by_item(self, companyCode, itemCode, include=None):
"""
def list_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3825,7 +3940,7 @@ def list_parameters_usage(self, include=None):
"""
def list_permissions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3845,7 +3960,7 @@ def list_permissions(self, include=None):
"""
def list_postal_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3870,7 +3985,7 @@ def list_postal_codes(self, include=None):
"""
def list_preferred_programs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3892,7 +4007,7 @@ def list_preferred_programs(self, include=None):
"""
def list_product_classification_systems(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3921,7 +4036,7 @@ def list_product_classification_systems(self, include=None):
"""
def list_product_classification_systems_by_company(self, companyCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3942,7 +4057,7 @@ def list_product_classification_systems_by_company(self, companyCode, include=No
"""
def list_rate_types_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3965,7 +4080,7 @@ def list_rate_types_by_country(self, country, include=None):
"""
def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3986,7 +4101,7 @@ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, t
"""
def list_regions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/regions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4008,7 +4123,7 @@ def list_regions(self, include=None):
"""
def list_regions_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4034,7 +4149,7 @@ def list_regions_by_country(self, country, include=None):
"""
def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/companies/{}/countries/{}/regions/taxtypes/{}/taxsubtypes/{}/rateTypeId/{}/jurisdictionTypeId/{}'.format(self.base_url, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4054,7 +4169,7 @@ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, co
"""
def list_resource_file_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/resourcefiletypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4075,7 +4190,7 @@ def list_resource_file_types(self, include=None):
"""
def list_returns_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4096,7 +4211,7 @@ def list_returns_parameters_usage(self, include=None):
"""
def list_security_roles(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4118,7 +4233,7 @@ def list_security_roles(self, include=None):
"""
def list_subscription_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4137,7 +4252,7 @@ def list_subscription_types(self, include=None):
"""
def list_tags(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/tags'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4157,7 +4272,7 @@ def list_tags(self, include=None):
"""
def list_tax_authorities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4179,7 +4294,7 @@ def list_tax_authorities(self, include=None):
"""
def list_tax_authority_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4199,7 +4314,7 @@ def list_tax_authority_forms(self, include=None):
"""
def list_tax_authority_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4224,7 +4339,7 @@ def list_tax_authority_types(self, include=None):
"""
def list_tax_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4243,7 +4358,7 @@ def list_tax_codes(self, include=None):
"""
def list_tax_code_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4263,7 +4378,7 @@ def list_tax_code_types(self, include=None):
"""
def list_tax_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4283,7 +4398,7 @@ def list_tax_forms(self, include=None):
"""
def list_tax_sub_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4306,7 +4421,7 @@ def list_tax_sub_types(self, include=None):
"""
def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4328,7 +4443,7 @@ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include
"""
def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4348,7 +4463,7 @@ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region
"""
def list_tax_type_groups(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4368,7 +4483,7 @@ def list_tax_type_groups(self, include=None):
"""
def list_tax_types_by_nexus_and_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4390,7 +4505,7 @@ def list_tax_types_by_nexus_and_country(self, country, include=None):
"""
def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4410,7 +4525,7 @@ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(se
"""
def list_unit_of_measurement(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4432,7 +4547,7 @@ def list_unit_of_measurement(self, include=None):
"""
def create_distance_threshold(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4454,7 +4569,7 @@ def create_distance_threshold(self, companyId, model):
"""
def delete_distance_threshold(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4476,7 +4591,7 @@ def delete_distance_threshold(self, companyId, id_):
"""
def get_distance_threshold(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4502,7 +4617,7 @@ def get_distance_threshold(self, companyId, id_):
"""
def list_distance_thresholds(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4529,7 +4644,7 @@ def list_distance_thresholds(self, companyId, include=None):
"""
def query_distance_thresholds(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/distancethresholds'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4554,7 +4669,7 @@ def query_distance_thresholds(self, include=None):
"""
def update_distance_threshold(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4570,7 +4685,7 @@ def update_distance_threshold(self, companyId, id_, model):
"""
def create_dcv(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/domain-control-verifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4586,7 +4701,7 @@ def create_dcv(self, model):
"""
def filter_dcv(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/domain-control-verifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4602,7 +4717,7 @@ def filter_dcv(self, include=None):
"""
def get_dcv_by_id(self, domainControlVerificationId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/domain-control-verifications/{}'.format(self.base_url, domainControlVerificationId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4622,7 +4737,7 @@ def get_dcv_by_id(self, domainControlVerificationId):
"""
def create_e_commerce_token(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4642,7 +4757,7 @@ def create_e_commerce_token(self, companyId, model):
"""
def refresh_e_commerce_token(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4660,7 +4775,7 @@ def refresh_e_commerce_token(self, companyId, model):
"""
def approve_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4684,7 +4799,7 @@ def approve_firm_client_linkage(self, id_):
"""
def create_and_link_new_firm_client_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4702,7 +4817,7 @@ def create_and_link_new_firm_client_account(self, model):
"""
def create_firm_client_linkage(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4720,7 +4835,7 @@ def create_firm_client_linkage(self, model):
"""
def delete_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4738,7 +4853,7 @@ def delete_firm_client_linkage(self, id_):
"""
def get_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4756,7 +4871,7 @@ def get_firm_client_linkage(self, id_):
"""
def list_firm_client_linkage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4774,7 +4889,7 @@ def list_firm_client_linkage(self, include=None):
"""
def reject_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4792,7 +4907,7 @@ def reject_firm_client_linkage(self, id_):
"""
def reset_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4810,37 +4925,13 @@ def reset_firm_client_linkage(self, id_):
"""
def revoke_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
r"""
Swagger Name: AvaTaxClient
- FREE API - Request a free trial of AvaTax
-
- Call this API to obtain a free AvaTax account.
- This API is free to use. No authentication credentials are required to call this API. You must read and
- accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be
- created.
- If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality
- available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).
- After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).
- ### Security Policies
- * This API may be called without providing authentication credentials.
-
- :param model [FreeTrialRequestModel] Required information to provision a free trial account.
- :return NewAccountModel
- """
- def request_free_trial(self, model):
- if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
- return requests.post('{}/api/v2/accounts/freetrials/request'.format(self.base_url),
- auth=self.auth, headers=self.client_header, json=model,
- timeout=self.timeout_limit if self.timeout_limit else 1200)
- r"""
- Swagger Name: AvaTaxClient
-
Request the javascript for a funding setup widget
This API is available by invitation only.
@@ -4866,7 +4957,7 @@ def request_free_trial(self, model):
"""
def activate_funding_request(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4896,7 +4987,7 @@ def activate_funding_request(self, id_, include=None):
"""
def funding_request_status(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4917,7 +5008,7 @@ def funding_request_status(self, id_, include=None):
"""
def batch_delete_item_classifications(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4939,7 +5030,7 @@ def batch_delete_item_classifications(self, companyId, itemId):
"""
def batch_delete_item_parameters(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4964,7 +5055,7 @@ def batch_delete_item_parameters(self, companyId, itemId):
"""
def bulk_upload_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4987,7 +5078,7 @@ def bulk_upload_items(self, companyId, model):
"""
def create_item_classifications(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5012,7 +5103,7 @@ def create_item_classifications(self, companyId, itemId, model):
"""
def create_item_parameters(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5037,7 +5128,7 @@ def create_item_parameters(self, companyId, itemId, model):
"""
def create_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5058,7 +5149,7 @@ def create_items(self, companyId, model):
"""
def create_item_tags(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5080,7 +5171,7 @@ def create_item_tags(self, companyId, itemId, model):
"""
def create_tax_code_classification_request(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5110,7 +5201,7 @@ def create_tax_code_classification_request(self, companyId, model):
"""
def delete_catalogue_item(self, companyId, itemCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5135,7 +5226,7 @@ def delete_catalogue_item(self, companyId, itemCode):
"""
def delete_item(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5157,7 +5248,7 @@ def delete_item(self, companyId, id_):
"""
def delete_item_classification(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5180,7 +5271,7 @@ def delete_item_classification(self, companyId, itemId, id_):
"""
def delete_item_parameter(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5201,7 +5292,7 @@ def delete_item_parameter(self, companyId, itemId, id_):
"""
def delete_item_tag(self, companyId, itemId, itemTagDetailId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5221,7 +5312,7 @@ def delete_item_tag(self, companyId, itemId, itemTagDetailId):
"""
def delete_item_tags(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5248,7 +5339,7 @@ def delete_item_tags(self, companyId, itemId):
"""
def get_classification_status(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5273,7 +5364,7 @@ def get_classification_status(self, companyId, include=None):
"""
def get_item(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5295,7 +5386,7 @@ def get_item(self, companyId, id_, include=None):
"""
def get_item_classification(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5318,7 +5409,7 @@ def get_item_classification(self, companyId, itemId, id_):
"""
def get_item_parameter(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5341,7 +5432,7 @@ def get_item_parameter(self, companyId, itemId, id_):
"""
def get_item_tags(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5369,7 +5460,7 @@ def get_item_tags(self, companyId, itemId, include=None):
"""
def get_premium_classification(self, companyId, itemCode, systemCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5395,7 +5486,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode):
"""
def get_tax_code_recommendations(self, companyId, requestId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode/{}/recommendations'.format(self.base_url, companyId, requestId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5426,7 +5517,7 @@ def get_tax_code_recommendations(self, companyId, requestId, include=None):
"""
def list_import_restrictions(self, companyId, itemCode, countryOfImport, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5453,7 +5544,7 @@ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include
"""
def list_item_classifications(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5481,7 +5572,7 @@ def list_item_classifications(self, companyId, itemId, include=None):
"""
def list_item_parameters(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5518,7 +5609,7 @@ def list_item_parameters(self, companyId, itemId, include=None):
"""
def list_items_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5547,7 +5638,7 @@ def list_items_by_company(self, companyId, include=None):
"""
def query_items(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/items'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5578,7 +5669,7 @@ def query_items(self, include=None):
"""
def query_items_by_tag(self, companyId, tag, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5601,7 +5692,7 @@ def query_items_by_tag(self, companyId, tag, include=None):
"""
def sync_item_catalogue(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5628,7 +5719,7 @@ def sync_item_catalogue(self, companyId, model):
"""
def sync_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5656,7 +5747,7 @@ def sync_items(self, companyId, model):
"""
def update_item(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5680,7 +5771,7 @@ def update_item(self, companyId, id_, model):
"""
def update_item_classification(self, companyId, itemId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5704,7 +5795,7 @@ def update_item_classification(self, companyId, itemId, id_, model):
"""
def update_item_parameter(self, companyId, itemId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5727,7 +5818,7 @@ def update_item_parameter(self, companyId, itemId, id_, model):
"""
def create_jurisdiction_overrides(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5746,7 +5837,7 @@ def create_jurisdiction_overrides(self, accountId, model):
"""
def delete_jurisdiction_override(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5769,7 +5860,7 @@ def delete_jurisdiction_override(self, accountId, id_):
"""
def get_jurisdiction_override(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5798,7 +5889,7 @@ def get_jurisdiction_override(self, accountId, id_):
"""
def list_jurisdiction_overrides_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5826,7 +5917,7 @@ def list_jurisdiction_overrides_by_account(self, accountId, include=None):
"""
def query_jurisdiction_overrides(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5846,7 +5937,7 @@ def query_jurisdiction_overrides(self, include=None):
"""
def update_jurisdiction_override(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5871,7 +5962,7 @@ def update_jurisdiction_override(self, accountId, id_, model):
"""
def create_location_parameters(self, companyId, locationId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5890,7 +5981,7 @@ def create_location_parameters(self, companyId, locationId, model):
"""
def create_locations(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5909,7 +6000,7 @@ def create_locations(self, companyId, model):
"""
def delete_location(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5932,7 +6023,7 @@ def delete_location(self, companyId, id_):
"""
def delete_location_parameter(self, companyId, locationId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5959,7 +6050,7 @@ def delete_location_parameter(self, companyId, locationId, id_):
"""
def get_location(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5982,7 +6073,7 @@ def get_location(self, companyId, id_, include=None):
"""
def get_location_parameter(self, companyId, locationId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6010,7 +6101,7 @@ def get_location_parameter(self, companyId, locationId, id_):
"""
def list_location_parameters(self, companyId, locationId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6042,7 +6133,7 @@ def list_location_parameters(self, companyId, locationId, include=None):
"""
def list_locations_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6073,7 +6164,7 @@ def list_locations_by_company(self, companyId, include=None):
"""
def query_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/locations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6095,7 +6186,7 @@ def query_locations(self, include=None):
"""
def update_location(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6119,7 +6210,7 @@ def update_location(self, companyId, id_, model):
"""
def update_location_parameter(self, companyId, locationId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6140,7 +6231,7 @@ def update_location_parameter(self, companyId, locationId, id_, model):
"""
def validate_location(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6174,7 +6265,7 @@ def validate_location(self, companyId, id_):
"""
def adjust_multi_document_transaction(self, code, type, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6211,7 +6302,7 @@ def adjust_multi_document_transaction(self, code, type, model, include=None):
"""
def audit_multi_document_transaction(self, code, type):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6241,7 +6332,7 @@ def audit_multi_document_transaction(self, code, type):
"""
def commit_multi_document_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6291,7 +6382,7 @@ def commit_multi_document_transaction(self, model):
"""
def create_multi_document_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6327,7 +6418,7 @@ def create_multi_document_transaction(self, model, include=None):
"""
def get_multi_document_transaction_by_code_and_type(self, code, type, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6369,7 +6460,7 @@ def get_multi_document_transaction_by_code_and_type(self, code, type, include=No
"""
def get_multi_document_transaction_by_id(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6412,7 +6503,7 @@ def get_multi_document_transaction_by_id(self, id_, include=None):
"""
def list_multi_document_transactions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6467,7 +6558,7 @@ def list_multi_document_transactions(self, include=None):
"""
def refund_multi_document_transaction(self, code, type, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6496,7 +6587,7 @@ def refund_multi_document_transaction(self, code, type, model, include=None):
"""
def verify_multi_document_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6529,7 +6620,7 @@ def verify_multi_document_transaction(self, model):
"""
def void_multi_document_transaction(self, code, type, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6561,7 +6652,7 @@ def void_multi_document_transaction(self, code, type, model):
"""
def create_nexus(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6586,7 +6677,7 @@ def create_nexus(self, companyId, model):
"""
def create_nexus_parameters(self, companyId, nexusId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6615,7 +6706,7 @@ def create_nexus_parameters(self, companyId, nexusId, model):
"""
def declare_nexus_by_address(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6640,7 +6731,7 @@ def declare_nexus_by_address(self, companyId, model):
"""
def delete_nexus(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6663,7 +6754,7 @@ def delete_nexus(self, companyId, id_, include=None):
"""
def delete_nexus_parameter(self, companyId, nexusId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6685,7 +6776,7 @@ def delete_nexus_parameter(self, companyId, nexusId, id_):
"""
def delete_nexus_parameters(self, companyId, nexusId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6710,7 +6801,7 @@ def delete_nexus_parameters(self, companyId, nexusId):
"""
def get_nexus(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6738,7 +6829,7 @@ def get_nexus(self, companyId, id_, include=None):
"""
def get_nexus_by_form_code(self, companyId, formCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6761,7 +6852,7 @@ def get_nexus_by_form_code(self, companyId, formCode, include=None):
"""
def get_nexus_parameter(self, companyId, nexusId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6791,7 +6882,7 @@ def get_nexus_parameter(self, companyId, nexusId, id_):
"""
def list_nexus_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6822,7 +6913,7 @@ def list_nexus_by_company(self, companyId, include=None):
"""
def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6850,7 +6941,7 @@ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, incl
"""
def list_nexus_parameters(self, companyId, nexusId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6879,7 +6970,7 @@ def list_nexus_parameters(self, companyId, nexusId, include=None):
"""
def query_nexus(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/nexus'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6912,7 +7003,7 @@ def query_nexus(self, include=None):
"""
def update_nexus(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6936,7 +7027,7 @@ def update_nexus(self, companyId, id_, model):
"""
def update_nexus_parameter(self, companyId, nexusId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6955,7 +7046,7 @@ def update_nexus_parameter(self, companyId, nexusId, id_, model):
"""
def create_notice_responsibility_type(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6974,7 +7065,7 @@ def create_notice_responsibility_type(self, model):
"""
def create_notice_root_cause_type(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6992,7 +7083,7 @@ def create_notice_root_cause_type(self, model):
"""
def delete_notice_responsibility_type(self, responsibilityId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7010,7 +7101,7 @@ def delete_notice_responsibility_type(self, responsibilityId):
"""
def delete_notice_root_cause_type(self, rootCauseId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7037,7 +7128,7 @@ def delete_notice_root_cause_type(self, rootCauseId):
"""
def dismiss_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7060,7 +7151,7 @@ def dismiss_notification(self, id_):
"""
def get_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7088,7 +7179,7 @@ def get_notification(self, id_):
"""
def list_notifications(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/notifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7118,7 +7209,7 @@ def list_notifications(self, include=None):
"""
def request_new_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/request'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7140,7 +7231,7 @@ def request_new_account(self, model):
"""
def request_new_entitlement(self, id_, offer):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7161,7 +7252,7 @@ def request_new_entitlement(self, id_, offer):
"""
def create_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7188,7 +7279,7 @@ def create_account(self, model):
"""
def create_notifications(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7210,7 +7301,7 @@ def create_notifications(self, model):
"""
def create_subscriptions(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7231,7 +7322,7 @@ def create_subscriptions(self, accountId, model):
"""
def delete_account(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7256,7 +7347,7 @@ def delete_account(self, id_):
"""
def delete_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7277,7 +7368,7 @@ def delete_notification(self, id_):
"""
def delete_subscription(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7303,7 +7394,7 @@ def delete_subscription(self, accountId, id_):
"""
def list_service_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7328,7 +7419,7 @@ def list_service_types(self, include=None):
"""
def reset_password(self, userId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7349,7 +7440,7 @@ def reset_password(self, userId, model, include=None):
"""
def update_account(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7375,7 +7466,7 @@ def update_account(self, id_, model):
"""
def update_notification(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7401,7 +7492,7 @@ def update_notification(self, id_, model):
"""
def update_subscription(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7428,7 +7519,7 @@ def update_subscription(self, accountId, id_, model):
"""
def download_report(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7451,7 +7542,7 @@ def download_report(self, id_):
"""
def get_report(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7483,7 +7574,7 @@ def get_report(self, id_):
"""
def initiate_export_document_line_report(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7511,7 +7602,7 @@ def initiate_export_document_line_report(self, companyId, model):
"""
def list_reports(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7540,7 +7631,7 @@ def list_reports(self, include=None):
"""
def create_settings(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7566,7 +7657,7 @@ def create_settings(self, companyId, model):
"""
def delete_setting(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7592,7 +7683,7 @@ def delete_setting(self, companyId, id_):
"""
def get_setting(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7624,7 +7715,7 @@ def get_setting(self, companyId, id_):
"""
def list_settings_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7655,7 +7746,7 @@ def list_settings_by_company(self, companyId, include=None):
"""
def query_settings(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/settings'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7684,7 +7775,7 @@ def query_settings(self, include=None):
"""
def update_setting(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7705,7 +7796,7 @@ def update_setting(self, companyId, id_, model):
"""
def get_subscription(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7731,7 +7822,7 @@ def get_subscription(self, accountId, id_):
"""
def list_subscriptions_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7756,7 +7847,7 @@ def list_subscriptions_by_account(self, accountId, include=None):
"""
def query_subscriptions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/subscriptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7779,7 +7870,7 @@ def query_subscriptions(self, include=None):
"""
def create_tax_codes(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7798,7 +7889,7 @@ def create_tax_codes(self, companyId, model):
"""
def delete_tax_code(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7821,7 +7912,7 @@ def delete_tax_code(self, companyId, id_):
"""
def get_tax_code(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7850,7 +7941,7 @@ def get_tax_code(self, companyId, id_):
"""
def list_tax_codes_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7878,7 +7969,7 @@ def list_tax_codes_by_company(self, companyId, include=None):
"""
def query_tax_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7904,7 +7995,7 @@ def query_tax_codes(self, include=None):
"""
def update_tax_code(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7939,7 +8030,7 @@ def update_tax_code(self, companyId, id_, model):
"""
def build_tax_content_file(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7979,7 +8070,7 @@ def build_tax_content_file(self, model):
"""
def build_tax_content_file_for_location(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8030,7 +8121,7 @@ def build_tax_content_file_for_location(self, companyId, id_, include=None):
"""
def download_tax_rates_by_zip_code(self, date, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8069,7 +8160,7 @@ def download_tax_rates_by_zip_code(self, date, include=None):
"""
def tax_rates_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8104,7 +8195,7 @@ def tax_rates_by_address(self, include=None):
"""
def tax_rates_by_postal_code(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8127,7 +8218,7 @@ def tax_rates_by_postal_code(self, include=None):
"""
def create_country_coefficients(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/countryCoefficients'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8155,7 +8246,7 @@ def create_country_coefficients(self, model):
"""
def create_tax_rules(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8183,7 +8274,7 @@ def create_tax_rules(self, companyId, model):
"""
def delete_tax_rule(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8211,7 +8302,7 @@ def delete_tax_rule(self, companyId, id_):
"""
def get_tax_rule(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8234,7 +8325,7 @@ def get_tax_rule(self, companyId, id_):
"""
def list_country_coefficients(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/{}/CountryCoefficients'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8268,7 +8359,7 @@ def list_country_coefficients(self, country, include=None):
"""
def list_tax_rules(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8301,7 +8392,7 @@ def list_tax_rules(self, companyId, include=None):
"""
def query_tax_rules(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrules'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8330,7 +8421,7 @@ def query_tax_rules(self, include=None):
"""
def update_tax_rule(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8366,7 +8457,7 @@ def update_tax_rule(self, companyId, id_, model):
"""
def add_lines(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8412,7 +8503,7 @@ def add_lines(self, model, include=None):
"""
def adjust_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8449,7 +8540,7 @@ def adjust_transaction(self, companyCode, transactionCode, model, include=None):
"""
def audit_transaction(self, companyCode, transactionCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8487,7 +8578,7 @@ def audit_transaction(self, companyCode, transactionCode):
"""
def audit_transaction_with_type(self, companyCode, transactionCode, documentType):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8510,7 +8601,7 @@ def audit_transaction_with_type(self, companyCode, transactionCode, documentType
"""
def bulk_lock_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/lock'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8555,7 +8646,7 @@ def bulk_lock_transaction(self, model):
"""
def change_transaction_code(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8598,7 +8689,7 @@ def change_transaction_code(self, companyCode, transactionCode, model, include=N
"""
def commit_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8644,7 +8735,7 @@ def commit_transaction(self, companyCode, transactionCode, model, include=None):
"""
def create_or_adjust_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8695,7 +8786,7 @@ def create_or_adjust_transaction(self, model, include=None):
"""
def create_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/create'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8728,7 +8819,7 @@ def create_transaction(self, model, include=None):
"""
def delete_lines(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8746,7 +8837,7 @@ def delete_lines(self, model, include=None):
"""
def get_all_variance_report_by_company_code(self, companyCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8788,7 +8879,7 @@ def get_all_variance_report_by_company_code(self, companyCode):
"""
def get_transaction_by_code(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8817,7 +8908,7 @@ def get_transaction_by_code(self, companyCode, transactionCode, include=None):
"""
def get_transaction_by_code_and_type(self, companyCode, transactionCode, documentType, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8849,7 +8940,7 @@ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documen
"""
def get_transaction_by_id(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8868,7 +8959,7 @@ def get_transaction_by_id(self, id_, include=None):
"""
def get_variance_report_by_company_code_by_transaction_id(self, companyCode, transactionId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8915,7 +9006,7 @@ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, tra
"""
def list_transactions_by_company(self, companyCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8960,7 +9051,7 @@ def list_transactions_by_company(self, companyCode, include=None):
"""
def lock_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9015,7 +9106,7 @@ def lock_transaction(self, companyCode, transactionCode, model, include=None):
"""
def refund_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9058,7 +9149,7 @@ def refund_transaction(self, companyCode, transactionCode, model, include=None):
"""
def settle_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9098,7 +9189,7 @@ def settle_transaction(self, companyCode, transactionCode, model, include=None):
"""
def uncommit_transaction(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9136,7 +9227,7 @@ def uncommit_transaction(self, companyCode, transactionCode, include=None):
"""
def unvoid_transaction(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9155,7 +9246,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None):
"""
def variance_report(self, companyCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9198,7 +9289,7 @@ def variance_report(self, companyCode, model):
"""
def verify_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9242,7 +9333,7 @@ def verify_transaction(self, companyCode, transactionCode, model, include=None):
"""
def void_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9263,7 +9354,7 @@ def void_transaction(self, companyCode, transactionCode, model, include=None):
"""
def create_u_p_cs(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9283,7 +9374,7 @@ def create_u_p_cs(self, companyId, model):
"""
def delete_u_p_c(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9304,7 +9395,7 @@ def delete_u_p_c(self, companyId, id_):
"""
def get_u_p_c(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9331,7 +9422,7 @@ def get_u_p_c(self, companyId, id_):
"""
def list_u_p_cs_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9357,7 +9448,7 @@ def list_u_p_cs_by_company(self, companyId, include=None):
"""
def query_u_p_cs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/upcs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9381,7 +9472,7 @@ def query_u_p_cs(self, include=None):
"""
def update_u_p_c(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9401,7 +9492,7 @@ def update_u_p_c(self, companyId, id_, model):
"""
def delete_user_defined_field(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9421,7 +9512,7 @@ def delete_user_defined_field(self, companyId, id_):
"""
def list_user_defined_fields_by_company_id(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9442,7 +9533,7 @@ def list_user_defined_fields_by_company_id(self, companyId, include=None):
"""
def update_user_defined_field(self, companyId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9464,7 +9555,7 @@ def update_user_defined_field(self, companyId, model, include=None):
"""
def change_password(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/passwords'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9488,7 +9579,7 @@ def change_password(self, model):
"""
def create_users(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9510,7 +9601,7 @@ def create_users(self, accountId, model):
"""
def delete_user(self, id_, accountId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9533,7 +9624,7 @@ def delete_user(self, id_, accountId):
"""
def get_user(self, id_, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9564,7 +9655,7 @@ def get_user(self, id_, accountId, include=None):
"""
def get_user_entitlements(self, id_, accountId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9594,7 +9685,7 @@ def get_user_entitlements(self, id_, accountId):
"""
def list_users_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9624,7 +9715,7 @@ def list_users_by_account(self, accountId, include=None):
"""
def query_users(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/users'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9647,7 +9738,7 @@ def query_users(self, include=None):
"""
def update_user(self, id_, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9668,7 +9759,7 @@ def update_user(self, id_, accountId, model):
"""
def get_my_subscription(self, serviceTypeId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9688,7 +9779,7 @@ def get_my_subscription(self, serviceTypeId):
"""
def list_my_subscriptions(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9717,7 +9808,7 @@ def list_my_subscriptions(self):
"""
def ping(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/ping'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
diff --git a/src/client_methods.py b/src/client_methods.py
index 571bf30..fcd7cc9 100644
--- a/src/client_methods.py
+++ b/src/client_methods.py
@@ -30,7 +30,7 @@ class Mixin:
"""
def account_reset_license_key(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/resetlicensekey'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -55,7 +55,7 @@ def account_reset_license_key(self, id_, model):
"""
def activate_account(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/activate'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -86,7 +86,7 @@ def activate_account(self, id_, model):
"""
def audit_account(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/audit'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -111,7 +111,7 @@ def audit_account(self, id_, include=None):
"""
def create_license_key(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/licensekey'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -132,7 +132,7 @@ def create_license_key(self, id_, model):
"""
def delete_license_key(self, id_, licensekeyname):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -154,7 +154,7 @@ def delete_license_key(self, id_, licensekeyname):
"""
def get_account(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -180,7 +180,7 @@ def get_account(self, id_, include=None):
"""
def get_account_configuration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -198,7 +198,7 @@ def get_account_configuration(self, id_):
"""
def get_license_key(self, id_, licensekeyname):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/licensekey/{}'.format(self.base_url, id_, licensekeyname),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -216,7 +216,7 @@ def get_license_key(self, id_, licensekeyname):
"""
def get_license_keys(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/licensekeys'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -234,7 +234,7 @@ def get_license_keys(self, id_):
"""
def list_mrs_accounts(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/mrs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -263,7 +263,7 @@ def list_mrs_accounts(self):
"""
def query_accounts(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -290,7 +290,7 @@ def query_accounts(self, include=None):
"""
def set_account_configuration(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -326,7 +326,7 @@ def set_account_configuration(self, id_, model):
"""
def resolve_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/addresses/resolve'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -351,7 +351,7 @@ def resolve_address(self, include=None):
"""
def resolve_address_post(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/addresses/resolve'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -369,7 +369,7 @@ def resolve_address_post(self, model):
"""
def create_company_lookup_file(self, accountId, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -386,7 +386,7 @@ def create_company_lookup_file(self, accountId, companyId, model):
"""
def delete_lookup_file(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -403,7 +403,7 @@ def delete_lookup_file(self, accountId, id_):
"""
def get_company_lookup_files(self, accountId, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/advancedrules/accounts/{}/companies/{}/lookupFiles'.format(self.base_url, accountId, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -420,7 +420,7 @@ def get_company_lookup_files(self, accountId, companyId):
"""
def get_lookup_file(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -438,7 +438,7 @@ def get_lookup_file(self, accountId, id_):
"""
def update_lookup_file(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/advancedrules/accounts/{}/lookupFiles/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -455,7 +455,7 @@ def update_lookup_file(self, accountId, id_, model):
"""
def create_a_p_config_setting(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -476,7 +476,7 @@ def create_a_p_config_setting(self, companyid, model):
"""
def get_a_p_config_setting_by_company(self, companyid, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -496,7 +496,7 @@ def get_a_p_config_setting_by_company(self, companyid, include=None):
"""
def query_a_p_config_setting(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/apconfigsetting'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -513,7 +513,7 @@ def query_a_p_config_setting(self, include=None):
"""
def update_a_p_config_setting(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/apconfigsetting'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -533,7 +533,7 @@ def update_a_p_config_setting(self, companyid, model):
"""
def create_ava_file_forms(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -552,7 +552,7 @@ def create_ava_file_forms(self, model):
"""
def delete_ava_file_form(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -571,7 +571,7 @@ def delete_ava_file_form(self, id_):
"""
def get_ava_file_form(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -594,7 +594,7 @@ def get_ava_file_form(self, id_):
"""
def query_ava_file_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -615,7 +615,7 @@ def query_ava_file_forms(self, include=None):
"""
def update_ava_file_form(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/avafileforms/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -642,7 +642,7 @@ def update_ava_file_form(self, id_, model):
"""
def cancel_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches/{}/cancel'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -675,7 +675,7 @@ def cancel_batch(self, companyId, id_):
"""
def create_batches(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -707,7 +707,7 @@ def create_batches(self, companyId, model):
"""
def create_transaction_batch(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/batches/transactions'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -733,7 +733,7 @@ def create_transaction_batch(self, companyId, model):
"""
def delete_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -753,7 +753,7 @@ def delete_batch(self, companyId, id_):
"""
def download_batch(self, companyId, batchId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches/{}/files/{}/attachment'.format(self.base_url, companyId, batchId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -783,7 +783,7 @@ def download_batch(self, companyId, batchId, id_):
"""
def get_batch(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -821,7 +821,7 @@ def get_batch(self, companyId, id_):
"""
def list_batches_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/batches'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -856,7 +856,7 @@ def list_batches_by_company(self, companyId, include=None):
"""
def query_batches(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/batches'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -879,7 +879,7 @@ def query_batches(self, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that will record certificates
:param customerCode [string] The number of the customer where the request is sent to
@@ -888,7 +888,7 @@ def query_batches(self, include=None):
"""
def create_cert_express_invitation(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certexpressinvites'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -911,7 +911,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that issued this invitation
:param customerCode [string] The number of the customer where the request is sent to
@@ -921,7 +921,7 @@ def create_cert_express_invitation(self, companyId, customerCode, model):
"""
def get_cert_express_invitation(self, companyId, customerCode, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certexpressinvites/{}'.format(self.base_url, companyId, customerCode, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -944,7 +944,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that issued this invitation
:param include [string] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
@@ -956,7 +956,7 @@ def get_cert_express_invitation(self, companyId, customerCode, id_, include=None
"""
def list_cert_express_invitations(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certexpressinvites'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -983,7 +983,7 @@ def list_cert_express_invitations(self, companyId, include=None):
If the users specified in the certificates do not exist, the API will create the user and link them to the certificate
### Security Policies
* This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company recording this certificate
:param preValidatedExemptionReason [boolean] If set to true, the certificate will bypass the human verification process.
@@ -992,7 +992,7 @@ def list_cert_express_invitations(self, companyId, include=None):
"""
def create_certificates(self, companyId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1013,7 +1013,7 @@ def create_certificates(self, companyId, model, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1021,7 +1021,7 @@ def create_certificates(self, companyId, model, include=None):
"""
def delete_certificate(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1043,7 +1043,7 @@ def delete_certificate(self, companyId, id_):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1053,7 +1053,7 @@ def delete_certificate(self, companyId, id_):
"""
def download_certificate_image(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1077,7 +1077,7 @@ def download_certificate_image(self, companyId, id_, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1086,7 +1086,7 @@ def download_certificate_image(self, companyId, id_, include=None):
"""
def get_certificate(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1103,14 +1103,14 @@ def get_certificate(self, companyId, id_, include=None):
be configured with data storage in the auditable certificate system.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The company ID to check
:return ProvisionStatusModel
"""
def get_certificate_setup(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1132,7 +1132,7 @@ def get_certificate_setup(self, companyId):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1141,7 +1141,7 @@ def get_certificate_setup(self, companyId):
"""
def link_attributes_to_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/link'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1164,7 +1164,7 @@ def link_attributes_to_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1173,7 +1173,7 @@ def link_attributes_to_certificate(self, companyId, id_, model):
"""
def link_customers_to_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/link'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1195,7 +1195,7 @@ def link_customers_to_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1203,7 +1203,7 @@ def link_customers_to_certificate(self, companyId, id_, model):
"""
def list_attributes_for_certificate(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/attributes'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1225,7 +1225,7 @@ def list_attributes_for_certificate(self, companyId, id_):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1234,7 +1234,7 @@ def list_attributes_for_certificate(self, companyId, id_):
"""
def list_customers_for_certificate(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates/{}/customers'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1258,7 +1258,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company to search
:param include [string] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
@@ -1270,7 +1270,7 @@ def list_customers_for_certificate(self, companyId, id_, include=None):
"""
def query_certificates(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certificates'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1288,14 +1288,14 @@ def query_certificates(self, companyId, include=None):
This API will return the current status of exemption certificate setup for this company.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int]
:return ProvisionStatusModel
"""
def request_certificate_setup(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/setup'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1317,7 +1317,7 @@ def request_certificate_setup(self, companyId):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1326,7 +1326,7 @@ def request_certificate_setup(self, companyId):
"""
def unlink_attributes_from_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attributes/unlink'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1350,7 +1350,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1359,7 +1359,7 @@ def unlink_attributes_from_certificate(self, companyId, id_, model):
"""
def unlink_customers_from_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/customers/unlink'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1379,7 +1379,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1388,7 +1388,7 @@ def unlink_customers_from_certificate(self, companyId, id_, model):
"""
def update_certificate(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/certificates/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1410,7 +1410,7 @@ def update_certificate(self, companyId, id_, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this certificate
:param id_ [int] The unique ID number of this certificate
@@ -1419,7 +1419,7 @@ def update_certificate(self, companyId, id_, model):
"""
def upload_certificate_image(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/certificates/{}/attachment'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1458,7 +1458,7 @@ def upload_certificate_image(self, companyId, id_):
"""
def certify_integration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/certify'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1485,7 +1485,7 @@ def certify_integration(self, id_):
"""
def change_filing_status(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1512,7 +1512,7 @@ def change_filing_status(self, id_, model):
"""
def company_initialize(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/initialize'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1533,7 +1533,7 @@ def company_initialize(self, model):
"""
def create_companies(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1557,7 +1557,7 @@ def create_companies(self, model):
"""
def create_company_parameters(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1588,7 +1588,7 @@ def create_company_parameters(self, companyId, model):
"""
def create_funding_request(self, id_, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/funding/setup'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1606,7 +1606,7 @@ def create_funding_request(self, id_, model, include=None):
"""
def delete_company(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1628,7 +1628,7 @@ def delete_company(self, id_):
"""
def delete_company_parameter(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1650,7 +1650,7 @@ def delete_company_parameter(self, companyId, id_):
"""
def funding_configuration_by_company(self, companyId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding/configuration'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1673,7 +1673,7 @@ def funding_configuration_by_company(self, companyId):
"""
def funding_configurations_by_company_and_currency(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding/configurations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1703,7 +1703,7 @@ def funding_configurations_by_company_and_currency(self, companyId, include=None
"""
def get_company(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1729,7 +1729,7 @@ def get_company(self, id_, include=None):
"""
def get_company_configuration(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1751,7 +1751,7 @@ def get_company_configuration(self, id_):
"""
def get_company_parameter_detail(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1779,7 +1779,7 @@ def get_company_parameter_detail(self, companyId, id_):
"""
def get_filing_status(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/filingstatus'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1803,7 +1803,7 @@ def get_filing_status(self, id_):
"""
def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/paymentdetails/{}/{}'.format(self.base_url, id_, periodyear, periodmonth),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1830,7 +1830,7 @@ def list_a_c_h_entry_details_for_company(self, id_, periodyear, periodmonth):
"""
def list_company_parameter_details(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/parameters'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1852,7 +1852,7 @@ def list_company_parameter_details(self, companyId, include=None):
"""
def list_funding_requests_by_company(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/funding'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1870,7 +1870,7 @@ def list_funding_requests_by_company(self, id_):
"""
def list_mrs_companies(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/mrs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1905,7 +1905,7 @@ def list_mrs_companies(self):
"""
def query_companies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1932,7 +1932,7 @@ def query_companies(self, include=None):
"""
def set_company_configuration(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/configuration'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1957,7 +1957,7 @@ def set_company_configuration(self, id_, model):
"""
def update_company(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -1980,13 +1980,128 @@ def update_company(self, id_, model):
"""
def update_company_parameter_detail(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/parameters/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
r"""
Swagger Name: AvaTaxClient
+ Retrieve all unique jurisnames based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the jurisnames returned.
+ :param endDate [datetime] Used to limit the jurisnames returned.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_juris_names(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/jurisnames/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all RateOptions.
+
+ This API is available by invitation only.
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the jurisdictions or rates returned.
+ :param endDate [datetime] Used to limit the jurisdictions or rates returned.
+ :param aggregationOption [StackAggregationOption] Aggregation method used. (See StackAggregationOption::* for a list of allowable values)
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* taxRegionId, taxTypeCodeName, taxSubTypeCode, taxSubTypeCodeName, rateTypeCodeName, componentRate, taxAuthorityId, cityName, countyName, effDate, endDate
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_rate_options(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/rateOptions/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve StateConfig information
+
+ This API is available by invitation only.
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* effDate, endDate, hasBoundary, hasRates, isLocalAdmin, isLocalNexus, isSerState, minBoundaryLevelId, sstStatusId, state, stateFips, boundaryTableBaseName, stjCount, tsStateId, isJaasEnabled, hasSSTBoundary
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_state_config(self, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/stateconfig'.format(self.base_url),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all State Reporting Codes based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param country [string] The two-character ISO-3166 code for the country.
+ :param region [string] The two or three character region code for the region.
+ :param effectiveDate [datetime] Used to limit the StateReportingCodes or rates returned.
+ :param endDate [datetime] Used to limit the StateReportingCodes or rates returned.
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* label
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_state_reporting_codes(self, country, region, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/stateReportingCodes/{}/{}'.format(self.base_url, country, region),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
+ Retrieve all tax type mappings based on filter.
+
+ ### Security Policies
+ * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
+
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* taxTypeGroupIdSK, taxTypeIdSK, taxSubTypeIdSK, generalOrStandardRateTypeIdSK, taxTypeGroupId, taxTypeId, country, generalOrStandardRateTypeId
+ :param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
+ :param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+ :param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
+ :return FetchResult
+ """
+ def query_tax_type_mappings(self, include=None):
+ if ('X-Avalara-Client' in self.client_header):
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
+ return requests.get('{}/api/v2/compliance/taxtypemappings'.format(self.base_url),
+ auth=self.auth, headers=self.client_header, params=include,
+ timeout=self.timeout_limit if self.timeout_limit else 1200)
+ r"""
+ Swagger Name: AvaTaxClient
+
Create a new contact
Create one or more new contact objects.
@@ -2001,7 +2116,7 @@ def update_company_parameter_detail(self, companyId, id_, model):
"""
def create_contacts(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2020,7 +2135,7 @@ def create_contacts(self, companyId, model):
"""
def delete_contact(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2041,7 +2156,7 @@ def delete_contact(self, companyId, id_):
"""
def get_contact(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2065,7 +2180,7 @@ def get_contact(self, companyId, id_):
"""
def list_contacts_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/contacts'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2090,7 +2205,7 @@ def list_contacts_by_company(self, companyId, include=None):
"""
def query_contacts(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/contacts'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2114,7 +2229,7 @@ def query_contacts(self, include=None):
"""
def update_contact(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/contacts/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2131,7 +2246,7 @@ def update_contact(self, companyId, id_, model):
"""
def bulk_upload_cost_centers(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/costcenters/$upload'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2149,7 +2264,7 @@ def bulk_upload_cost_centers(self, companyid, model):
"""
def create_cost_center(self, companyid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2166,7 +2281,7 @@ def create_cost_center(self, companyid, model):
"""
def delete_cost_center(self, companyid, costcenterid):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2183,7 +2298,7 @@ def delete_cost_center(self, companyid, costcenterid):
"""
def get_cost_center_by_id(self, companyid, costcenterid):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2204,7 +2319,7 @@ def get_cost_center_by_id(self, companyid, costcenterid):
"""
def list_cost_centers_by_company(self, companyid, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/costcenters'.format(self.base_url, companyid),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2224,7 +2339,7 @@ def list_cost_centers_by_company(self, companyid, include=None):
"""
def query_cost_centers(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/costcenters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2242,7 +2357,7 @@ def query_cost_centers(self, include=None):
"""
def update_cost_center(self, companyid, costcenterid, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/costcenters/{}'.format(self.base_url, companyid, costcenterid),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2265,7 +2380,7 @@ def update_cost_center(self, companyid, costcenterid, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param model [CustomerModel] The list of customer objects to be created
@@ -2273,7 +2388,7 @@ def update_cost_center(self, companyid, costcenterid, model):
"""
def create_customers(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2294,7 +2409,7 @@ def create_customers(self, companyId, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2302,7 +2417,7 @@ def create_customers(self, companyId, model):
"""
def delete_customer(self, companyId, customerCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2327,7 +2442,7 @@ def delete_customer(self, companyId, customerCode):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2336,7 +2451,7 @@ def delete_customer(self, companyId, customerCode):
"""
def get_customer(self, companyId, customerCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2359,7 +2474,7 @@ def get_customer(self, companyId, customerCode, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the provided customer
:param customerCode [string] The unique code representing the current customer
@@ -2368,7 +2483,7 @@ def get_customer(self, companyId, customerCode, include=None):
"""
def link_attributes_to_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/link'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2389,7 +2504,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2398,7 +2513,7 @@ def link_attributes_to_customer(self, companyId, customerCode, model):
"""
def link_certificates_to_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/link'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2419,7 +2534,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model):
of the same kind together.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company defining customers.
:param code [string] The code of the bill-to customer to link.
@@ -2428,7 +2543,7 @@ def link_certificates_to_customer(self, companyId, customerCode, model):
"""
def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/billto/{}/shipto/link'.format(self.base_url, companyId, code),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2451,7 +2566,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the provided customer
:param customerCode [string] The unique code representing the current customer
@@ -2459,7 +2574,7 @@ def link_ship_to_customers_to_bill_customer(self, companyId, code, model):
"""
def list_attributes_for_customer(self, companyId, customerCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/attributes'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2480,7 +2595,7 @@ def list_attributes_for_customer(self, companyId, customerCode):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2493,7 +2608,7 @@ def list_attributes_for_customer(self, companyId, customerCode):
"""
def list_certificates_for_customer(self, companyId, customerCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certificates'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2516,7 +2631,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2526,7 +2641,7 @@ def list_certificates_for_customer(self, companyId, customerCode, include=None):
"""
def list_valid_certificates_for_customer(self, companyId, customerCode, country, region):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers/{}/certificates/{}/{}'.format(self.base_url, companyId, customerCode, country, region),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2550,7 +2665,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country,
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param include [string] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
@@ -2562,7 +2677,7 @@ def list_valid_certificates_for_customer(self, companyId, customerCode, country,
"""
def query_customers(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/customers'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2585,7 +2700,7 @@ def query_customers(self, companyId, include=None):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded the customer
:param customerCode [string] The unique code representing the current customer
@@ -2594,7 +2709,7 @@ def query_customers(self, companyId, include=None):
"""
def unlink_attributes_from_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}/attributes/unlink'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2615,7 +2730,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2624,7 +2739,7 @@ def unlink_attributes_from_customer(self, companyId, customerCode, model):
"""
def unlink_certificates_from_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/customers/{}/certificates/unlink'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2645,7 +2760,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model):
certificate storage for this company, call `RequestCertificateSetup`.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
- * This API depends on the following active services:*Required* (all): AvaTaxPro.
+ * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
:param companyId [int] The unique ID number of the company that recorded this customer
:param customerCode [string] The unique code representing this customer
@@ -2654,7 +2769,7 @@ def unlink_certificates_from_customer(self, companyId, customerCode, model):
"""
def update_customer(self, companyId, customerCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/customers/{}'.format(self.base_url, companyId, customerCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2674,7 +2789,7 @@ def update_customer(self, companyId, customerCode, model):
"""
def create_data_sources(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2694,7 +2809,7 @@ def create_data_sources(self, companyId, model):
"""
def delete_data_source(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2714,7 +2829,7 @@ def delete_data_source(self, companyId, id_):
"""
def get_data_source_by_id(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2737,7 +2852,7 @@ def get_data_source_by_id(self, companyId, id_):
"""
def list_data_sources(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/datasources'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2761,7 +2876,7 @@ def list_data_sources(self, companyId, include=None):
"""
def query_data_sources(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/datasources'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2782,7 +2897,7 @@ def query_data_sources(self, include=None):
"""
def update_data_source(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/datasources/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2807,7 +2922,7 @@ def update_data_source(self, companyId, id_, model):
"""
def get_cross_border_code(self, country, hsCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/{}/{}/hierarchy'.format(self.base_url, country, hsCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2828,7 +2943,7 @@ def get_cross_border_code(self, country, hsCode):
"""
def get_login_verifier_by_form(self, form, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers/{}'.format(self.base_url, form),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2847,7 +2962,7 @@ def get_login_verifier_by_form(self, form, include=None):
"""
def list_all_marketplace_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/listallmarketplacelocations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2869,7 +2984,7 @@ def list_all_marketplace_locations(self, include=None):
"""
def list_ava_file_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/avafileforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2893,7 +3008,7 @@ def list_ava_file_forms(self, include=None):
"""
def list_certificate_attributes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateattributes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2916,7 +3031,7 @@ def list_certificate_attributes(self, include=None):
"""
def list_certificate_exempt_reasons(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateexemptreasons'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2939,7 +3054,7 @@ def list_certificate_exempt_reasons(self, include=None):
"""
def list_certificate_exposure_zones(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/certificateexposurezones'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2960,7 +3075,7 @@ def list_certificate_exposure_zones(self, include=None):
"""
def list_classification_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/classification/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -2980,7 +3095,7 @@ def list_classification_parameters_usage(self, include=None):
"""
def list_communications_service_types(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/transactiontypes/{}/servicetypes'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3000,7 +3115,7 @@ def list_communications_service_types(self, id_, include=None):
"""
def list_communications_transaction_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/transactiontypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3020,7 +3135,7 @@ def list_communications_transaction_types(self, include=None):
"""
def list_communications_t_s_pairs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/communications/tspairs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3041,7 +3156,7 @@ def list_communications_t_s_pairs(self, include=None):
"""
def list_countries(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3065,7 +3180,7 @@ def list_countries(self, include=None):
"""
def list_cover_letters(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/coverletters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3093,7 +3208,7 @@ def list_cover_letters(self, include=None):
"""
def list_cross_border_codes(self, country, hsCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/{}/{}'.format(self.base_url, country, hsCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3114,7 +3229,7 @@ def list_cross_border_codes(self, country, hsCode, include=None):
"""
def list_cross_border_sections(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/crossborder/sections'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3135,7 +3250,7 @@ def list_cross_border_sections(self):
"""
def list_currencies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/currencies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3158,7 +3273,7 @@ def list_currencies(self, include=None):
"""
def list_entity_use_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/entityusecodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3178,7 +3293,7 @@ def list_entity_use_codes(self, include=None):
"""
def list_filing_frequencies(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingfrequencies'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3192,7 +3307,7 @@ def list_filing_frequencies(self, include=None):
SQL-like query for fetching only the ones you concerned about. For example: effectiveDate > '2016-01-01'
The rate, salesRate, and useRate fields are not available on the JurisdictionModels returned by this API.
- :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* rate, salesRate, signatureCode, useRate, isAcm, isSst
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* rate, salesRate, signatureCode, useRate, isAcm, isSst, createDate, isLocalAdmin, taxAuthorityTypeId
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
:param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
:param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3200,7 +3315,7 @@ def list_filing_frequencies(self, include=None):
"""
def list_jurisdictions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3230,7 +3345,7 @@ def list_jurisdictions(self, include=None):
"""
def list_jurisdictions_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictionsnearaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3258,7 +3373,7 @@ def list_jurisdictions_by_address(self, include=None):
"""
def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3271,7 +3386,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t
This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state.
The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API.
- :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst
+ :param filter [string] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst, createDate, isLocalAdmin, taxAuthorityTypeId
:param top [int] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
:param skip [int] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
:param orderBy [string] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3279,7 +3394,7 @@ def list_jurisdictions_by_rate_type_tax_type_mapping(self, country, taxTypeId, t
"""
def list_jurisdictions_hierarchy(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictions/hierarchy'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3298,7 +3413,7 @@ def list_jurisdictions_hierarchy(self, include=None):
"""
def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/jurisdictionTypes/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3331,7 +3446,7 @@ def list_jurisdiction_types_by_rate_type_tax_type_mapping(self, country, taxType
"""
def list_location_questions_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/locationquestions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3352,7 +3467,7 @@ def list_location_questions_by_address(self, include=None):
"""
def list_login_verifiers(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/filingcalendars/loginverifiers'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3371,7 +3486,7 @@ def list_login_verifiers(self, include=None):
"""
def list_marketplace_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/marketplacelocations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3391,7 +3506,7 @@ def list_marketplace_locations(self, include=None):
"""
def list_nexus(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3421,7 +3536,7 @@ def list_nexus(self, include=None):
"""
def list_nexus_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/byaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3442,7 +3557,7 @@ def list_nexus_by_address(self, include=None):
"""
def list_nexus_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/{}'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3464,7 +3579,7 @@ def list_nexus_by_country(self, country, include=None):
"""
def list_nexus_by_country_and_region(self, country, region, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/{}/{}'.format(self.base_url, country, region),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3489,7 +3604,7 @@ def list_nexus_by_country_and_region(self, country, region, include=None):
"""
def list_nexus_by_form_code(self, formCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/byform/{}'.format(self.base_url, formCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3510,7 +3625,7 @@ def list_nexus_by_form_code(self, formCode):
"""
def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexus/bytaxtypegroup/{}'.format(self.base_url, taxTypeGroup),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3530,7 +3645,7 @@ def list_nexus_by_tax_type_group(self, taxTypeGroup, include=None):
"""
def list_nexus_tax_type_groups(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/nexustaxtypegroups'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3550,7 +3665,7 @@ def list_nexus_tax_type_groups(self, include=None):
"""
def list_notice_customer_funding_options(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticecustomerfundingoptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3570,7 +3685,7 @@ def list_notice_customer_funding_options(self, include=None):
"""
def list_notice_customer_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticecustomertypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3590,7 +3705,7 @@ def list_notice_customer_types(self, include=None):
"""
def list_notice_filingtypes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticefilingtypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3610,7 +3725,7 @@ def list_notice_filingtypes(self, include=None):
"""
def list_notice_priorities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticepriorities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3630,7 +3745,7 @@ def list_notice_priorities(self, include=None):
"""
def list_notice_reasons(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticereasons'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3650,7 +3765,7 @@ def list_notice_reasons(self, include=None):
"""
def list_notice_responsibilities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticeresponsibilities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3670,7 +3785,7 @@ def list_notice_responsibilities(self, include=None):
"""
def list_notice_root_causes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticerootcauses'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3690,7 +3805,7 @@ def list_notice_root_causes(self, include=None):
"""
def list_notice_statuses(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticestatuses'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3710,7 +3825,7 @@ def list_notice_statuses(self, include=None):
"""
def list_notice_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/noticetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3731,7 +3846,7 @@ def list_notice_types(self, include=None):
"""
def list_parameters(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parameters'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3751,7 +3866,7 @@ def list_parameters(self, include=None):
"""
def list_parameters_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/accounts/{}/parameters'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3785,7 +3900,7 @@ def list_parameters_by_account(self, accountId, include=None):
"""
def list_parameters_by_item(self, companyCode, itemCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parameters/byitem/{}/{}'.format(self.base_url, companyCode, itemCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3806,7 +3921,7 @@ def list_parameters_by_item(self, companyCode, itemCode, include=None):
"""
def list_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3824,7 +3939,7 @@ def list_parameters_usage(self, include=None):
"""
def list_permissions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/permissions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3844,7 +3959,7 @@ def list_permissions(self, include=None):
"""
def list_postal_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/postalcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3869,7 +3984,7 @@ def list_postal_codes(self, include=None):
"""
def list_preferred_programs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/preferredprograms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3891,7 +4006,7 @@ def list_preferred_programs(self, include=None):
"""
def list_product_classification_systems(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/productclassificationsystems'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3920,7 +4035,7 @@ def list_product_classification_systems(self, include=None):
"""
def list_product_classification_systems_by_company(self, companyCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/productclassificationsystems/bycompany/{}'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3941,7 +4056,7 @@ def list_product_classification_systems_by_company(self, companyCode, include=No
"""
def list_rate_types_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/ratetypes'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3964,7 +4079,7 @@ def list_rate_types_by_country(self, country, include=None):
"""
def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/taxtypes/{}/taxsubtypes/{}/ratetypes'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -3985,7 +4100,7 @@ def list_rate_types_by_country_tax_type_tax_sub_type(self, country, taxTypeId, t
"""
def list_regions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/regions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4007,7 +4122,7 @@ def list_regions(self, include=None):
"""
def list_regions_by_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/countries/{}/regions'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4033,7 +4148,7 @@ def list_regions_by_country(self, country, include=None):
"""
def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/companies/{}/countries/{}/regions/taxtypes/{}/taxsubtypes/{}/rateTypeId/{}/jurisdictionTypeId/{}'.format(self.base_url, companyId, country, taxTypeId, taxSubTypeId, rateTypeId, jurisdictionTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4053,7 +4168,7 @@ def list_regions_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, co
"""
def list_resource_file_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/resourcefiletypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4074,7 +4189,7 @@ def list_resource_file_types(self, include=None):
"""
def list_returns_parameters_usage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/returns/parametersusage'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4095,7 +4210,7 @@ def list_returns_parameters_usage(self, include=None):
"""
def list_security_roles(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/securityroles'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4117,7 +4232,7 @@ def list_security_roles(self, include=None):
"""
def list_subscription_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/subscriptiontypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4136,7 +4251,7 @@ def list_subscription_types(self, include=None):
"""
def list_tags(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/tags'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4156,7 +4271,7 @@ def list_tags(self, include=None):
"""
def list_tax_authorities(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthorities'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4178,7 +4293,7 @@ def list_tax_authorities(self, include=None):
"""
def list_tax_authority_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthorityforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4198,7 +4313,7 @@ def list_tax_authority_forms(self, include=None):
"""
def list_tax_authority_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxauthoritytypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4223,7 +4338,7 @@ def list_tax_authority_types(self, include=None):
"""
def list_tax_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4242,7 +4357,7 @@ def list_tax_codes(self, include=None):
"""
def list_tax_code_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxcodetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4262,7 +4377,7 @@ def list_tax_code_types(self, include=None):
"""
def list_tax_forms(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxforms'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4282,7 +4397,7 @@ def list_tax_forms(self, include=None):
"""
def list_tax_sub_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4305,7 +4420,7 @@ def list_tax_sub_types(self, include=None):
"""
def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes/countries/{}/taxtypes/{}'.format(self.base_url, country, taxTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4327,7 +4442,7 @@ def list_tax_sub_types_by_country_and_tax_type(self, country, taxTypeId, include
"""
def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxsubtypes/{}/{}'.format(self.base_url, jurisdictionCode, region),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4347,7 +4462,7 @@ def list_tax_sub_types_by_jurisdiction_and_region(self, jurisdictionCode, region
"""
def list_tax_type_groups(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxtypegroups'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4367,7 +4482,7 @@ def list_tax_type_groups(self, include=None):
"""
def list_tax_types_by_nexus_and_country(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/taxtypes/countries/{}'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4389,7 +4504,7 @@ def list_tax_types_by_nexus_and_country(self, country, include=None):
"""
def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(self, country, taxTypeId, taxSubTypeId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/unitofbasis/countries/{}/taxtypes/{}/taxsubtypes/{}'.format(self.base_url, country, taxTypeId, taxSubTypeId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4409,7 +4524,7 @@ def list_unit_of_basis_by_country_and_tax_type_and_tax_sub_type_and_rate_type(se
"""
def list_unit_of_measurement(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/definitions/unitofmeasurements'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4431,7 +4546,7 @@ def list_unit_of_measurement(self, include=None):
"""
def create_distance_threshold(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4453,7 +4568,7 @@ def create_distance_threshold(self, companyId, model):
"""
def delete_distance_threshold(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4475,7 +4590,7 @@ def delete_distance_threshold(self, companyId, id_):
"""
def get_distance_threshold(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4501,7 +4616,7 @@ def get_distance_threshold(self, companyId, id_):
"""
def list_distance_thresholds(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/distancethresholds'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4528,7 +4643,7 @@ def list_distance_thresholds(self, companyId, include=None):
"""
def query_distance_thresholds(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/distancethresholds'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4553,7 +4668,7 @@ def query_distance_thresholds(self, include=None):
"""
def update_distance_threshold(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/distancethresholds/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4569,7 +4684,7 @@ def update_distance_threshold(self, companyId, id_, model):
"""
def create_dcv(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/domain-control-verifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4585,7 +4700,7 @@ def create_dcv(self, model):
"""
def filter_dcv(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/domain-control-verifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4601,7 +4716,7 @@ def filter_dcv(self, include=None):
"""
def get_dcv_by_id(self, domainControlVerificationId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/domain-control-verifications/{}'.format(self.base_url, domainControlVerificationId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4621,7 +4736,7 @@ def get_dcv_by_id(self, domainControlVerificationId):
"""
def create_e_commerce_token(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4641,7 +4756,7 @@ def create_e_commerce_token(self, companyId, model):
"""
def refresh_e_commerce_token(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/ecommercetokens'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4659,7 +4774,7 @@ def refresh_e_commerce_token(self, companyId, model):
"""
def approve_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/approve'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4683,7 +4798,7 @@ def approve_firm_client_linkage(self, id_):
"""
def create_and_link_new_firm_client_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/createandlinkclient'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4701,7 +4816,7 @@ def create_and_link_new_firm_client_account(self, model):
"""
def create_firm_client_linkage(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4719,7 +4834,7 @@ def create_firm_client_linkage(self, model):
"""
def delete_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4737,7 +4852,7 @@ def delete_firm_client_linkage(self, id_):
"""
def get_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/firmclientlinkages/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4755,7 +4870,7 @@ def get_firm_client_linkage(self, id_):
"""
def list_firm_client_linkage(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/firmclientlinkages'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4773,7 +4888,7 @@ def list_firm_client_linkage(self, include=None):
"""
def reject_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/reject'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4791,7 +4906,7 @@ def reject_firm_client_linkage(self, id_):
"""
def reset_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/reset'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4809,37 +4924,13 @@ def reset_firm_client_linkage(self, id_):
"""
def revoke_firm_client_linkage(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/firmclientlinkages/{}/revoke'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
r"""
Swagger Name: AvaTaxClient
- FREE API - Request a free trial of AvaTax
-
- Call this API to obtain a free AvaTax account.
- This API is free to use. No authentication credentials are required to call this API. You must read and
- accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be
- created.
- If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality
- available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).
- After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).
- ### Security Policies
- * This API may be called without providing authentication credentials.
-
- :param model [FreeTrialRequestModel] Required information to provision a free trial account.
- :return NewAccountModel
- """
- def request_free_trial(self, model):
- if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
- return requests.post('{}/api/v2/accounts/freetrials/request'.format(self.base_url),
- auth=self.auth, headers=self.client_header, json=model,
- timeout=self.timeout_limit if self.timeout_limit else 1200)
- r"""
- Swagger Name: AvaTaxClient
-
Request the javascript for a funding setup widget
This API is available by invitation only.
@@ -4865,7 +4956,7 @@ def request_free_trial(self, model):
"""
def activate_funding_request(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/fundingrequests/{}/widget'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4895,7 +4986,7 @@ def activate_funding_request(self, id_, include=None):
"""
def funding_request_status(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/fundingrequests/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4916,7 +5007,7 @@ def funding_request_status(self, id_, include=None):
"""
def batch_delete_item_classifications(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4938,7 +5029,7 @@ def batch_delete_item_classifications(self, companyId, itemId):
"""
def batch_delete_item_parameters(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4963,7 +5054,7 @@ def batch_delete_item_parameters(self, companyId, itemId):
"""
def bulk_upload_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/upload'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -4986,7 +5077,7 @@ def bulk_upload_items(self, companyId, model):
"""
def create_item_classifications(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5011,7 +5102,7 @@ def create_item_classifications(self, companyId, itemId, model):
"""
def create_item_parameters(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5036,7 +5127,7 @@ def create_item_parameters(self, companyId, itemId, model):
"""
def create_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5057,7 +5148,7 @@ def create_items(self, companyId, model):
"""
def create_item_tags(self, companyId, itemId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5079,7 +5170,7 @@ def create_item_tags(self, companyId, itemId, model):
"""
def create_tax_code_classification_request(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5109,7 +5200,7 @@ def create_tax_code_classification_request(self, companyId, model):
"""
def delete_catalogue_item(self, companyId, itemCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/itemcatalogue/{}'.format(self.base_url, companyId, itemCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5134,7 +5225,7 @@ def delete_catalogue_item(self, companyId, itemCode):
"""
def delete_item(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5156,7 +5247,7 @@ def delete_item(self, companyId, id_):
"""
def delete_item_classification(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5179,7 +5270,7 @@ def delete_item_classification(self, companyId, itemId, id_):
"""
def delete_item_parameter(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5200,7 +5291,7 @@ def delete_item_parameter(self, companyId, itemId, id_):
"""
def delete_item_tag(self, companyId, itemId, itemTagDetailId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/tags/{}'.format(self.base_url, companyId, itemId, itemTagDetailId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5220,7 +5311,7 @@ def delete_item_tag(self, companyId, itemId, itemTagDetailId):
"""
def delete_item_tags(self, companyId, itemId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5247,7 +5338,7 @@ def delete_item_tags(self, companyId, itemId):
"""
def get_classification_status(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5272,7 +5363,7 @@ def get_classification_status(self, companyId, include=None):
"""
def get_item(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5294,7 +5385,7 @@ def get_item(self, companyId, id_, include=None):
"""
def get_item_classification(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5317,7 +5408,7 @@ def get_item_classification(self, companyId, itemId, id_):
"""
def get_item_parameter(self, companyId, itemId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5340,7 +5431,7 @@ def get_item_parameter(self, companyId, itemId, id_):
"""
def get_item_tags(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/tags'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5368,7 +5459,7 @@ def get_item_tags(self, companyId, itemId, include=None):
"""
def get_premium_classification(self, companyId, itemCode, systemCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/premiumClassification/{}'.format(self.base_url, companyId, itemCode, systemCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5394,7 +5485,7 @@ def get_premium_classification(self, companyId, itemCode, systemCode):
"""
def get_tax_code_recommendations(self, companyId, requestId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/classificationrequests/taxcode/{}/recommendations'.format(self.base_url, companyId, requestId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5425,7 +5516,7 @@ def get_tax_code_recommendations(self, companyId, requestId, include=None):
"""
def list_import_restrictions(self, companyId, itemCode, countryOfImport, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/restrictions/import/{}'.format(self.base_url, companyId, itemCode, countryOfImport),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5452,7 +5543,7 @@ def list_import_restrictions(self, companyId, itemCode, countryOfImport, include
"""
def list_item_classifications(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/classifications'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5480,7 +5571,7 @@ def list_item_classifications(self, companyId, itemId, include=None):
"""
def list_item_parameters(self, companyId, itemId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/{}/parameters'.format(self.base_url, companyId, itemId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5517,7 +5608,7 @@ def list_item_parameters(self, companyId, itemId, include=None):
"""
def list_items_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5546,7 +5637,7 @@ def list_items_by_company(self, companyId, include=None):
"""
def query_items(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/items'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5577,7 +5668,7 @@ def query_items(self, include=None):
"""
def query_items_by_tag(self, companyId, tag, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/items/bytags/{}'.format(self.base_url, companyId, tag),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5600,7 +5691,7 @@ def query_items_by_tag(self, companyId, tag, include=None):
"""
def sync_item_catalogue(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/itemcatalogue'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5627,7 +5718,7 @@ def sync_item_catalogue(self, companyId, model):
"""
def sync_items(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/items/sync'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5655,7 +5746,7 @@ def sync_items(self, companyId, model):
"""
def update_item(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5679,7 +5770,7 @@ def update_item(self, companyId, id_, model):
"""
def update_item_classification(self, companyId, itemId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}/classifications/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5703,7 +5794,7 @@ def update_item_classification(self, companyId, itemId, id_, model):
"""
def update_item_parameter(self, companyId, itemId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/items/{}/parameters/{}'.format(self.base_url, companyId, itemId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5726,7 +5817,7 @@ def update_item_parameter(self, companyId, itemId, id_, model):
"""
def create_jurisdiction_overrides(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5745,7 +5836,7 @@ def create_jurisdiction_overrides(self, accountId, model):
"""
def delete_jurisdiction_override(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5768,7 +5859,7 @@ def delete_jurisdiction_override(self, accountId, id_):
"""
def get_jurisdiction_override(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5797,7 +5888,7 @@ def get_jurisdiction_override(self, accountId, id_):
"""
def list_jurisdiction_overrides_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/jurisdictionoverrides'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5825,7 +5916,7 @@ def list_jurisdiction_overrides_by_account(self, accountId, include=None):
"""
def query_jurisdiction_overrides(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/jurisdictionoverrides'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5845,7 +5936,7 @@ def query_jurisdiction_overrides(self, include=None):
"""
def update_jurisdiction_override(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/jurisdictionoverrides/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5870,7 +5961,7 @@ def update_jurisdiction_override(self, accountId, id_, model):
"""
def create_location_parameters(self, companyId, locationId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5889,7 +5980,7 @@ def create_location_parameters(self, companyId, locationId, model):
"""
def create_locations(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5908,7 +5999,7 @@ def create_locations(self, companyId, model):
"""
def delete_location(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5931,7 +6022,7 @@ def delete_location(self, companyId, id_):
"""
def delete_location_parameter(self, companyId, locationId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5958,7 +6049,7 @@ def delete_location_parameter(self, companyId, locationId, id_):
"""
def get_location(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -5981,7 +6072,7 @@ def get_location(self, companyId, id_, include=None):
"""
def get_location_parameter(self, companyId, locationId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6009,7 +6100,7 @@ def get_location_parameter(self, companyId, locationId, id_):
"""
def list_location_parameters(self, companyId, locationId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/parameters'.format(self.base_url, companyId, locationId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6041,7 +6132,7 @@ def list_location_parameters(self, companyId, locationId, include=None):
"""
def list_locations_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6072,7 +6163,7 @@ def list_locations_by_company(self, companyId, include=None):
"""
def query_locations(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/locations'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6094,7 +6185,7 @@ def query_locations(self, include=None):
"""
def update_location(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/locations/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6118,7 +6209,7 @@ def update_location(self, companyId, id_, model):
"""
def update_location_parameter(self, companyId, locationId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/locations/{}/parameters/{}'.format(self.base_url, companyId, locationId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6139,7 +6230,7 @@ def update_location_parameter(self, companyId, locationId, id_, model):
"""
def validate_location(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/validate'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6173,7 +6264,7 @@ def validate_location(self, companyId, id_):
"""
def adjust_multi_document_transaction(self, code, type, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/adjust'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6210,7 +6301,7 @@ def adjust_multi_document_transaction(self, code, type, model, include=None):
"""
def audit_multi_document_transaction(self, code, type):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}/audit'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6240,7 +6331,7 @@ def audit_multi_document_transaction(self, code, type):
"""
def commit_multi_document_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/commit'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6290,7 +6381,7 @@ def commit_multi_document_transaction(self, model):
"""
def create_multi_document_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6326,7 +6417,7 @@ def create_multi_document_transaction(self, model, include=None):
"""
def get_multi_document_transaction_by_code_and_type(self, code, type, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}/type/{}'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6368,7 +6459,7 @@ def get_multi_document_transaction_by_code_and_type(self, code, type, include=No
"""
def get_multi_document_transaction_by_id(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6411,7 +6502,7 @@ def get_multi_document_transaction_by_id(self, id_, include=None):
"""
def list_multi_document_transactions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/multidocument'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6466,7 +6557,7 @@ def list_multi_document_transactions(self, include=None):
"""
def refund_multi_document_transaction(self, code, type, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/refund'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6495,7 +6586,7 @@ def refund_multi_document_transaction(self, code, type, model, include=None):
"""
def verify_multi_document_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/verify'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6528,7 +6619,7 @@ def verify_multi_document_transaction(self, model):
"""
def void_multi_document_transaction(self, code, type, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/multidocument/{}/type/{}/void'.format(self.base_url, code, type),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6560,7 +6651,7 @@ def void_multi_document_transaction(self, code, type, model):
"""
def create_nexus(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6585,7 +6676,7 @@ def create_nexus(self, companyId, model):
"""
def create_nexus_parameters(self, companyId, nexusId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6614,7 +6705,7 @@ def create_nexus_parameters(self, companyId, nexusId, model):
"""
def declare_nexus_by_address(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/nexus/byaddress'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6639,7 +6730,7 @@ def declare_nexus_by_address(self, companyId, model):
"""
def delete_nexus(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6662,7 +6753,7 @@ def delete_nexus(self, companyId, id_, include=None):
"""
def delete_nexus_parameter(self, companyId, nexusId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6684,7 +6775,7 @@ def delete_nexus_parameter(self, companyId, nexusId, id_):
"""
def delete_nexus_parameters(self, companyId, nexusId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6709,7 +6800,7 @@ def delete_nexus_parameters(self, companyId, nexusId):
"""
def get_nexus(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6737,7 +6828,7 @@ def get_nexus(self, companyId, id_, include=None):
"""
def get_nexus_by_form_code(self, companyId, formCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/byform/{}'.format(self.base_url, companyId, formCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6760,7 +6851,7 @@ def get_nexus_by_form_code(self, companyId, formCode, include=None):
"""
def get_nexus_parameter(self, companyId, nexusId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6790,7 +6881,7 @@ def get_nexus_parameter(self, companyId, nexusId, id_):
"""
def list_nexus_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6821,7 +6912,7 @@ def list_nexus_by_company(self, companyId, include=None):
"""
def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/byTaxTypeGroup/{}'.format(self.base_url, companyId, taxTypeGroup),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6849,7 +6940,7 @@ def list_nexus_by_company_and_tax_type_group(self, companyId, taxTypeGroup, incl
"""
def list_nexus_parameters(self, companyId, nexusId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/nexus/{}/parameters'.format(self.base_url, companyId, nexusId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6878,7 +6969,7 @@ def list_nexus_parameters(self, companyId, nexusId, include=None):
"""
def query_nexus(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/nexus'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6911,7 +7002,7 @@ def query_nexus(self, include=None):
"""
def update_nexus(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/nexus/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6935,7 +7026,7 @@ def update_nexus(self, companyId, id_, model):
"""
def update_nexus_parameter(self, companyId, nexusId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/nexus/{}/parameters/{}'.format(self.base_url, companyId, nexusId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6954,7 +7045,7 @@ def update_nexus_parameter(self, companyId, nexusId, id_, model):
"""
def create_notice_responsibility_type(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notices/responsibilities'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6973,7 +7064,7 @@ def create_notice_responsibility_type(self, model):
"""
def create_notice_root_cause_type(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notices/rootcauses'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -6991,7 +7082,7 @@ def create_notice_root_cause_type(self, model):
"""
def delete_notice_responsibility_type(self, responsibilityId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notices/responsibilities/{}'.format(self.base_url, responsibilityId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7009,7 +7100,7 @@ def delete_notice_responsibility_type(self, responsibilityId):
"""
def delete_notice_root_cause_type(self, rootCauseId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notices/rootcauses/{}'.format(self.base_url, rootCauseId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7036,7 +7127,7 @@ def delete_notice_root_cause_type(self, rootCauseId):
"""
def dismiss_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/notifications/{}/dismiss'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7059,7 +7150,7 @@ def dismiss_notification(self, id_):
"""
def get_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7087,7 +7178,7 @@ def get_notification(self, id_):
"""
def list_notifications(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/notifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7117,7 +7208,7 @@ def list_notifications(self, include=None):
"""
def request_new_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/request'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7139,7 +7230,7 @@ def request_new_account(self, model):
"""
def request_new_entitlement(self, id_, offer):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/entitlements/{}'.format(self.base_url, id_, offer),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7160,7 +7251,7 @@ def request_new_entitlement(self, id_, offer):
"""
def create_account(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7187,7 +7278,7 @@ def create_account(self, model):
"""
def create_notifications(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/notifications'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7209,7 +7300,7 @@ def create_notifications(self, model):
"""
def create_subscriptions(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7230,7 +7321,7 @@ def create_subscriptions(self, accountId, model):
"""
def delete_account(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7255,7 +7346,7 @@ def delete_account(self, id_):
"""
def delete_notification(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7276,7 +7367,7 @@ def delete_notification(self, id_):
"""
def delete_subscription(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7302,7 +7393,7 @@ def delete_subscription(self, accountId, id_):
"""
def list_service_types(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/servicetypes/servicetypes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7327,7 +7418,7 @@ def list_service_types(self, include=None):
"""
def reset_password(self, userId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/passwords/{}/reset'.format(self.base_url, userId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7348,7 +7439,7 @@ def reset_password(self, userId, model, include=None):
"""
def update_account(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7374,7 +7465,7 @@ def update_account(self, id_, model):
"""
def update_notification(self, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/notifications/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7400,7 +7491,7 @@ def update_notification(self, id_, model):
"""
def update_subscription(self, accountId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7427,7 +7518,7 @@ def update_subscription(self, accountId, id_, model):
"""
def download_report(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports/{}/attachment'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7450,7 +7541,7 @@ def download_report(self, id_):
"""
def get_report(self, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7482,7 +7573,7 @@ def get_report(self, id_):
"""
def initiate_export_document_line_report(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/reports/exportdocumentline/initiate'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7510,7 +7601,7 @@ def initiate_export_document_line_report(self, companyId, model):
"""
def list_reports(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/reports'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7539,7 +7630,7 @@ def list_reports(self, include=None):
"""
def create_settings(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7565,7 +7656,7 @@ def create_settings(self, companyId, model):
"""
def delete_setting(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7591,7 +7682,7 @@ def delete_setting(self, companyId, id_):
"""
def get_setting(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7623,7 +7714,7 @@ def get_setting(self, companyId, id_):
"""
def list_settings_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/settings'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7654,7 +7745,7 @@ def list_settings_by_company(self, companyId, include=None):
"""
def query_settings(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/settings'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7683,7 +7774,7 @@ def query_settings(self, include=None):
"""
def update_setting(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/settings/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7704,7 +7795,7 @@ def update_setting(self, companyId, id_, model):
"""
def get_subscription(self, accountId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/subscriptions/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7730,7 +7821,7 @@ def get_subscription(self, accountId, id_):
"""
def list_subscriptions_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/subscriptions'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7755,7 +7846,7 @@ def list_subscriptions_by_account(self, accountId, include=None):
"""
def query_subscriptions(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/subscriptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7778,7 +7869,7 @@ def query_subscriptions(self, include=None):
"""
def create_tax_codes(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7797,7 +7888,7 @@ def create_tax_codes(self, companyId, model):
"""
def delete_tax_code(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7820,7 +7911,7 @@ def delete_tax_code(self, companyId, id_):
"""
def get_tax_code(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7849,7 +7940,7 @@ def get_tax_code(self, companyId, id_):
"""
def list_tax_codes_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxcodes'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7877,7 +7968,7 @@ def list_tax_codes_by_company(self, companyId, include=None):
"""
def query_tax_codes(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxcodes'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7903,7 +7994,7 @@ def query_tax_codes(self, include=None):
"""
def update_tax_code(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/taxcodes/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7938,7 +8029,7 @@ def update_tax_code(self, companyId, id_, model):
"""
def build_tax_content_file(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/pointofsaledata/build'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -7978,7 +8069,7 @@ def build_tax_content_file(self, model):
"""
def build_tax_content_file_for_location(self, companyId, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/locations/{}/pointofsaledata'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8029,7 +8120,7 @@ def build_tax_content_file_for_location(self, companyId, id_, include=None):
"""
def download_tax_rates_by_zip_code(self, date, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxratesbyzipcode/download/{}'.format(self.base_url, date),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8068,7 +8159,7 @@ def download_tax_rates_by_zip_code(self, date, include=None):
"""
def tax_rates_by_address(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrates/byaddress'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8103,7 +8194,7 @@ def tax_rates_by_address(self, include=None):
"""
def tax_rates_by_postal_code(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrates/bypostalcode'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8126,7 +8217,7 @@ def tax_rates_by_postal_code(self, include=None):
"""
def create_country_coefficients(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/countryCoefficients'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8154,7 +8245,7 @@ def create_country_coefficients(self, model):
"""
def create_tax_rules(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8182,7 +8273,7 @@ def create_tax_rules(self, companyId, model):
"""
def delete_tax_rule(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8210,7 +8301,7 @@ def delete_tax_rule(self, companyId, id_):
"""
def get_tax_rule(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8233,7 +8324,7 @@ def get_tax_rule(self, companyId, id_):
"""
def list_country_coefficients(self, country, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/{}/CountryCoefficients'.format(self.base_url, country),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8267,7 +8358,7 @@ def list_country_coefficients(self, country, include=None):
"""
def list_tax_rules(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/taxrules'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8300,7 +8391,7 @@ def list_tax_rules(self, companyId, include=None):
"""
def query_tax_rules(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/taxrules'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8329,7 +8420,7 @@ def query_tax_rules(self, include=None):
"""
def update_tax_rule(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/taxrules/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8365,7 +8456,7 @@ def update_tax_rule(self, companyId, id_, model):
"""
def add_lines(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/transactions/lines/add'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8411,7 +8502,7 @@ def add_lines(self, model, include=None):
"""
def adjust_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/adjust'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8448,7 +8539,7 @@ def adjust_transaction(self, companyCode, transactionCode, model, include=None):
"""
def audit_transaction(self, companyCode, transactionCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/audit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8486,7 +8577,7 @@ def audit_transaction(self, companyCode, transactionCode):
"""
def audit_transaction_with_type(self, companyCode, transactionCode, documentType):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}/audit'.format(self.base_url, companyCode, transactionCode, documentType),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8509,7 +8600,7 @@ def audit_transaction_with_type(self, companyCode, transactionCode, documentType
"""
def bulk_lock_transaction(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/lock'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8554,7 +8645,7 @@ def bulk_lock_transaction(self, model):
"""
def change_transaction_code(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/changecode'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8597,7 +8688,7 @@ def change_transaction_code(self, companyCode, transactionCode, model, include=N
"""
def commit_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/commit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8643,7 +8734,7 @@ def commit_transaction(self, companyCode, transactionCode, model, include=None):
"""
def create_or_adjust_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/createoradjust'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8694,7 +8785,7 @@ def create_or_adjust_transaction(self, model, include=None):
"""
def create_transaction(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/transactions/create'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8727,7 +8818,7 @@ def create_transaction(self, model, include=None):
"""
def delete_lines(self, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/transactions/lines/delete'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8745,7 +8836,7 @@ def delete_lines(self, model, include=None):
"""
def get_all_variance_report_by_company_code(self, companyCode):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/AllVariance'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8787,7 +8878,7 @@ def get_all_variance_report_by_company_code(self, companyCode):
"""
def get_transaction_by_code(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8816,7 +8907,7 @@ def get_transaction_by_code(self, companyCode, transactionCode, include=None):
"""
def get_transaction_by_code_and_type(self, companyCode, transactionCode, documentType, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/types/{}'.format(self.base_url, companyCode, transactionCode, documentType),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8848,7 +8939,7 @@ def get_transaction_by_code_and_type(self, companyCode, transactionCode, documen
"""
def get_transaction_by_id(self, id_, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/transactions/{}'.format(self.base_url, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8867,7 +8958,7 @@ def get_transaction_by_id(self, id_, include=None):
"""
def get_variance_report_by_company_code_by_transaction_id(self, companyCode, transactionId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions/{}/variance'.format(self.base_url, companyCode, transactionId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8914,7 +9005,7 @@ def get_variance_report_by_company_code_by_transaction_id(self, companyCode, tra
"""
def list_transactions_by_company(self, companyCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/transactions'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -8959,7 +9050,7 @@ def list_transactions_by_company(self, companyCode, include=None):
"""
def lock_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/lock'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9014,7 +9105,7 @@ def lock_transaction(self, companyCode, transactionCode, model, include=None):
"""
def refund_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/refund'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9057,7 +9148,7 @@ def refund_transaction(self, companyCode, transactionCode, model, include=None):
"""
def settle_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/settle'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9097,7 +9188,7 @@ def settle_transaction(self, companyCode, transactionCode, model, include=None):
"""
def uncommit_transaction(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/uncommit'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9135,7 +9226,7 @@ def uncommit_transaction(self, companyCode, transactionCode, include=None):
"""
def unvoid_transaction(self, companyCode, transactionCode, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/unvoid'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9154,7 +9245,7 @@ def unvoid_transaction(self, companyCode, transactionCode, include=None):
"""
def variance_report(self, companyCode, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/variance'.format(self.base_url, companyCode),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9197,7 +9288,7 @@ def variance_report(self, companyCode, model):
"""
def verify_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/verify'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9241,7 +9332,7 @@ def verify_transaction(self, companyCode, transactionCode, model, include=None):
"""
def void_transaction(self, companyCode, transactionCode, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/transactions/{}/void'.format(self.base_url, companyCode, transactionCode),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9262,7 +9353,7 @@ def void_transaction(self, companyCode, transactionCode, model, include=None):
"""
def create_u_p_cs(self, companyId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9282,7 +9373,7 @@ def create_u_p_cs(self, companyId, model):
"""
def delete_u_p_c(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9303,7 +9394,7 @@ def delete_u_p_c(self, companyId, id_):
"""
def get_u_p_c(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9330,7 +9421,7 @@ def get_u_p_c(self, companyId, id_):
"""
def list_u_p_cs_by_company(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/upcs'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9356,7 +9447,7 @@ def list_u_p_cs_by_company(self, companyId, include=None):
"""
def query_u_p_cs(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/upcs'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9380,7 +9471,7 @@ def query_u_p_cs(self, include=None):
"""
def update_u_p_c(self, companyId, id_, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/companies/{}/upcs/{}'.format(self.base_url, companyId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9400,7 +9491,7 @@ def update_u_p_c(self, companyId, id_, model):
"""
def delete_user_defined_field(self, companyId, id_):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/companies/{}/userdefinedfields/{}'.format(self.base_url, companyId, accountId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9420,7 +9511,7 @@ def delete_user_defined_field(self, companyId, id_):
"""
def list_user_defined_fields_by_company_id(self, companyId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9441,7 +9532,7 @@ def list_user_defined_fields_by_company_id(self, companyId, include=None):
"""
def update_user_defined_field(self, companyId, model, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/companies/{}/userdefinedfields'.format(self.base_url, companyId),
auth=self.auth, headers=self.client_header, params=include, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9463,7 +9554,7 @@ def update_user_defined_field(self, companyId, model, include=None):
"""
def change_password(self, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/passwords'.format(self.base_url),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9487,7 +9578,7 @@ def change_password(self, model):
"""
def create_users(self, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.post('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9509,7 +9600,7 @@ def create_users(self, accountId, model):
"""
def delete_user(self, id_, accountId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.delete('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9532,7 +9623,7 @@ def delete_user(self, id_, accountId):
"""
def get_user(self, id_, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9563,7 +9654,7 @@ def get_user(self, id_, accountId, include=None):
"""
def get_user_entitlements(self, id_, accountId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users/{}/entitlements'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9593,7 +9684,7 @@ def get_user_entitlements(self, id_, accountId):
"""
def list_users_by_account(self, accountId, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/accounts/{}/users'.format(self.base_url, accountId),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9623,7 +9714,7 @@ def list_users_by_account(self, accountId, include=None):
"""
def query_users(self, include=None):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/users'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=include,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9646,7 +9737,7 @@ def query_users(self, include=None):
"""
def update_user(self, id_, accountId, model):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.put('{}/api/v2/accounts/{}/users/{}'.format(self.base_url, accountId, id_),
auth=self.auth, headers=self.client_header, json=model,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9667,7 +9758,7 @@ def update_user(self, id_, accountId, model):
"""
def get_my_subscription(self, serviceTypeId):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/subscriptions/{}'.format(self.base_url, serviceTypeId),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9687,7 +9778,7 @@ def get_my_subscription(self, serviceTypeId):
"""
def list_my_subscriptions(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/subscriptions'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)
@@ -9716,7 +9807,7 @@ def list_my_subscriptions(self):
"""
def ping(self):
if ('X-Avalara-Client' in self.client_header):
- self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","23.11.0")
+ self.client_header['X-Avalara-Client']=self.client_id.replace("API_VERSION","24.2.0")
return requests.get('{}/api/v2/utilities/ping'.format(self.base_url),
auth=self.auth, headers=self.client_header, params=None,
timeout=self.timeout_limit if self.timeout_limit else 1200)