avatax 20.1.0 → 20.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +180 -116
  3. data/lib/avatax/client/addresses.rb +34 -34
  4. data/lib/avatax/client/advancedrules.rb +33 -142
  5. data/lib/avatax/client/avafileforms.rb +37 -37
  6. data/lib/avatax/client/batches.rb +122 -122
  7. data/lib/avatax/client/certexpressinvites.rb +70 -70
  8. data/lib/avatax/client/certificates.rb +313 -313
  9. data/lib/avatax/client/companies.rb +234 -232
  10. data/lib/avatax/client/compliance.rb +2 -2
  11. data/lib/avatax/client/contacts.rb +58 -58
  12. data/lib/avatax/client/customers.rb +279 -279
  13. data/lib/avatax/client/datasources.rb +51 -51
  14. data/lib/avatax/client/definitions.rb +448 -435
  15. data/lib/avatax/client/distancethresholds.rb +74 -74
  16. data/lib/avatax/client/filingcalendars.rb +10 -498
  17. data/lib/avatax/client/filings.rb +13 -13
  18. data/lib/avatax/client/firmclientlinkages.rb +54 -54
  19. data/lib/avatax/client/free.rb +73 -73
  20. data/lib/avatax/client/fundingrequests.rb +32 -32
  21. data/lib/avatax/client/items.rb +284 -284
  22. data/lib/avatax/client/jurisdictionoverrides.rb +70 -70
  23. data/lib/avatax/client/locations.rb +87 -84
  24. data/lib/avatax/client/multidocument.rb +294 -234
  25. data/lib/avatax/client/nexus.rb +283 -143
  26. data/lib/avatax/client/notifications.rb +48 -48
  27. data/lib/avatax/client/provisioning.rb +29 -29
  28. data/lib/avatax/client/registrar.rb +122 -122
  29. data/lib/avatax/client/reports.rb +63 -63
  30. data/lib/avatax/client/settings.rb +108 -108
  31. data/lib/avatax/client/subscriptions.rb +35 -35
  32. data/lib/avatax/client/taxcodes.rb +72 -72
  33. data/lib/avatax/client/taxcontent.rb +106 -106
  34. data/lib/avatax/client/taxrules.rb +122 -122
  35. data/lib/avatax/client/transactions.rb +654 -639
  36. data/lib/avatax/client/upcs.rb +63 -63
  37. data/lib/avatax/client/users.rb +121 -121
  38. data/lib/avatax/client/utilities.rb +34 -34
  39. data/lib/avatax/connection.rb +1 -1
  40. data/lib/avatax/request.rb +2 -0
  41. data/lib/avatax/version.rb +1 -1
  42. metadata +3 -3
@@ -5,418 +5,418 @@ module AvaTax
5
5
 
6
6
  # Create certificates for this company
7
7
  #
8
- # Record one or more certificates document for this company.
9
- #
10
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
11
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
12
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
13
- # log onto the administrative website for the product you purchased.
14
- #
15
- # When you create a certificate, it will be processed by Avalara and will become available for use in
16
- # calculating tax exemptions when processing is complete. For a certificate to be used in calculating exemptions,
17
- # it must have the following:
18
- #
19
- # * An exposure zone indicating where the certificate is valid
20
- # * A link to the customer that is allowed to use this certificate
21
- # * Your tax transaction must contain the correct customer code
22
- #
23
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
24
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
25
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
26
- # storage for this company, call `RequestCertificateSetup`.
27
- #
28
- # If the users specified in the certificates do not exist, the API will create the user and link them to the certificate
29
- #
30
- # ### Security Policies
31
- #
32
- # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
8
+ # Record one or more certificates document for this company.
9
+ #
10
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
11
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
12
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
13
+ # log onto the administrative website for the product you purchased.
14
+ #
15
+ # When you create a certificate, it will be processed by Avalara and will become available for use in
16
+ # calculating tax exemptions when processing is complete. For a certificate to be used in calculating exemptions,
17
+ # it must have the following:
18
+ #
19
+ # * An exposure zone indicating where the certificate is valid
20
+ # * A link to the customer that is allowed to use this certificate
21
+ # * Your tax transaction must contain the correct customer code
22
+ #
23
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
24
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
25
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
26
+ # storage for this company, call `RequestCertificateSetup`.
27
+ #
28
+ # If the users specified in the certificates do not exist, the API will create the user and link them to the certificate
29
+ #
30
+ # ### Security Policies
31
+ #
32
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
33
33
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
34
- # @param companyId [Integer] The ID number of the company recording this certificate
35
- # @param preValidatedExemptionReason [Boolean] If set to true, the certificate will bypass the human verification process.
36
- # @param model [CertificateModel[]] Certificates to be created
34
+ # @param companyId [Integer] The ID number of the company recording this certificate
35
+ # @param preValidatedExemptionReason [Boolean] If set to true, the certificate will bypass the human verification process.
36
+ # @param model [CertificateModel[]] Certificates to be created
37
37
  # @return [CertificateModel[]]
