Module: AvaTax::Client::ErrorTransactions
- Defined in:
- lib/avatax/client/errortransactions.rb
Instance Method Summary collapse
-
#delete_error_transactions(companyId, model) ⇒ Object
Delete a batch of error transactions.
-
#list_error_codes(companyId, options = {}) ⇒ CappedFetchResult
Get a list of error transactions' error codes and its counts.
-
#list_error_transactions(companyId, options = {}) ⇒ CappedFetchResult
Retrieve list of error transactions.
Instance Method Details
#delete_error_transactions(companyId, model) ⇒ Object
Delete a batch of error transactions
Delete a batch of error transactions attached to a company.
If any of the provided error transaction isn't found then it'll be treated as a success.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- This API depends on the following active services
Required (all): AvaTaxPro, BasicReturns.
19 20 |
# File 'lib/avatax/client/errortransactions.rb', line 19 def delete_error_transactions(companyId, model) path = "/api/v2/companies/#{companyId}/errortransactions" delete(path, model) end |
#list_error_codes(companyId, options = {}) ⇒ CappedFetchResult
Get a list of error transactions' error codes and its counts
Get a list of error transactions' error codes and their counts When you try to create or adjust a transaction with a datasource for a company and for any reason that call fails with an error, those errors with their count can be retrieved by this API.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- This API depends on the following active services
Required (all): AvaTaxPro, BasicReturns.
36 37 |
# File 'lib/avatax/client/errortransactions.rb', line 36 def list_error_codes(companyId, ={}) path = "/api/v2/companies/#{companyId}/errortransactions/errorcodes" get(path, ) end |
#list_error_transactions(companyId, options = {}) ⇒ CappedFetchResult
Retrieve list of error transactions
List error transactions attached to this company. Results are dependent on $filter
if provided.
This endpoint is limited to returning 1000 error transactions at a time maximum.
Search for specific objects using the criteria in the $filter
parameter; full documentation is available on Filtering in REST .
Paginate your results using the $top
, $skip
, and $orderby
parameters.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
- This API depends on the following active services
Required (all): AvaTaxPro, BasicReturns.
58 59 |
# File 'lib/avatax/client/errortransactions.rb', line 58 def list_error_transactions(companyId, ={}) path = "/api/v2/companies/#{companyId}/errortransactions" get(path, ) end |