Update jurisdiction rate
curl --request PATCH \
--url https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id} \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": true,
"name": "<string>"
}
'import requests
url = "https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}"
payload = {
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": True,
"name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"organisation": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-api-key': '<api-key>',
organisation: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country_code: '<string>',
state_code: '<string>',
city: '<string>',
zip_code_start: '<string>',
zip_code_end: '<string>',
tax_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
effective_from: '2023-12-25',
effective_to: '2023-12-25',
is_active: true,
name: '<string>'
})
};
fetch('https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}', 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}/jurisdiction_rates/{jurisdiction_rate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'country_code' => '<string>',
'state_code' => '<string>',
'city' => '<string>',
'zip_code_start' => '<string>',
'zip_code_end' => '<string>',
'tax_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'effective_from' => '2023-12-25',
'effective_to' => '2023-12-25',
'is_active' => true,
'name' => '<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}/jurisdiction_rates/{jurisdiction_rate_id}"
payload := strings.NewReader("{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}")
.header("x-api-key", "<api-key>")
.header("organisation", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["organisation"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": true,
"name": "<string>",
"rates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jurisdiction_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_name": "<string>",
"rate_percent": 123,
"is_compound": true,
"compound_order": 123,
"jurisdiction_level": "<string>",
"jurisdiction_code": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Tax
Update jurisdiction rate
Update a jurisdiction rate by ID.
PATCH
/
tax
/
business_entities
/
{business_entity_id}
/
jurisdiction_rates
/
{jurisdiction_rate_id}
Update jurisdiction rate
curl --request PATCH \
--url https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id} \
--header 'Content-Type: application/json' \
--header 'organisation: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": true,
"name": "<string>"
}
'import requests
url = "https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}"
payload = {
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": True,
"name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"organisation": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'x-api-key': '<api-key>',
organisation: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
country_code: '<string>',
state_code: '<string>',
city: '<string>',
zip_code_start: '<string>',
zip_code_end: '<string>',
tax_category_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
effective_from: '2023-12-25',
effective_to: '2023-12-25',
is_active: true,
name: '<string>'
})
};
fetch('https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}', 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}/jurisdiction_rates/{jurisdiction_rate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'country_code' => '<string>',
'state_code' => '<string>',
'city' => '<string>',
'zip_code_start' => '<string>',
'zip_code_end' => '<string>',
'tax_category_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'effective_from' => '2023-12-25',
'effective_to' => '2023-12-25',
'is_active' => true,
'name' => '<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}/jurisdiction_rates/{jurisdiction_rate_id}"
payload := strings.NewReader("{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}")
.header("x-api-key", "<api-key>")
.header("organisation", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zenskar.com/tax/business_entities/{business_entity_id}/jurisdiction_rates/{jurisdiction_rate_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-api-key"] = '<api-key>'
request["organisation"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"<string>\",\n \"state_code\": \"<string>\",\n \"city\": \"<string>\",\n \"zip_code_start\": \"<string>\",\n \"zip_code_end\": \"<string>\",\n \"tax_category_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_from\": \"2023-12-25\",\n \"effective_to\": \"2023-12-25\",\n \"is_active\": true,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"state_code": "<string>",
"city": "<string>",
"zip_code_start": "<string>",
"zip_code_end": "<string>",
"tax_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_from": "2023-12-25",
"effective_to": "2023-12-25",
"is_active": true,
"name": "<string>",
"rates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"jurisdiction_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_name": "<string>",
"rate_percent": 123,
"is_compound": true,
"compound_order": 123,
"jurisdiction_level": "<string>",
"jurisdiction_code": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
PATCH update — all fields optional. Only fields explicitly sent are written; everything else stays as-is on the row.
Cross-field invariants that depend on a complete picture (zip half-set, destination hierarchy) run in the service against the merged row — not against the patch alone, since a partial patch legitimately omits fields the row already has set. The schema only catches errors visible inside the patch itself (zip range ordering
- length, effective-date ordering, both when both ends are sent).
ISO country code (e.g. IN, US)
Required string length:
2Response
Successful Response
Response shape for a jurisdiction rate row.
Inline tax rates (included on create)
Show child attributes
Show child attributes