curl --request POST \
--url https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"effective_date": "2023-12-25",
"state_code": "<string>",
"city": "<string>",
"zip_code": "<string>"
}
'import requests
url = "https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup"
payload = {
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"effective_date": "2023-12-25",
"state_code": "<string>",
"city": "<string>",
"zip_code": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"organisation": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
organisation: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tax_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
country_code: '<string>',
effective_date: '2023-12-25',
state_code: '<string>',
city: '<string>',
zip_code: '<string>'
})
};
fetch('https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup', 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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup",
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([
'tax_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'country_code' => '<string>',
'effective_date' => '2023-12-25',
'state_code' => '<string>',
'city' => '<string>',
'zip_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"organisation: <api-key>",
"x-api-key: <api-key>"
],
]);
$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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup"
payload := strings.NewReader("{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("organisation", "<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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup")
.header("x-api-key", "<api-key>")
.header("organisation", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["organisation"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"source_jurisdiction_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate_breakdown": [
{
"tax_name": "<string>",
"rate_percent": "<string>",
"is_compound": true,
"compound_order": 123,
"source_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jurisdiction_level": "<string>",
"jurisdiction_code": "<string>"
}
],
"fingerprint": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Resolve the applicable tax rate for a destination
Same code path billing uses — given a tax category + destination + date, return the single applicable rate breakdown plus its fingerprint. 404 when no row matches; 422 when the configuration is ambiguous (multiple rows match — caller must close one’s effective_to or deactivate it).
curl --request POST \
--url https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"effective_date": "2023-12-25",
"state_code": "<string>",
"city": "<string>",
"zip_code": "<string>"
}
'import requests
url = "https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup"
payload = {
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"effective_date": "2023-12-25",
"state_code": "<string>",
"city": "<string>",
"zip_code": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"organisation": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
organisation: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tax_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
country_code: '<string>',
effective_date: '2023-12-25',
state_code: '<string>',
city: '<string>',
zip_code: '<string>'
})
};
fetch('https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup', 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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup",
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([
'tax_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'country_code' => '<string>',
'effective_date' => '2023-12-25',
'state_code' => '<string>',
'city' => '<string>',
'zip_code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"organisation: <api-key>",
"x-api-key: <api-key>"
],
]);
$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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup"
payload := strings.NewReader("{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("organisation", "<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://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup")
.header("x-api-key", "<api-key>")
.header("organisation", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenskar.com/tax/business_entities/{business_entity_id}/rates/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["organisation"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"country_code\": \"<string>\",\n \"effective_date\": \"2023-12-25\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"source_jurisdiction_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate_breakdown": [
{
"tax_name": "<string>",
"rate_percent": "<string>",
"is_compound": true,
"compound_order": 123,
"source_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jurisdiction_level": "<string>",
"jurisdiction_code": "<string>"
}
],
"fingerprint": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Path Parameters
Body
Request body for the rate-lookup endpoint.
Strict-level matching against the deepest field provided. A missing input
field is treated as 'row must be empty at that level' — not 'ignore that
level'. So city=SF alone matches rows with state='' AND city='SF' AND
zip=''. Whatever combination of geography fields the caller supplies, the
lookup either matches a row pinned to that exact shape or returns [].
Response
Successful Response
Output of :meth:TaxLookupService.resolve_rates_for_destination — one matched jurisdiction.
source_jurisdiction_rate_id is provenance (which
tax_jurisdiction_rates row matched). fingerprint is a sha256
over the resolved set so a future reverify can detect drift against
current rate tables without re-shipping the breakdown.