Module: AvaTax::Client::Addresses
- Included in:
- AvaTax::Client
- Defined in:
- lib/avatax/client/addresses.rb
Instance Method Summary collapse
-
#resolve_address(options = {}) ⇒ Object
Retrieve geolocation information for a specified US or Canadian address.
-
#resolve_address_post(model) ⇒ Object
Retrieve geolocation information for a specified US or Canadian address.
Instance Method Details
#resolve_address(options = {}) ⇒ Object
Retrieve geolocation information for a specified US or Canadian address
Resolve a US or Canadian address against Avalara's address validation system. Note that this API is valid for US and Canadian addresses only.
If the address can be resolved, this API provides the latitude and longitude of the resolved location.
The value resolutionQuality
can be used to identify how closely this address can be located. If the
address cannot be clearly located, use the messages
structure to learn more about problems with this address.
This is the same API as the POST /api/v2/addresses/resolve endpoint.
Both verbs are supported to provide for flexible implementation.
In order to get any evaluation for an address, please provide at least one of the following fields/pairs:
- postal code
- line1 + city + region
- line1 + postal code
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): AutoAddress. Swagger Name: AvaTaxClient
36 37 |
# File 'lib/avatax/client/addresses.rb', line 36 def resolve_address(={}) path = "/api/v2/addresses/resolve" get(path, , AvaTax::VERSION) end |
#resolve_address_post(model) ⇒ Object
Retrieve geolocation information for a specified US or Canadian address
Resolve a US or Canadian address against Avalara's address validation system. Note that this API is valid for US and Canadian addresses only.
If the address can be resolved, this API provides the latitude and longitude of the resolved location.
The value resolutionQuality
can be used to identify how closely this address can be located. If the
address cannot be clearly located, use the messages
structure to learn more about problems with this
address. This is the same API as the GET /api/v2/addresses/resolve endpoint.
Both verbs are supported to provide for flexible implementation.
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): AutoAddress. Swagger Name: AvaTaxClient
57 58 |
# File 'lib/avatax/client/addresses.rb', line 57 def resolve_address_post(model) path = "/api/v2/addresses/resolve" post(path, model, {}, AvaTax::VERSION) end |