Visit Main Site
Join Partner Program
Login
     
Introduction
Authentication
Documentation
Category
GET
POST
PUT
DELETE
Products
GET
POST
PUT
DELETE
Carts
GET
POST
PATCH
DELETE
Variations
GET
POST
PUT
DELETE
Currency
GET
POST
PUT
DELETE
Tax
Tax Profile
GET
POST
PUT
DELETE
Tax Rule
GET
POST
PUT
DELETE
Tax Code
GET
POST
PUT
DELETE
Tax Zone
GET
POST
PUT
DELETE
Discount
GET
POST
PUT
DELETE
Shipping
Shipping Profile
GET
POST
PUT
DELETE
Shipping Rate
GET
POST
PUT
DELETE
Shipping Rules
GET
POST
PUT
DELETE
Customer
GET
POST
PUT
DELETE
Orders
GET
POST
PATCH
Blog
GET
POST
PUT
DELETE
Settings
GET

Updating Tax Zone By ID

Endpoint: PUT /admin/tax_zones/{zone_id}

Purpose

This endpoint updates the details of an existing tax zone, modifying its name, geographic coverage, or radius-based settings. It allows administrators to redefine tax application areas for better tax compliance and management.

Path Parameters

Field
Type
Description
zone_id
integer
The unique identifier of the tax zone to be updated

Query Parameters

This endpoint does not require any query parameters. 

Use Case

An admin updates a tax zone's details to modify its name, adjust taxable locations, or change between radius-based and country/state-based zones. This helps businesses ensure that tax settings are always up to date and accurately reflect current tax policies.

Request Body

Key Type Description
name String Name of the tax zone.
use_radius Boolean Indicates whether to apply a radius-based tax zone.
start_location String The central location from which the radius is calculated.
radius Number The radius (likely in kilometers or miles) to define the tax zone area.
countries Array of Strings List of countries included in the tax zone.
states Array of Strings List of states or provinces included in the tax zone.
post_code String Specific postal code(s) covered by the tax zone.
JSON
{
    "tax_zone": {
        "name": "TAX_ZONE_NAME",
        "use_radius": USE_RADIUS,
        "start_location": "START_LOCATION",
        "radius": RADIUS_VALUE,
        "countries": ["COUNTRY_LIST"],
        "states": ["STATE_LIST"],
        "post_code": "POSTAL_CODE"
    }
}

Response

The response contains the updated tax zone details, including zone ID, name, system-generated status, and geographic coverage. If use_radius is false, the tax zone is defined by specific countries, states, or postal codes. The response also includes timestamps for creation and last update, allowing businesses to track tax zone modifications.

PUT
https://{your_site_domain}/api/v4/admin/tax_zones/{zone_id}
Try It Out
JSON
{
    "tax_zone": {
        "id": TAX_ZONE_ID,
        "name": "TAX_ZONE_NAME",
        "system_generated": SYSTEM_GENERATED,
        "default": DEFAULT_STATUS,
        "use_radius": USE_RADIUS,
        "radius": RADIUS_VALUE,
        "start_location": "START_LOCATION",
        "countries": [
            {
                "id": COUNTRY_ID,
                "name": "COUNTRY_NAME",
                "code": "COUNTRY_CODE"
            }
        ],
        "states": [
            {
                "id": STATE_ID,
                "name": "STATE_NAME",
                "code": "STATE_CODE"
            }
        ],
        "post_code": ["POSTAL_CODE_LIST"],
        "created_at": "CREATED_TIMESTAMP",
        "updated_at": "UPDATED_TIMESTAMP"
    }
}
Terms and Conditions
Privacy Policy

© 2024 WebCommander | All Rights Reserved

contact@webcommander.com
1300 797 571

WebCommander
About Us
Features
Pricing
Compare
Partners
Contact Us
Resource
Find a Partner
Help Centre
Community
Blog
Solutions
Inventory Management
Omnichannel Sales
Ecommerce Automation
B2B Ecommerce
Headless Commerce
Website Design and Performance