Module: AvaTax::Client::VendorCertificates
- Defined in:
- lib/avatax/client/vendorcertificates.rb
Instance Method Summary collapse
-
#query_vendor_certificates(companyId, options = {}) ⇒ FetchResult
List all vendor certificates for a company.
Instance Method Details
#query_vendor_certificates(companyId, options = {}) ⇒ FetchResult
List all vendor certificates for a company
List all certificates recorded by a company
A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document can contain information about a vendor's eligibility for exemption from sales or use taxes based on criteria you specify when you store the certificate. To view or manage your certificates directly, please log onto the administrative website for the product you purchased.
You can use the $include parameter to fetch the following additional objects for expansion:
- customers - Retrieves the list of vendors linked to the certificate.
- po_numbers - Retrieves all PO numbers tied to the certificate.
- attributes - Retrieves all attributes applied to the certificate.
- histories - Retrieves the certificate update history
- jobs - Retrieves the jobs for this certificate
- logs - Retrieves the certificate log
- invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid
- custom_fields - Retrieves custom fields set for this certificate
Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
Companies that do not have this storage system set up will see CertCaptureNotConfiguredError when they call exemption
certificate related APIs. To check if this is set up for a company, call GetCertificateSetup. To request setup of exemption
certificate storage for this company, call RequestCertificateSetup.
Note* Filtering not supported for any documentType field.
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, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms. Swagger Name: AvaTaxClient
45 46 |
# File 'lib/avatax/client/vendorcertificates.rb', line 45 def query_vendor_certificates(companyId, ={}) path = "/#{companyId}/vendor-certificates" get(path, , AvaTax::VERSION) end |