Module: AvaTax::Client::EcoNexusThreshold
- Defined in:
- lib/avatax/client/econexusthreshold.rb
Instance Method Summary collapse
-
#get_eco_nexus_thresholds(companyId, options = {}) ⇒ Object
Get economic nexus threshold statuses for a company.
Instance Method Details
#get_eco_nexus_thresholds(companyId, options = {}) ⇒ Object
Get economic nexus threshold statuses for a company
Returns precomputed economic nexus threshold statuses for a company, sourced from an in-memory cache refreshed periodically from Snowflake. All responses are served from cache; Snowflake is never queried on the request path.
When the optional region query parameter is provided, only the matching jurisdiction row
is included in states. If no row exists for that company and region, states is
an empty array (200 OK).
When lastRefreshedAt is absent from the response, the cache has not yet completed its
first refresh; callers should treat absence as "cache freshness unknown".
Production traffic is served by TPS; api-gateway should route this path to TPS.
This endpoint requires the NexusFetch permission. If EcoNexus is not configured in TPS,
a 503 is returned with no Retry-After (misconfiguration requires redeployment).
If the cache is still initializing, a 503 is returned with Retry-After: 300.
Security Policies
- This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, AvaTaxOnlyAccountAdmin, AvaTaxOnlyAccountUser, AvaTaxOnlyCompanyAdmin, AvaTaxOnlyCompanyUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ReturnsOnlyAccountAdmin, ReturnsOnlyAccountUser, ReturnsOnlyCompanyAdmin, ReturnsOnlyCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. Swagger Name: AvaTaxClient
32 33 |
# File 'lib/avatax/client/econexusthreshold.rb', line 32 def get_eco_nexus_thresholds(companyId, ={}) path = "/api/v2/companies/#{companyId}/econexusthresholds" get(path, , AvaTax::VERSION) end |