Module: AvaTax::Client::Subscriptions
- Included in:
- AvaTax::Client
- Defined in:
- lib/avatax/client/subscriptions.rb
Instance Method Summary collapse
-
#get_subscription(accountId, id) ⇒ Object
Retrieve a single subscription.
-
#list_subscriptions_by_account(accountId, options = {}) ⇒ FetchResult
Retrieve subscriptions for this account.
-
#query_subscriptions(options = {}) ⇒ FetchResult
Retrieve all subscriptions.
Instance Method Details
#get_subscription(accountId, id) ⇒ Object
Retrieve a single subscription
Get the subscription object identified by this URL. A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. Swagger Name: AvaTaxClient
19 20 |
# File 'lib/avatax/client/subscriptions.rb', line 19 def get_subscription(accountId, id) path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}" get(path, {}, AvaTax::VERSION) end |
#list_subscriptions_by_account(accountId, options = {}) ⇒ FetchResult
Retrieve subscriptions for this account
List all subscription objects attached to this account. A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
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, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. Swagger Name: AvaTaxClient
41 42 |
# File 'lib/avatax/client/subscriptions.rb', line 41 def list_subscriptions_by_account(accountId, ={}) path = "/api/v2/accounts/#{accountId}/subscriptions" get(path, , AvaTax::VERSION) end |
#query_subscriptions(options = {}) ⇒ FetchResult
Retrieve all subscriptions
Get multiple subscription objects across all accounts. A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
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, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. Swagger Name: AvaTaxClient
62 63 |
# File 'lib/avatax/client/subscriptions.rb', line 62 def query_subscriptions(={}) path = "/api/v2/subscriptions" get(path, , AvaTax::VERSION) end |