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
» Tax Rule PUT API Documentation

Putting Specific Tax Rules

Endpoints:   PUT /admin/tax_rules/{id}

Purpose

The PUT /admin/tax_rules/{id} API updates an existing tax rule by its unique identifier. It allows modifications to key attributes such as the name, description, and associated code. This endpoint ensures businesses can adjust tax regulations dynamically without creating duplicate rules.

Path Parameters

Parameter
Type
Description
id
integer
The unique identifier of the categories

Query Parameters 

This endpoint does not have any query parameters.

Use Case

This endpoint is useful when tax policies need to be revised due to regulatory changes. For instance, if a business wants to rename an existing tax rule, update the description, or revise the tax code, this API facilitates those modifications while maintaining the original tax rule reference.

Request Body

Key Type Description
name String Updated name of the tax rule.
description String Updated description of the tax rule.
JSON
{
    "tax_rule": {
        "name": "UPDATED_TAX_RULE_NAME",
        "description": "UPDATED_TAX_RULE_DESCRIPTION"
    }
}

Response

A successful response returns the updated tax rule details along with the latest timestamp.

PUT
https://{your_site_domain}/api/v4/admin/tax_rules/{id}
Try It Out
JSON
{
    "tax_rule": {
        "id": TAX_RULE_ID,
        "name": "UPDATED_TAX_RULE_NAME",
        "code": {
            "id": CODE_ID,
            "name": "UPDATED_CODE_NAME",
            "is_default": IS_DEFAULT_CODE
        },
        "description": "UPDATED_TAX_RULE_DESCRIPTION",
        "default": IS_DEFAULT,
        "rounding_type": "ROUNDING_TYPE",
        "decimal_point": DECIMAL_POINT,
        "zones": [
            {
                "id": ZONE_ID,
                "name": "ZONE_NAME",
                "is_system_generated": IS_SYSTEM_GENERATED,
                "is_default": IS_DEFAULT_ZONE
            }
        ],
        "created_at": "CREATED_AT_TIMESTAMP",
        "updated_at": "UPDATED_AT_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