38
38
  def create_certificates(companyId, model, options={}) path = "/api/v2/companies/#{companyId}/certificates"
39
39
  post(path, model, options) end
40
40
 
41
41
  # Revoke and delete a certificate
42
42
  #
43
- # Revoke the certificate identified by this URL, then delete it.
44
- #
45
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
46
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
47
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
48
- # log onto the administrative website for the product you purchased.
49
- #
50
- # Revoked certificates can no longer be used.
51
- #
52
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
53
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
54
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
55
- # storage for this company, call `RequestCertificateSetup`.
56
- #
57
- # ### Security Policies
58
- #
59
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
43
+ # Revoke the certificate identified by this URL, then delete it.
44
+ #
45
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
46
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
47
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
48
+ # log onto the administrative website for the product you purchased.
49
+ #
50
+ # Revoked certificates can no longer be used.
51
+ #
52
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
53
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
54
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
55
+ # storage for this company, call `RequestCertificateSetup`.
56
+ #
57
+ # ### Security Policies
58
+ #
59
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
60
60
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
61
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
62
- # @param id [Integer] The unique ID number of this certificate
61
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
62
+ # @param id [Integer] The unique ID number of this certificate
63
63
  # @return [ErrorDetail[]]
64
64
  def delete_certificate(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}"
65
65
  delete(path) end
66
66
 
67
67
  # Download an image for this certificate
68
68
  #
69
- # Download an image or PDF file for this certificate.
70
- #
71
- # This API can be used to download either a single-page preview of the certificate or a full PDF document.
72
- # To retrieve a preview image, set the `$type` parameter to `Jpeg` and the `$page` parameter to `1`.
73
- #
74
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
75
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
76
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
77
- # log onto the administrative website for the product you purchased.
78
- #
79
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
80
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
81
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
82
- # storage for this company, call `RequestCertificateSetup`.
83
- #
84
- # ### Security Policies
85
- #
86
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
69
+ # Download an image or PDF file for this certificate.
70
+ #
71
+ # This API can be used to download either a single-page preview of the certificate or a full PDF document.
72
+ # To retrieve a preview image, set the `$type` parameter to `Jpeg` and the `$page` parameter to `1`.
73
+ #
74
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
75
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
76
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
77
+ # log onto the administrative website for the product you purchased.
78
+ #
79
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
80
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
81
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
82
+ # storage for this company, call `RequestCertificateSetup`.
83
+ #
84
+ # ### Security Policies
85
+ #
86
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
87
87
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
88
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
89
- # @param id [Integer] The unique ID number of this certificate
90
- # @param page [Integer] If you choose `$type`=`Jpeg`, you must specify which page number to retrieve.
91
- # @param type [String] The data format in which to retrieve the certificate image (See CertificatePreviewType::* for a list of allowable values)
88
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
89
+ # @param id [Integer] The unique ID number of this certificate
90
+ # @param page [Integer] If you choose `$type`=`Jpeg`, you must specify which page number to retrieve.
91
+ # @param type [String] The data format in which to retrieve the certificate image (See CertificatePreviewType::* for a list of allowable values)
92
92
  # @return [Object]
