Translate an address to a location code
curl --request POST \
--url https://ste.symmetry.com/ste-hosted/v2/locationCode \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"LocationCodeRequest": {
"locations": [
{
"locationName": "<string>",
"address": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"geoCoordinates": {
"latitude": 123,
"longitude": 123
}
}
],
"verbose": true
}
}
'import requests
url = "https://ste.symmetry.com/ste-hosted/v2/locationCode"
payload = { "LocationCodeRequest": {
"locations": [
{
"locationName": "<string>",
"address": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"geoCoordinates": {
"latitude": 123,
"longitude": 123
}
}
],
"verbose": True
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
LocationCodeRequest: {
locations: [
{
locationName: '<string>',
address: {
streetAddress1: '<string>',
streetAddress2: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>'
},
geoCoordinates: {latitude: 123, longitude: 123}
}
],
verbose: true
}
})
};
fetch('https://ste.symmetry.com/ste-hosted/v2/locationCode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ste.symmetry.com/ste-hosted/v2/locationCode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'LocationCodeRequest' => [
'locations' => [
[
'locationName' => '<string>',
'address' => [
'streetAddress1' => '<string>',
'streetAddress2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zipCode' => '<string>'
],
'geoCoordinates' => [
'latitude' => 123,
'longitude' => 123
]
]
],
'verbose' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ste.symmetry.com/ste-hosted/v2/locationCode"
payload := strings.NewReader("{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ste.symmetry.com/ste-hosted/v2/locationCode")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ste.symmetry.com/ste-hosted/v2/locationCode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"httpStatusCode": 123,
"errorStatus": {
"errorCode": 123,
"errorMessage": "<string>"
},
"locations": [
{
"locationName": "<string>",
"locationCodeDetails": {
"jurisdictions": [
{
"name": "<string>",
"steCode": "<string>",
"steCodeType": "<string>"
}
],
"locationCode": "<string>",
"locationCodeFull": "<string>",
"psdCode": "<string>",
"eitRate": "<string>"
},
"messages": [
{
"code": "<string>",
"shortDescription": "<string>",
"longDescription": "<string>"
}
],
"isGeocoded": true,
"latitude": 123,
"longitude": 123,
"inputGeoCoordinates": {
"latitude": 123,
"longitude": 123
},
"normalizedAddress": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"inputAddress": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
}
}
],
"transactionStamp": {
"calcDateTime": "<string>",
"failedTransactions": 123,
"schemaVersion": "<string>",
"steVersion": "<string>",
"totalTransactions": 123
}
}Translate an address to a location code
Determine a location code based on a submitted home or work address. Location codes are used by the Symmetry Tax Engine to identify which state, county, and jurisdiction boundaries contain a given address.
POST
/
v2
/
locationCode
Translate an address to a location code
curl --request POST \
--url https://ste.symmetry.com/ste-hosted/v2/locationCode \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"LocationCodeRequest": {
"locations": [
{
"locationName": "<string>",
"address": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"geoCoordinates": {
"latitude": 123,
"longitude": 123
}
}
],
"verbose": true
}
}
'import requests
url = "https://ste.symmetry.com/ste-hosted/v2/locationCode"
payload = { "LocationCodeRequest": {
"locations": [
{
"locationName": "<string>",
"address": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"geoCoordinates": {
"latitude": 123,
"longitude": 123
}
}
],
"verbose": True
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
LocationCodeRequest: {
locations: [
{
locationName: '<string>',
address: {
streetAddress1: '<string>',
streetAddress2: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>'
},
geoCoordinates: {latitude: 123, longitude: 123}
}
],
verbose: true
}
})
};
fetch('https://ste.symmetry.com/ste-hosted/v2/locationCode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ste.symmetry.com/ste-hosted/v2/locationCode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'LocationCodeRequest' => [
'locations' => [
[
'locationName' => '<string>',
'address' => [
'streetAddress1' => '<string>',
'streetAddress2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zipCode' => '<string>'
],
'geoCoordinates' => [
'latitude' => 123,
'longitude' => 123
]
]
],
'verbose' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ste.symmetry.com/ste-hosted/v2/locationCode"
payload := strings.NewReader("{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ste.symmetry.com/ste-hosted/v2/locationCode")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ste.symmetry.com/ste-hosted/v2/locationCode")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"LocationCodeRequest\": {\n \"locations\": [\n {\n \"locationName\": \"<string>\",\n \"address\": {\n \"streetAddress1\": \"<string>\",\n \"streetAddress2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\"\n },\n \"geoCoordinates\": {\n \"latitude\": 123,\n \"longitude\": 123\n }\n }\n ],\n \"verbose\": true\n }\n}"
response = http.request(request)
puts response.read_body{
"httpStatusCode": 123,
"errorStatus": {
"errorCode": 123,
"errorMessage": "<string>"
},
"locations": [
{
"locationName": "<string>",
"locationCodeDetails": {
"jurisdictions": [
{
"name": "<string>",
"steCode": "<string>",
"steCodeType": "<string>"
}
],
"locationCode": "<string>",
"locationCodeFull": "<string>",
"psdCode": "<string>",
"eitRate": "<string>"
},
"messages": [
{
"code": "<string>",
"shortDescription": "<string>",
"longDescription": "<string>"
}
],
"isGeocoded": true,
"latitude": 123,
"longitude": 123,
"inputGeoCoordinates": {
"latitude": 123,
"longitude": 123
},
"normalizedAddress": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"inputAddress": {
"streetAddress1": "<string>",
"streetAddress2": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
}
}
],
"transactionStamp": {
"calcDateTime": "<string>",
"failedTransactions": 123,
"schemaVersion": "<string>",
"steVersion": "<string>",
"totalTransactions": 123
}
}Authorizations
API key for authentication. Provide the raw key as the value of the Authorization header (no "Bearer" prefix).
Body
application/jsonapplication/xml
Show child attributes
Show child attributes
⌘I

