TaxQuery
A method which invokes the TaxQuery Docker container, returning a list of tax names appropriate for the employee’s work and residence addresses.
Syntax
value = object.TaxQuery(workaddress, homeaddress, nexus)
object is a TaxControl instance.
Returns a string value.
Parameters
- workaddress : The employee's workplace address.
- homeaddress : The employee's residence address.
- nexus : A string expression indicating the states where the employer has nexus (loosely, a physical presence, such as office space). This should be in the form of a space-delimited list of 2-letter USPS state abbreviations. For example, 'CA NV OR WA'. Default value is the workplace state.
Details
For some (especially local) tax jurisdictions, the TaxNamesForZip method does not provide enough granularity to precisely identify tax names. For such situations, this method calls the TaxQuery Docker container, which returns a comma-delimited string just like that of TaxNamesForZip, but with greater precision.
Note: This method requires a running instance of the TaxQuery Docker container. See the TaxQuery Docker page for more information.
On a machine with Docker installed, enter the following:
Now call the TaxQuery method. For example, if the container is running on the same machine as your application: