Update a product tax rule

POST https://api.tamio.com/v2/taxes/update/{uuid}

Updates an existing product tax rule. All core fields are required. The application scope, rate/amount, and geographic targeting can all be modified.

Path Parameters

uuid string*

UUID of the tax rule to update.

Body Parameters

label string*

Human-readable name for the tax rule.

rate number*

Percentage tax rate (0–100). When 0, a fixed amount is required.

amount number

Fixed tax amount in smallest currency unit. Required when rate is 0.

country string*

Country code where the tax applies.

active boolean

Whether the tax rule is active.

applies_to string*

all_products — applies to every product; selected_products — requires products array; selected_categories — requires categories object.

all_productsselected_productsselected_categories
states array of string

State/province restrictions.

postcodes array of string

Postal code restrictions.

payments array of string

Payment methods this tax applies to. Default ["all"].

products array of string

Product UUIDs (required when applies_to is selected_products).

categories object

Category selections (required when applies_to is selected_categories).

Responses

200 Product tax rule updated

Product tax rule updated

status integer
tax Tax
400 Validation or business-logic error
401 Missing or invalid API key
/taxes/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/taxes/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "tax": {
    "id": "string",
    "object": "tax",
    "rate": 0,
    "amount": 0,
    "label": "string",
    "active": false,
    "country": "string",
    "type": "product_tax",
    "applies_to": "string",
    "postcodes": [],
    "states": [],
    "payments": [],
    "categories": {},
    "products": []
  }
}