93
93
  def download_certificate_image(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attachment"
94
94
  get(path, options) end
95
95
 
96
96
  # Retrieve a single certificate
97
97
  #
98
- # Get the current certificate identified by this URL.
99
- #
100
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
101
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
102
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
103
- # log onto the administrative website for the product you purchased.
104
- #
105
- # You can use the `$include` parameter to fetch the following additional objects for expansion:
106
- #
107
- # * customers - Retrieves the list of customers linked to the certificate.
108
- # * po_numbers - Retrieves all PO numbers tied to the certificate.
109
- # * attributes - Retrieves all attributes applied to the certificate.
110
- #
111
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
112
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
113
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
114
- # storage for this company, call `RequestCertificateSetup`.
115
- #
116
- # ### Security Policies
117
- #
118
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
98
+ # Get the current certificate identified by this URL.
99
+ #
100
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
101
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
102
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
103
+ # log onto the administrative website for the product you purchased.
104
+ #
105
+ # You can use the `$include` parameter to fetch the following additional objects for expansion:
106
+ #
107
+ # * customers - Retrieves the list of customers linked to the certificate.
108
+ # * po_numbers - Retrieves all PO numbers tied to the certificate.
109
+ # * attributes - Retrieves all attributes applied to the certificate.
110
+ #
111
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
112
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
113
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
114
+ # storage for this company, call `RequestCertificateSetup`.
115
+ #
116
+ # ### Security Policies
117
+ #
118
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
119
119
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
120
- # @param companyId [Integer] The ID number of the company that recorded this certificate
121
- # @param id [Integer] The unique ID number of this certificate
122
- # @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.
120
+ # @param companyId [Integer] The ID number of the company that recorded this certificate
121
+ # @param id [Integer] The unique ID number of this certificate
122
+ # @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.
123
123
  # @return [Object]
124
124
  def get_certificate(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}"
125
125
  get(path, options) end
126
126
 
127
127
  # Check a company's exemption certificate status.
128
128
  #
129
- # Checks whether this company is configured to use exemption certificates in AvaTax.
130
- #
131
- # Exemption certificates are tracked through a different auditable data store than the one that
132
- # holds AvaTax transactions. To use the AvaTax exemption certificate document store, please call
133
- # `GetCertificateSetup` to see if your company is configured to use the exemption certificate
134
- # document store. To request setup, please call `RequestCertificateSetup` and your company will
135
- # be configured with data storage in the auditable certificate system.
136
- #
137
- # ### Security Policies
138
- #
139
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
129
+ # Checks whether this company is configured to use exemption certificates in AvaTax.
130
+ #
131
+ # Exemption certificates are tracked through a different auditable data store than the one that
132
+ # holds AvaTax transactions. To use the AvaTax exemption certificate document store, please call
133
+ # `GetCertificateSetup` to see if your company is configured to use the exemption certificate
134
+ # document store. To request setup, please call `RequestCertificateSetup` and your company will
135
+ # be configured with data storage in the auditable certificate system.
136
+ #
137
+ # ### Security Policies
138
+ #
139
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
140
140
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
141
- # @param companyId [Integer] The company ID to check
141
+ # @param companyId [Integer] The company ID to check
142
142
  # @return [Object]
143
143
  def get_certificate_setup(companyId) path = "/api/v2/companies/#{companyId}/certificates/setup"
144
144
  get(path) end
145
145
 
146
146
  # Link attributes to a certificate
147
147
  #
148
- # Link one or many attributes to a certificate.
149
- #
150
- # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
151
- # certificate at any time. The full list of defined attributes may be found using `ListCertificateAttributes`.
152
- #
153
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
154
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
155
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
156
- # log onto the administrative website for the product you purchased.
157
- #
158
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
159
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
160
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
161
- # storage for this company, call `RequestCertificateSetup`.
162
- #
163
- # ### Security Policies
164
- #
165
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
148
+ # Link one or many attributes to a certificate.
149
+ #
150
+ # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
151
+ # certificate at any time. The full list of defined attributes may be found using `ListCertificateAttributes`.
152
+ #
153
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
154
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
155
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
156
+ # log onto the administrative website for the product you purchased.
157
+ #
158
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
159
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
160
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
161
+ # storage for this company, call `RequestCertificateSetup`.
162
+ #
163
+ # ### Security Policies
164
+ #
165
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
166
166
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
167
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
168
- # @param id [Integer] The unique ID number of this certificate
169
- # @param model [CertificateAttributeModel[]] The list of attributes to link to this certificate.
167
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
168
+ # @param id [Integer] The unique ID number of this certificate
169
+ # @param model [CertificateAttributeModel[]] The list of attributes to link to this certificate.
170
170
  # @return [FetchResult]
171
171
  def link_attributes_to_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes/link"
172
172
  post(path, model) end
173
173
 
174
174
  # Link customers to a certificate
175
175
  #
176
- # Link one or more customers to an existing certificate.
177
- #
178
- # Customers and certificates must be linked before a customer can make use of a certificate to obtain
179
- # a tax exemption in AvaTax. Since some certificates may cover more than one business entity, a certificate
180
- # can be connected to multiple customer records using the `LinkCustomersToCertificate` API.
181
- #
182
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
183
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
184
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
185
- # log onto the administrative website for the product you purchased.
186
- #
187
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
188
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
189
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
190
- # storage for this company, call `RequestCertificateSetup`.
191
- #
192
- # ### Security Policies
193
- #
194
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
176
+ # Link one or more customers to an existing certificate.
177
+ #
178
+ # Customers and certificates must be linked before a customer can make use of a certificate to obtain
179
+ # a tax exemption in AvaTax. Since some certificates may cover more than one business entity, a certificate
180
+ # can be connected to multiple customer records using the `LinkCustomersToCertificate` API.
181
+ #
182
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
183
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
184
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
185
+ # log onto the administrative website for the product you purchased.
186
+ #
187
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
188
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
189
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
190
+ # storage for this company, call `RequestCertificateSetup`.
191
+ #
192
+ # ### Security Policies
193
+ #
194
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
195
195
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
196
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
197
- # @param id [Integer] The unique ID number of this certificate
198
- # @param model [Object] The list of customers needed be added to the Certificate for exemption
196
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
197
+ # @param id [Integer] The unique ID number of this certificate
198
+ # @param model [Object] The list of customers needed be added to the Certificate for exemption
199
199
  # @return [FetchResult]
200
200
  def link_customers_to_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers/link"
201
201
  post(path, model) end
202
202
 
203
203
  # List all attributes applied to this certificate
204
204
  #
205
- # Retrieve the list of attributes that are linked to this certificate.
206
- #
207
- # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
208
- # certificate at any time. The full list of defined attributes may be found using [ListCertificateAttributes](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListCertificateAttributes/) API.
209
- #
210
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
211
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
212
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
213
- # log onto the administrative website for the product you purchased.
214
- #
215
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
216
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
217
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
218
- # storage for this company, call `RequestCertificateSetup`.
219
- #
220
- # ### Security Policies
221
- #
222
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
205
+ # Retrieve the list of attributes that are linked to this certificate.
206
+ #
207
+ # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
208
+ # certificate at any time. The full list of defined attributes may be found using [ListCertificateAttributes](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListCertificateAttributes/) API.
209
+ #
210
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
211
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
212
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
213
+ # log onto the administrative website for the product you purchased.
214
+ #
215
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
216
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
217
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
218
+ # storage for this company, call `RequestCertificateSetup`.
219
+ #
220
+ # ### Security Policies
221
+ #
222
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
223
223
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
224
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
225
- # @param id [Integer] The unique ID number of this certificate
224
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
225
+ # @param id [Integer] The unique ID number of this certificate
226
226
  # @return [FetchResult]
227
227
  def list_attributes_for_certificate(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes"
228
228
  get(path) end
229
229
 
230
230
  # List customers linked to this certificate
231
231
  #
232
- # List all customers linked to this certificate.
233
- #
234
- # Customers must be linked to a certificate in order to make use of its tax exemption features. You
235
- # can link or unlink customers to a certificate at any time.
236
- #
237
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
238
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
239
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
240
- # log onto the administrative website for the product you purchased.
241
- #
242
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
243
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
244
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
245
- # storage for this company, call `RequestCertificateSetup`.
246
- #
247
- # ### Security Policies
248
- #
249
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
232
+ # List all customers linked to this certificate.
233
+ #
234
+ # Customers must be linked to a certificate in order to make use of its tax exemption features. You
235
+ # can link or unlink customers to a certificate at any time.
236
+ #
237
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
238
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
239
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
240
+ # log onto the administrative website for the product you purchased.
241
+ #
242
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
243
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
244
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
245
+ # storage for this company, call `RequestCertificateSetup`.
246
+ #
247
+ # ### Security Policies
248
+ #
249
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
250
250
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
251
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
252
- # @param id [Integer] The unique ID number of this certificate
253
- # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are currently available when fetching customers.
251
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
252
+ # @param id [Integer] The unique ID number of this certificate
253
+ # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are currently available when fetching customers.
254
254
  # @return [FetchResult]
255
255
  def list_customers_for_certificate(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers"
256
256
  get(path, options) end
257
257
 
258
258
  # List all certificates for a company
259
259
  #
260
- # List all certificates recorded by a company
261
- #
262
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
263
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
264
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
265
- # log onto the administrative website for the product you purchased.
266
- #
267
- # You can use the `$include` parameter to fetch the following additional objects for expansion:
268
- #
269
- # * customers - Retrieves the list of customers linked to the certificate.
270
- # * po_numbers - Retrieves all PO numbers tied to the certificate.
271
- # * attributes - Retrieves all attributes applied to the certificate.
272
- #
273
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
274
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
275
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
276
- # storage for this company, call `RequestCertificateSetup`.
277
- #
278
- # ### Security Policies
279
- #
280
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
260
+ # List all certificates recorded by a company
261
+ #
262
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
263
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
264
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
265
+ # log onto the administrative website for the product you purchased.
266
+ #
267
+ # You can use the `$include` parameter to fetch the following additional objects for expansion:
268
+ #
269
+ # * customers - Retrieves the list of customers linked to the certificate.
270
+ # * po_numbers - Retrieves all PO numbers tied to the certificate.
271
+ # * attributes - Retrieves all attributes applied to the certificate.
272
+ #
273
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
274
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
275
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
276
+ # storage for this company, call `RequestCertificateSetup`.
277
+ #
278
+ # ### Security Policies
279
+ #
280
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
281
281
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
282
- # @param companyId [Integer] The ID number of the company to search
283
- # @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.
284
- # @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/).<br />*Not filterable:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
285
- # @param top [Integer] 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.
286
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
287
- # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
282
+ # @param companyId [Integer] The ID number of the company to search
283
+ # @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.
284
+ # @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/).<br />*Not filterable:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
285
+ # @param top [Integer] 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.
286
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
287
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
288
288
  # @return [FetchResult]
289
289
  def query_certificates(companyId, options={}) path = "/api/v2/companies/#{companyId}/certificates"
290
290
  get(path, options) end
291
291
 
292
292
  # Request setup of exemption certificates for this company.
293
293
  #
294
- # Requests the setup of exemption certificates for this company.
295
- #
296
- # Exemption certificates are tracked through a different auditable data store than the one that
297
- # holds AvaTax transactions. To use the AvaTax exemption certificate document store, please call
298
- # `GetCertificateSetup` to see if your company is configured to use the exemption certificate
299
- # document store. To request setup, please call `RequestCertificateSetup` and your company will
300
- # be configured with data storage in the auditable certificate system.
301
- #
302
- # This API will return the current status of exemption certificate setup for this company.
303
- #
304
- # ### Security Policies
305
- #
306
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
294
+ # Requests the setup of exemption certificates for this company.
295
+ #
296
+ # Exemption certificates are tracked through a different auditable data store than the one that
297
+ # holds AvaTax transactions. To use the AvaTax exemption certificate document store, please call
298
+ # `GetCertificateSetup` to see if your company is configured to use the exemption certificate
299
+ # document store. To request setup, please call `RequestCertificateSetup` and your company will
300
+ # be configured with data storage in the auditable certificate system.
301
+ #
302
+ # This API will return the current status of exemption certificate setup for this company.
303
+ #
304
+ # ### Security Policies
305
+ #
306
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
307
307
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
308
- # @param companyId [Integer]
308
+ # @param companyId [Integer]
309
309
  # @return [Object]
310
310
  def request_certificate_setup(companyId) path = "/api/v2/companies/#{companyId}/certificates/setup"
311
311
  post(path) end
312
312
 
313
313
  # Unlink attributes from a certificate
314
314
  #
315
- # Unlink one or many attributes from a certificate.
316
- #
317
- # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
318
- # certificate at any time. The full list of defined attributes may be found using `ListCertificateAttributes`.
319
- #
320
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
321
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
322
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
323
- # log onto the administrative website for the product you purchased.
324
- #
325
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
326
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
327
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
328
- # storage for this company, call `RequestCertificateSetup`.
329
- #
330
- # ### Security Policies
331
- #
332
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
315
+ # Unlink one or many attributes from a certificate.
316
+ #
317
+ # A certificate may have multiple attributes that control its behavior. You may link or unlink attributes to a
318
+ # certificate at any time. The full list of defined attributes may be found using `ListCertificateAttributes`.
319
+ #
320
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
321
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
322
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
323
+ # log onto the administrative website for the product you purchased.
324
+ #
325
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
326
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
327
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
328
+ # storage for this company, call `RequestCertificateSetup`.
329
+ #
330
+ # ### Security Policies
331
+ #
332
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
333
333
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
334
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
335
- # @param id [Integer] The unique ID number of this certificate
336
- # @param model [CertificateAttributeModel[]] The list of attributes to unlink from this certificate.
334
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
335
+ # @param id [Integer] The unique ID number of this certificate
336
+ # @param model [CertificateAttributeModel[]] The list of attributes to unlink from this certificate.
337
337
  # @return [FetchResult]
338
338
  def unlink_attributes_from_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attributes/unlink"
339
339
  post(path, model) end
340
340
 
341
341
  # Unlink customers from a certificate
342
342
  #
343
- # Unlinks one or more customers from a certificate.
344
- #
345
- # Unlinking a certificate from a customer will prevent the certificate from being used to generate
346
- # tax exemptions for the customer in the future. If any previous transactions for this customer had
347
- # used this linked certificate, those transactions will be unchanged and will still have a link to the
348
- # exemption certificate in question.
349
- #
350
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
351
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
352
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
353
- # log onto the administrative website for the product you purchased.
354
- #
355
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
356
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
357
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
358
- # storage for this company, call `RequestCertificateSetup`.
359
- #
360
- # ### Security Policies
361
- #
362
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
343
+ # Unlinks one or more customers from a certificate.
344
+ #
345
+ # Unlinking a certificate from a customer will prevent the certificate from being used to generate
346
+ # tax exemptions for the customer in the future. If any previous transactions for this customer had
347
+ # used this linked certificate, those transactions will be unchanged and will still have a link to the
348
+ # exemption certificate in question.
349
+ #
350
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
351
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
352
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
353
+ # log onto the administrative website for the product you purchased.
354
+ #
355
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
356
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
357
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
358
+ # storage for this company, call `RequestCertificateSetup`.
359
+ #
360
+ # ### Security Policies
361
+ #
362
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
363
363
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
364
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
365
- # @param id [Integer] The unique ID number of this certificate
366
- # @param model [Object] The list of customers to unlink from this certificate
364
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
365
+ # @param id [Integer] The unique ID number of this certificate
366
+ # @param model [Object] The list of customers to unlink from this certificate
367
367
  # @return [FetchResult]
368
368
  def unlink_customers_from_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}/customers/unlink"
369
369
  post(path, model) end
370
370
 
371
371
  # Update a single certificate
372
372
  #
373
- # Replace the certificate identified by this URL with a new one.
374
- #
375
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
376
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
377
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
378
- # log onto the administrative website for the product you purchased.
379
- #
380
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
381
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
382
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
383
- # storage for this company, call `RequestCertificateSetup`.
384
- #
385
- # ### Security Policies
386
- #
387
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
373
+ # Replace the certificate identified by this URL with a new one.
374
+ #
375
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
376
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
377
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
378
+ # log onto the administrative website for the product you purchased.
379
+ #
380
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
381
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
382
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
383
+ # storage for this company, call `RequestCertificateSetup`.
384
+ #
385
+ # ### Security Policies
386
+ #
387
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
388
388
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
389
- # @param companyId [Integer] The ID number of the company that recorded this certificate
390
- # @param id [Integer] The unique ID number of this certificate
391
- # @param model [Object] The new certificate object that will replace the existing one
389
+ # @param companyId [Integer] The ID number of the company that recorded this certificate
390
+ # @param id [Integer] The unique ID number of this certificate
391
+ # @param model [Object] The new certificate object that will replace the existing one
392
392
  # @return [Object]
393
393
  def update_certificate(companyId, id, model) path = "/api/v2/companies/#{companyId}/certificates/#{id}"
394
394
  put(path, model) end
395
395
 
396
396
  # Upload an image or PDF attachment for this certificate
397
397
  #
398
- # Upload an image or PDF attachment for this certificate.
399
- #
400
- # Image attachments can be of the format `PDF`, `JPEG`, `TIFF`, or `PNG`. To upload a multi-page image, please
401
- # use the `PDF` data type.
402
- #
403
- # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
404
- # can contain information about a customer's eligibility for exemption from sales or use taxes based on
405
- # criteria you specify when you store the certificate. To view or manage your certificates directly, please
406
- # log onto the administrative website for the product you purchased.
407
- #
408
- # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
409
- # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
410
- # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
411
- # storage for this company, call `RequestCertificateSetup`.
412
- #
413
- # ### Security Policies
414
- #
415
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
398
+ # Upload an image or PDF attachment for this certificate.
399
+ #
400
+ # Image attachments can be of the format `PDF`, `JPEG`, `TIFF`, or `PNG`. To upload a multi-page image, please
401
+ # use the `PDF` data type.
402
+ #
403
+ # A certificate is a document stored in either AvaTax Exemptions or CertCapture. The certificate document
404
+ # can contain information about a customer's eligibility for exemption from sales or use taxes based on
405
+ # criteria you specify when you store the certificate. To view or manage your certificates directly, please
406
+ # log onto the administrative website for the product you purchased.
407
+ #
408
+ # Using exemption certificates endpoints requires setup of an auditable document storage for each company that will use certificates.
409
+ # Companies that do not have this storage system set up will receive the error `CertCaptureNotConfiguredError` when they call exemption
410
+ # certificate related APIs. To check if this company is set up, call `GetCertificateSetup`. To request setup of the auditable document
411
+ # storage for this company, call `RequestCertificateSetup`.
412
+ #
413
+ # ### Security Policies
414
+ #
415
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
416
416
  # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
417
- # @param companyId [Integer] The unique ID number of the company that recorded this certificate
418
- # @param id [Integer] The unique ID number of this certificate
419
- # @param file [Object] The exemption certificate file you wanted to upload. Accepted formats are: PDF, JPEG, TIFF, PNG.
417
+ # @param companyId [Integer] The unique ID number of the company that recorded this certificate
418
+ # @param id [Integer] The unique ID number of this certificate
419
+ # @param file [Object] The exemption certificate file you wanted to upload. Accepted formats are: PDF, JPEG, TIFF, PNG.
420
420
  # @return [String]
421
421
  def upload_certificate_image(companyId, id) path = "/api/v2/companies/#{companyId}/certificates/#{id}/attachment"
422
422
  post(path) end